Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 197 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.985/2.985, allocations: 472.6 MB / 0.7451 GB, free: 4.648 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 63.41 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3394, allocations: 159.9 MB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002386/0.3418, allocations: 1.265 MB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00348/0.3453, allocations: 3.262 MB / 1.073 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.403e-05/0.3454, allocations: 0 / 1.073 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.986e-05/0.3454, allocations: 11.92 kB / 1.073 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.793e-05/0.3455, allocations: 0 / 1.073 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004598/0.3459, allocations: 111.5 kB / 1.073 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.225e-05/0.346, allocations: 39.91 kB / 1.073 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.443e-05/0.346, allocations: 0 / 1.073 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.405e-05/0.3461, allocations: 23.92 kB / 1.073 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.972e-05/0.3462, allocations: 11.97 kB / 1.073 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.3462, allocations: 4 kB / 1.073 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002379/0.3464, allocations: 83.75 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.629e-05/0.3464, allocations: 11.92 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.105e-05/0.3465, allocations: 11.94 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.3467, allocations: 68.19 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3467, allocations: 0 / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3467, allocations: 7.938 kB / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.3467, allocations: 0 / 1.073 GB, free: 5.531 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003948/0.3471, allocations: 351.5 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.3471, allocations: 8.031 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.952e-05/0.3472, allocations: 8.844 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.3474, allocations: 164.3 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.3474, allocations: 4.375 kB / 1.074 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.3474, allocations: 4.375 kB / 1.074 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.3475, allocations: 61.73 kB / 1.074 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.3476, allocations: 4 kB / 1.074 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3476, allocations: 0 / 1.074 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3476, allocations: 0 / 1.074 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.936e-05/0.3476, allocations: 23.97 kB / 1.074 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000186/0.3478, allocations: 161.7 kB / 1.074 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.801e-05/0.3479, allocations: 46.56 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.237e-05/0.348, allocations: 20.78 kB / 1.074 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006828/0.3487, allocations: 0.6026 MB / 1.074 GB, free: 3.828 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3487, allocations: 30.56 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.3487, allocations: 0 / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005812/0.3493, allocations: 298.5 kB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.3493, allocations: 67.39 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.39e-05/0.3494, allocations: 93.86 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.3494, allocations: 29.7 kB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.671e-05/0.3495, allocations: 84.05 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.3495, allocations: 35.61 kB / 1.075 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.149e-05/0.3496, allocations: 29.66 kB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.3497, allocations: 318.8 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.744e-05/0.3497, allocations: 12.06 kB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.877e-05/0.3498, allocations: 61.08 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.503e-05/0.3499, allocations: 81.08 kB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3499, allocations: 0 / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001344/0.35, allocations: 89.55 kB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/0.35, allocations: 4 kB / 1.076 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.35, allocations: 4 kB / 1.076 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3501, allocations: 0 / 1.076 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.951e-05/0.3501, allocations: 19.94 kB / 1.076 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.3502, allocations: 7.984 kB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.05e-05/0.3502, allocations: 8.062 kB / 1.076 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.3502, allocations: 8 kB / 1.076 GB, free: 2.422 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.812e-05/0.3503, allocations: 115.4 kB / 1.076 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.022e-05/0.3503, allocations: 7.906 kB / 1.076 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.3504, allocations: 7.969 kB / 1.076 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.3504, allocations: 0 / 1.076 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3504, allocations: 0 / 1.076 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.3504, allocations: 7.938 kB / 1.076 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.3506, allocations: 169.7 kB / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3506, allocations: 0 / 1.076 GB, free: 2.062 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.933e-05/0.3507, allocations: 23.92 kB / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.3507, allocations: 0 / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3508, allocations: 4 kB / 1.076 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3508, allocations: 0 / 1.076 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3508, allocations: 4 kB / 1.076 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.3509, allocations: 167.5 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.351, allocations: 85.39 kB / 1.076 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.351, allocations: 0 / 1.076 GB, free: 1.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3511, allocations: 11.97 kB / 1.076 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.638e-05/0.3512, allocations: 4 kB / 1.076 GB, free: 1.734 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.091e-05/0.3512, allocations: 11.94 kB / 1.076 GB, free: 1.723 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.112e-05/0.3512, allocations: 83.2 kB / 1.076 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3512, allocations: 3.938 kB / 1.076 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002443/0.3515, allocations: 16 kB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001304/0.3516, allocations: 103.8 kB / 1.076 GB, free: 1.508 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001317/0.3518, allocations: 47.92 kB / 1.076 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3518, allocations: 0 / 1.076 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.744e-05/0.3518, allocations: 24.08 kB / 1.076 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.3521, allocations: 7.984 kB / 1.076 GB, free: 1.43 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005814/0.3527, allocations: 318.6 kB / 1.077 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.3529, allocations: 0.6846 MB / 1.077 GB, free: 392 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.115e-05/0.353, allocations: 7.781 kB / 1.077 GB, free: 384 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.769e-05/0.353, allocations: 11.44 kB / 1.077 GB, free: 372 kB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.353, allocations: 0 / 1.077 GB, free: 372 kB / 0.8262 GB Notification: Performance of Templates: time 0.002787/0.3558, allocations: 0.6196 MB / 1.078 GB, free: 15.75 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches