Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.0007732/0.0007732, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.006459/0.006459, allocations: 172.1 kB / 16.26 MB, free: 6.613 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.454/1.454, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.743/2.743, allocations: 437.8 MB / 0.7121 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003759/0.0003766, allocations: 8 kB / 0.8728 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7527/0.7531, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002006/0.7551, allocations: 0.9914 MB / 1.024 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004768/0.7599, allocations: 2.46 MB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.461e-05/0.76, allocations: 0 / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.7601, allocations: 3.984 kB / 1.026 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.354e-05/0.7602, allocations: 7.922 kB / 1.026 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007617/0.7609, allocations: 107.5 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.7611, allocations: 43.8 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.425e-05/0.7612, allocations: 4 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.579e-05/0.7613, allocations: 11.98 kB / 1.027 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.7614, allocations: 23.91 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.514e-05/0.7614, allocations: 0 / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004809/0.7619, allocations: 119.7 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.585e-05/0.7619, allocations: 4 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.159e-05/0.762, allocations: 41.64 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003183/0.7623, allocations: 85.78 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.7624, allocations: 0 / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.154e-06/0.7624, allocations: 0 / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.7624, allocations: 8 kB / 1.027 GB, free: 11.91 MB / 0.7794 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.0005753/0.763, allocations: 345.2 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.021e-05/0.763, allocations: 8.031 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003501/0.7634, allocations: 12.92 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.7636, allocations: 164.4 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.7636, allocations: 384 / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.7637, allocations: 8.375 kB / 1.027 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.7639, allocations: 80.31 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.7639, allocations: 0 / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.764, allocations: 0 / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.764, allocations: 4 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.683e-05/0.7641, allocations: 11.92 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008653/0.7649, allocations: 478.8 kB / 1.028 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.7651, allocations: 71.59 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.026e-05/0.7652, allocations: 26.78 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.7652, allocations: 8 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.932e-05/0.7653, allocations: 34.5 kB / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.603e-06/0.7653, allocations: 0 / 1.028 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0008574/0.7662, allocations: 302.1 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/0.7663, allocations: 111.1 kB / 1.028 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.22e-05/0.7664, allocations: 97.86 kB / 1.029 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.7664, allocations: 25.7 kB / 1.029 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.665e-05/0.7665, allocations: 88.03 kB / 1.029 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.7665, allocations: 23.66 kB / 1.029 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.7665, allocations: 21.7 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.7667, allocations: 322.7 kB / 1.029 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.217e-05/0.7668, allocations: 12 kB / 1.029 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.262e-05/0.7669, allocations: 53.14 kB / 1.029 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.767, allocations: 81.02 kB / 1.029 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.767, allocations: 4 kB / 1.029 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002067/0.7672, allocations: 97.45 kB / 1.029 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.7673, allocations: 4 kB / 1.029 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.7673, allocations: 4 kB / 1.029 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.7673, allocations: 0.6094 kB / 1.029 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.7674, allocations: 19.98 kB / 1.029 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.7675, allocations: 4 kB / 1.029 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.829e-05/0.7675, allocations: 4 kB / 1.029 GB, free: 9.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.7675, allocations: 8.188 kB / 1.029 GB, free: 9.062 MB / 0.7794 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 0.0001133/0.7677, allocations: 122.2 kB / 1.029 GB, free: 8.934 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.7678, allocations: 4 kB / 1.029 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.658e-05/0.7678, allocations: 11.56 kB / 1.029 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.7678, allocations: 7.984 kB / 1.029 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.679e-06/0.7679, allocations: 0 / 1.029 GB, free: 8.91 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.7679, allocations: 7.922 kB / 1.029 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000519/0.7684, allocations: 181.5 kB / 1.03 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.7684, allocations: 3.984 kB / 1.03 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.7686, allocations: 12 kB / 1.03 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.7686, allocations: 4 kB / 1.03 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.7686, allocations: 4 kB / 1.03 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.7686, allocations: 3.984 kB / 1.03 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.7686, allocations: 3.938 kB / 1.03 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004147/0.769, allocations: 329.9 kB / 1.03 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.267e-05/0.7691, allocations: 89.14 kB / 1.03 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.7692, allocations: 0 / 1.03 GB, free: 8.199 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.7695, allocations: 8 kB / 1.03 GB, free: 8.191 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.7695, allocations: 4 kB / 1.03 GB, free: 8.188 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.7695, allocations: 7.922 kB / 1.03 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.541e-05/0.7696, allocations: 79.28 kB / 1.03 GB, free: 8.102 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7696, allocations: 3.938 kB / 1.03 GB, free: 8.098 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005459/0.7702, allocations: 16 kB / 1.03 GB, free: 8.082 MB / 0.7794 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.0001703/0.7704, allocations: 103.2 kB / 1.03 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001599/0.7705, allocations: 47.91 kB / 1.03 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.7706, allocations: 0 / 1.03 GB, free: 7.926 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.355e-05/0.7706, allocations: 23.92 kB / 1.03 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007057/0.7713, allocations: 14.8 kB / 1.03 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009729/0.7723, allocations: 408.9 kB / 1.031 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.7727, allocations: 0.6863 MB / 1.031 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.269e-05/0.7728, allocations: 11.98 kB / 1.031 GB, free: 6.734 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.7728, allocations: 15.38 kB / 1.031 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of SimCode: time 3.4e-07/0.7729, allocations: 0 / 1.031 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of Templates: time 0.004064/0.7769, allocations: 0.6142 MB / 1.032 GB, free: 6.141 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches