Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001068/0.001068, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.00133/0.00133, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.497/2.497, allocations: 390.9 MB / 0.666 GB, free: 2.469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 8 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7641/0.7644, allocations: 142.4 MB / 0.9544 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.001038/0.7655, allocations: 0.9744 MB / 0.9554 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002393/0.7679, allocations: 2.339 MB / 0.9577 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.383e-05/0.7679, allocations: 3.938 kB / 0.9577 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.553e-05/0.768, allocations: 3.984 kB / 0.9577 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.052e-05/0.768, allocations: 9.328 kB / 0.9577 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003909/0.7684, allocations: 103.2 kB / 0.9578 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.623e-05/0.7685, allocations: 39.2 kB / 0.9578 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.164e-05/0.7685, allocations: 1.188 kB / 0.9578 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.717e-05/0.7686, allocations: 18.58 kB / 0.9578 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.721e-05/0.7686, allocations: 17.27 kB / 0.9579 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.7686, allocations: 2.75 kB / 0.9579 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.7689, allocations: 88.83 kB / 0.9579 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.7689, allocations: 10.23 kB / 0.958 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.011e-05/0.7689, allocations: 29.55 kB / 0.958 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.769, allocations: 44.66 kB / 0.958 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.7691, allocations: 1.406 kB / 0.958 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.903e-06/0.7691, allocations: 0 / 0.958 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.7691, allocations: 0 / 0.958 GB, free: 4.848 MB / 0.7169 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.00027/0.7693, allocations: 344.9 kB / 0.9584 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.159e-05/0.7694, allocations: 7.969 kB / 0.9584 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.7696, allocations: 17.36 kB / 0.9584 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.28e-05/0.7696, allocations: 165 kB / 0.9585 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.7697, allocations: 2.031 kB / 0.9585 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.7697, allocations: 6.062 kB / 0.9585 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.7698, allocations: 72.73 kB / 0.9586 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.7698, allocations: 1.125 kB / 0.9586 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.7699, allocations: 9.078 kB / 0.9586 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.7699, allocations: 9 kB / 0.9586 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.177e-05/0.7699, allocations: 14.08 kB / 0.9587 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004479/0.7704, allocations: 467.6 kB / 0.9591 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000104/0.7705, allocations: 74.47 kB / 0.9592 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.737e-05/0.7705, allocations: 30.62 kB / 0.9592 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.7705, allocations: 4.766 kB / 0.9592 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.921e-05/0.7706, allocations: 32.94 kB / 0.9592 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.7706, allocations: 4 kB / 0.9592 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004902/0.7711, allocations: 302.4 kB / 0.9595 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.7711, allocations: 104.3 kB / 0.9596 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.534e-05/0.7712, allocations: 100.8 kB / 0.9597 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.7712, allocations: 27.14 kB / 0.9597 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.256e-05/0.7712, allocations: 82.11 kB / 0.9598 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.506e-05/0.7712, allocations: 35.05 kB / 0.9599 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-06/0.7712, allocations: 4 kB / 0.9599 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.066e-05/0.7713, allocations: 316.6 kB / 0.9602 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.338e-05/0.7713, allocations: 11.31 kB / 0.9602 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.339e-05/0.7713, allocations: 52.08 kB / 0.9602 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.453e-05/0.7714, allocations: 24.52 kB / 0.9602 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.7714, allocations: 0 / 0.9602 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001117/0.7715, allocations: 97.39 kB / 0.9603 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.7715, allocations: 9.047 kB / 0.9603 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.7715, allocations: 2.469 kB / 0.9604 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.7715, allocations: 1.219 kB / 0.9604 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.365e-05/0.7716, allocations: 21.16 kB / 0.9604 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.852e-06/0.7716, allocations: 6.75 kB / 0.9604 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.372e-05/0.7717, allocations: 1.375 kB / 0.9604 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.7717, allocations: 8.109 kB / 0.9604 GB, free: 2.359 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.615e-05/0.7718, allocations: 118 kB / 0.9605 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-05/0.7718, allocations: 10.64 kB / 0.9605 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.7718, allocations: 8.938 kB / 0.9605 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.7719, allocations: 1.375 kB / 0.9605 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.7719, allocations: 1.375 kB / 0.9605 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.7719, allocations: 4 kB / 0.9605 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.7721, allocations: 186 kB / 0.9607 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.7722, allocations: 1.375 kB / 0.9607 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.982e-05/0.7722, allocations: 18.34 kB / 0.9607 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.7722, allocations: 5.328 kB / 0.9607 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.7723, allocations: 5.438 kB / 0.9607 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.7723, allocations: 1.375 kB / 0.9607 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.7723, allocations: 1.375 kB / 0.9607 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.7724, allocations: 336.1 kB / 0.9611 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.152e-05/0.7725, allocations: 79.86 kB / 0.9611 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.7725, allocations: 5.422 kB / 0.9611 GB, free: 1.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.7726, allocations: 10.78 kB / 0.9611 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.463e-05/0.7727, allocations: 6.734 kB / 0.9612 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.7727, allocations: 2.75 kB / 0.9612 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.697e-05/0.7727, allocations: 78.03 kB / 0.9612 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7727, allocations: 4 kB / 0.9612 GB, free: 1.488 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003085/0.773, allocations: 18.98 kB / 0.9613 GB, free: 1.48 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.675e-05/0.7731, allocations: 103.7 kB / 0.9614 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001049/0.7732, allocations: 47.36 kB / 0.9614 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.7732, allocations: 0 / 0.9614 GB, free: 1.371 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.308e-05/0.7733, allocations: 15.38 kB / 0.9614 GB, free: 1.367 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.7737, allocations: 18.98 kB / 0.9614 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004824/0.7742, allocations: 402.4 kB / 0.9618 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.99e-05/0.7743, allocations: 0.6825 MB / 0.9625 GB, free: 304 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.34e-05/0.7743, allocations: 15.89 kB / 0.9625 GB, free: 292 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.929e-05/0.7744, allocations: 10.19 kB / 0.9625 GB, free: 284 kB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7744, allocations: 0 / 0.9625 GB, free: 284 kB / 0.7169 GB Notification: Performance of Templates: time 0.002475/0.7769, allocations: 0.5987 MB / 0.9631 GB, free: 15.99 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches