Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,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.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,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.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007926/0.007926, allocations: 106.9 kB / 15.74 MB, free: 5.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001869/0.00187, allocations: 197.7 kB / 16.67 MB, free: 5.508 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.814/2.814, allocations: 461.9 MB / 0.7348 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 71.88 kB / 1.054 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8701/0.8714, allocations: 157.4 MB / 1.208 GB, free: 13.67 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002513/0.874, allocations: 1.279 MB / 1.209 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004202/0.8782, allocations: 2.499 MB / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.882e-05/0.8783, allocations: 0 / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.771e-05/0.8783, allocations: 0 / 1.211 GB, free: 9.871 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.951e-05/0.8784, allocations: 3.938 kB / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007455/0.8792, allocations: 127.4 kB / 1.212 GB, free: 9.742 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 9.049e-05/0.8793, allocations: 35.92 kB / 1.212 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.354e-05/0.8793, allocations: 4 kB / 1.212 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.149e-05/0.8794, allocations: 23.84 kB / 1.212 GB, free: 9.68 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 8.486e-05/0.8795, allocations: 19.92 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.11e-05/0.8795, allocations: 0 / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003243/0.8798, allocations: 119.8 kB / 1.212 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.8799, allocations: 4 kB / 1.212 GB, free: 9.539 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.171e-05/0.8799, allocations: 15.92 kB / 1.212 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.8801, allocations: 91.62 kB / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.8801, allocations: 0 / 1.212 GB, free: 9.438 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8802, allocations: 4 kB / 1.212 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.8802, allocations: 0 / 1.212 GB, free: 9.434 MB / 0.9356 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.0004728/0.8806, allocations: 345.4 kB / 1.212 GB, free: 9.051 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.8807, allocations: 12.03 kB / 1.212 GB, free: 9.039 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.8809, allocations: 16.83 kB / 1.212 GB, free: 9.023 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.8811, allocations: 164.3 kB / 1.212 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.8811, allocations: 4.375 kB / 1.212 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.837e-05/0.8811, allocations: 8.375 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001439/0.8813, allocations: 76.38 kB / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.8813, allocations: 0 / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.8813, allocations: 0 / 1.212 GB, free: 8.723 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.8813, allocations: 3.984 kB / 1.212 GB, free: 8.719 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.47e-05/0.8814, allocations: 15.92 kB / 1.212 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006194/0.882, allocations: 474.8 kB / 1.213 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.8821, allocations: 71.88 kB / 1.213 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.103e-05/0.8822, allocations: 26.52 kB / 1.213 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.8822, allocations: 4 kB / 1.213 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.8822, allocations: 30.56 kB / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.8822, allocations: 0 / 1.213 GB, free: 8 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0006382/0.8829, allocations: 306.2 kB / 1.213 GB, free: 7.648 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.8829, allocations: 107.1 kB / 1.213 GB, free: 7.52 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.406e-05/0.883, allocations: 101.8 kB / 1.213 GB, free: 7.41 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.883, allocations: 25.7 kB / 1.214 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.332e-05/0.8831, allocations: 91.98 kB / 1.214 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.8831, allocations: 23.56 kB / 1.214 GB, free: 7.262 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.397e-05/0.8832, allocations: 29.7 kB / 1.214 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.8833, allocations: 322.8 kB / 1.214 GB, free: 6.902 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.199e-05/0.8833, allocations: 19.86 kB / 1.214 GB, free: 6.883 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.716e-05/0.8834, allocations: 57.14 kB / 1.214 GB, free: 6.809 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.592e-05/0.8835, allocations: 65.09 kB / 1.214 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.8835, allocations: 4 kB / 1.214 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001484/0.8836, allocations: 98.11 kB / 1.214 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.8837, allocations: 4 kB / 1.214 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.8837, allocations: 0 / 1.214 GB, free: 6.617 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.8837, allocations: 4 kB / 1.214 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.87e-05/0.8838, allocations: 27.98 kB / 1.214 GB, free: 6.586 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.959e-06/0.8838, allocations: 4 kB / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.714e-05/0.8838, allocations: 0 / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.8839, allocations: 4.125 kB / 1.214 GB, free: 6.578 MB / 0.9356 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 8.824e-05/0.8839, allocations: 125.7 kB / 1.214 GB, free: 6.445 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.96e-05/0.884, allocations: 7.906 kB / 1.214 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.8841, allocations: 15.58 kB / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.8841, allocations: 0 / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.8841, allocations: 4 kB / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.8841, allocations: 0 / 1.214 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003317/0.8844, allocations: 177.6 kB / 1.215 GB, free: 6.195 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.8844, allocations: 0 / 1.215 GB, free: 6.195 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.326e-05/0.8845, allocations: 19.94 kB / 1.215 GB, free: 6.176 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.8845, allocations: 4 kB / 1.215 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.8845, allocations: 3.984 kB / 1.215 GB, free: 6.168 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.8845, allocations: 4 kB / 1.215 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.8846, allocations: 0 / 1.215 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.8848, allocations: 337.8 kB / 1.215 GB, free: 5.816 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.721e-05/0.8849, allocations: 85.14 kB / 1.215 GB, free: 5.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.8849, allocations: 4 kB / 1.215 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.885, allocations: 4 kB / 1.215 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.067e-05/0.8851, allocations: 7.984 kB / 1.215 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.8851, allocations: 7.938 kB / 1.215 GB, free: 5.691 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.071e-05/0.8851, allocations: 75.28 kB / 1.215 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8851, allocations: 4 kB / 1.215 GB, free: 5.613 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003105/0.8854, allocations: 12 kB / 1.215 GB, free: 5.602 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0001405/0.8856, allocations: 111.2 kB / 1.215 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001177/0.8857, allocations: 43.86 kB / 1.215 GB, free: 5.438 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.8857, allocations: 4 kB / 1.215 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.549e-05/0.8858, allocations: 16 kB / 1.215 GB, free: 5.418 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004139/0.8862, allocations: 10.44 kB / 1.215 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006143/0.8868, allocations: 352.4 kB / 1.216 GB, free: 5.031 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.8871, allocations: 0.6846 MB / 1.216 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.696e-05/0.8871, allocations: 11.98 kB / 1.216 GB, free: 4.309 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.916e-05/0.8871, allocations: 11.44 kB / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of SimCode: time 2.31e-07/0.8872, allocations: 0 / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of Templates: time 0.003079/0.8902, allocations: 0.6516 MB / 1.217 GB, free: 3.68 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches