Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, 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.001217/0.001217, allocations: 194.3 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.893/2.893, allocations: 472.7 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 62.8 kB / 0.9121 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3407, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002641/0.3433, allocations: 1.27 MB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1773/0.5206, allocations: 147 MB / 1.213 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.037e-05/0.5207, allocations: 3.938 kB / 1.213 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.625e-05/0.5208, allocations: 3.938 kB / 1.213 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.901e-05/0.5209, allocations: 3.938 kB / 1.213 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004101/0.5213, allocations: 95.56 kB / 1.213 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.216e-05/0.5214, allocations: 31.92 kB / 1.213 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.881e-05/0.5214, allocations: 11.97 kB / 1.213 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.265e-05/0.5215, allocations: 8 kB / 1.213 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.46e-05/0.5215, allocations: 15.92 kB / 1.213 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.5216, allocations: 0 / 1.213 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002558/0.5218, allocations: 83.81 kB / 1.213 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.407e-05/0.5218, allocations: 0 / 1.213 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.095e-05/0.5219, allocations: 23.92 kB / 1.213 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.5221, allocations: 72.03 kB / 1.213 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.5221, allocations: 0 / 1.213 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5221, allocations: 0 / 1.213 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.5221, allocations: 0 / 1.213 GB, free: 5.199 MB / 0.9669 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.0003847/0.5225, allocations: 351.5 kB / 1.214 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.5225, allocations: 8.031 kB / 1.214 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.5227, allocations: 16.78 kB / 1.214 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.5228, allocations: 168.4 kB / 1.214 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.5228, allocations: 3.938 kB / 1.214 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.528e-05/0.5229, allocations: 11.98 kB / 1.214 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001214/0.523, allocations: 45.69 kB / 1.214 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.523, allocations: 0 / 1.214 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.523, allocations: 4 kB / 1.214 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.5231, allocations: 0 / 1.214 GB, free: 4.512 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.931e-05/0.5231, allocations: 19.92 kB / 1.214 GB, free: 4.492 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002002/0.5233, allocations: 165.6 kB / 1.214 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.5235, allocations: 54.56 kB / 1.214 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.145e-05/0.5235, allocations: 13.09 kB / 1.214 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.5235, allocations: 4 kB / 1.214 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.5236, allocations: 34.55 kB / 1.214 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.5236, allocations: 0 / 1.214 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.000736/0.5243, allocations: 378 kB / 1.215 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.5244, allocations: 51.41 kB / 1.215 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.474e-05/0.5244, allocations: 93.86 kB / 1.215 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.5245, allocations: 29.7 kB / 1.215 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.238e-05/0.5245, allocations: 84.08 kB / 1.215 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.986e-05/0.5246, allocations: 39.44 kB / 1.215 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.837e-05/0.5246, allocations: 29.7 kB / 1.215 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.5247, allocations: 330.8 kB / 1.215 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.094e-05/0.5248, allocations: 23.98 kB / 1.215 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.832e-05/0.5249, allocations: 37.2 kB / 1.215 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.236e-05/0.525, allocations: 57.66 kB / 1.215 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.525, allocations: 0 / 1.215 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001618/0.5251, allocations: 97.58 kB / 1.215 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.5252, allocations: 4 kB / 1.215 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.5252, allocations: 7.984 kB / 1.215 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.5252, allocations: 4 kB / 1.215 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.5253, allocations: 23.94 kB / 1.215 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.5254, allocations: 0.7031 kB / 1.215 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.876e-05/0.5254, allocations: 4 kB / 1.215 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.5254, allocations: 4 kB / 1.215 GB, free: 2.77 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * 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.000124/0.5256, allocations: 127.3 kB / 1.216 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.004e-05/0.5256, allocations: 4 kB / 1.216 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.288e-05/0.5256, allocations: 7.969 kB / 1.216 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.5257, allocations: 0 / 1.216 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.5257, allocations: 4 kB / 1.216 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.5257, allocations: 7.984 kB / 1.216 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.5258, allocations: 169.6 kB / 1.216 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5258, allocations: 3.938 kB / 1.216 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001336/0.526, allocations: 24 kB / 1.216 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.526, allocations: 3.984 kB / 1.216 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.526, allocations: 0 / 1.216 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.526, allocations: 0 / 1.216 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.526, allocations: 0 / 1.216 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.5262, allocations: 140.9 kB / 1.216 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.703e-05/0.5263, allocations: 89.05 kB / 1.216 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.5263, allocations: 0 / 1.216 GB, free: 2.102 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.898e-05/0.5264, allocations: 8 kB / 1.216 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.319e-05/0.5265, allocations: 11.92 kB / 1.216 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.5265, allocations: 0 / 1.216 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.366e-05/0.5265, allocations: 79.28 kB / 1.216 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5265, allocations: 0 / 1.216 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000197/0.5267, allocations: 24.03 kB / 1.216 GB, free: 1.98 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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.0001103/0.5268, allocations: 99.78 kB / 1.216 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001566/0.527, allocations: 67.98 kB / 1.216 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.527, allocations: 0 / 1.216 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.755e-05/0.527, allocations: 28.16 kB / 1.216 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.5273, allocations: 12.2 kB / 1.216 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005776/0.5279, allocations: 329 kB / 1.217 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.5282, allocations: 0.6885 MB / 1.217 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.413e-05/0.5282, allocations: 16.59 kB / 1.217 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.052e-05/0.5283, allocations: 11.44 kB / 1.217 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of SimCode: time 2.21e-07/0.5283, allocations: 0 / 1.217 GB, free: 0.6758 MB / 0.9669 GB Notification: Performance of Templates: time 0.002792/0.5311, allocations: 0.6226 MB / 1.218 GB, free: 56 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches