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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008192/0.0008193, allocations: 98.88 kB / 16.02 MB, free: 76 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.0008641/0.0008641, allocations: 183.3 kB / 16.92 MB, free: 6.773 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.38/1.38, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.638/2.638, allocations: 462.6 MB / 0.737 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003374, allocations: 13.19 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2839, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001475/0.2854, allocations: 0.9976 MB / 1.06 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.1528/0.4382, allocations: 143.2 MB / 1.2 GB, free: 4.27 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.387e-05/0.4383, allocations: 0 / 1.2 GB, free: 4.27 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.26e-05/0.4383, allocations: 4 kB / 1.2 GB, free: 4.266 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.409e-05/0.4384, allocations: 7.938 kB / 1.2 GB, free: 4.258 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.4388, allocations: 79.69 kB / 1.2 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.148e-05/0.4389, allocations: 35.8 kB / 1.2 GB, free: 4.145 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.549e-05/0.4389, allocations: 3.984 kB / 1.2 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.276e-05/0.439, allocations: 12 kB / 1.2 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.822e-05/0.4391, allocations: 11.92 kB / 1.2 GB, free: 4.117 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.4391, allocations: 4 kB / 1.2 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002779/0.4394, allocations: 83.81 kB / 1.2 GB, free: 4.031 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.519e-05/0.4394, allocations: 4 kB / 1.2 GB, free: 4.027 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.895e-05/0.4394, allocations: 49.55 kB / 1.2 GB, free: 3.973 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001397/0.4396, allocations: 48.19 kB / 1.2 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4396, allocations: 0 / 1.2 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4396, allocations: 0 / 1.2 GB, free: 3.926 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.717e-06/0.4396, allocations: 0 / 1.2 GB, free: 3.926 MB / 0.9512 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.0003686/0.44, allocations: 343.5 kB / 1.201 GB, free: 3.543 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.44, allocations: 15.97 kB / 1.201 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.4403, allocations: 8.938 kB / 1.201 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.4404, allocations: 176.3 kB / 1.201 GB, free: 3.309 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.4404, allocations: 3.938 kB / 1.201 GB, free: 3.305 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.983e-05/0.4404, allocations: 11.91 kB / 1.201 GB, free: 3.293 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.4406, allocations: 45.69 kB / 1.201 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.4406, allocations: 0 / 1.201 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.4406, allocations: 0 / 1.201 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.4407, allocations: 0 / 1.201 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.282e-05/0.4407, allocations: 19.98 kB / 1.201 GB, free: 3.223 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002173/0.441, allocations: 173.6 kB / 1.201 GB, free: 3.004 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 8.474e-05/0.441, allocations: 50.5 kB / 1.201 GB, free: 2.945 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.075e-05/0.4411, allocations: 12.86 kB / 1.201 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.4411, allocations: 0 / 1.201 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.4411, allocations: 38.55 kB / 1.201 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.4411, allocations: 0 / 1.201 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0008177/0.442, allocations: 374.7 kB / 1.202 GB, free: 2.465 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.442, allocations: 59.34 kB / 1.202 GB, free: 2.395 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/0.4421, allocations: 89.86 kB / 1.202 GB, free: 2.297 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.4421, allocations: 29.7 kB / 1.202 GB, free: 2.262 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.432e-05/0.4421, allocations: 80.14 kB / 1.202 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.582e-05/0.4422, allocations: 35.45 kB / 1.202 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.097e-05/0.4422, allocations: 25.83 kB / 1.202 GB, free: 2.113 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4424, allocations: 322.8 kB / 1.202 GB, free: 1.789 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.505e-05/0.4424, allocations: 19.98 kB / 1.202 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.974e-05/0.4424, allocations: 33.7 kB / 1.202 GB, free: 1.73 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.901e-05/0.4425, allocations: 61.77 kB / 1.202 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.4426, allocations: 0 / 1.202 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000143/0.4427, allocations: 97.61 kB / 1.202 GB, free: 1.562 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.4427, allocations: 4 kB / 1.202 GB, free: 1.559 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.4427, allocations: 4 kB / 1.202 GB, free: 1.555 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.4428, allocations: 3.984 kB / 1.202 GB, free: 1.551 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.4429, allocations: 23.94 kB / 1.202 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4429, allocations: 0 / 1.202 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.559e-05/0.4429, allocations: 7.984 kB / 1.202 GB, free: 1.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.4429, allocations: 4 kB / 1.203 GB, free: 1.516 MB / 0.9512 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 8.287e-05/0.443, allocations: 121.7 kB / 1.203 GB, free: 1.387 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.547e-05/0.4431, allocations: 7.906 kB / 1.203 GB, free: 1.379 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.4431, allocations: 7.969 kB / 1.203 GB, free: 1.371 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.4431, allocations: 4 kB / 1.203 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.4431, allocations: 0 / 1.203 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4431, allocations: 4 kB / 1.203 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.4433, allocations: 173.6 kB / 1.203 GB, free: 1.145 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.4433, allocations: 0 / 1.203 GB, free: 1.145 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.4434, allocations: 31.92 kB / 1.203 GB, free: 1.113 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.4434, allocations: 0 / 1.203 GB, free: 1.113 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.4434, allocations: 0 / 1.203 GB, free: 1.113 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.4434, allocations: 0 / 1.203 GB, free: 1.113 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4434, allocations: 3.938 kB / 1.203 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.4437, allocations: 137 kB / 1.203 GB, free: 0.957 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-05/0.4437, allocations: 85.14 kB / 1.203 GB, free: 0.8555 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.4438, allocations: 0 / 1.203 GB, free: 0.8555 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-05/0.4439, allocations: 12 kB / 1.203 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.263e-05/0.4439, allocations: 7.984 kB / 1.203 GB, free: 0.8359 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.004e-06/0.4439, allocations: 0 / 1.203 GB, free: 0.8359 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.492e-05/0.4439, allocations: 79.28 kB / 1.203 GB, free: 0.7578 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.9e-07/0.444, allocations: 4.094 kB / 1.203 GB, free: 0.7539 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001982/0.4442, allocations: 19.94 kB / 1.203 GB, free: 0.7344 MB / 0.9512 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.0001171/0.4443, allocations: 103.2 kB / 1.203 GB, free: 0.6211 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.4444, allocations: 55.91 kB / 1.203 GB, free: 0.5664 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4444, allocations: 0 / 1.203 GB, free: 0.5664 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.078e-05/0.4445, allocations: 32.09 kB / 1.203 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002184/0.4447, allocations: 11.98 kB / 1.203 GB, free: 0.5234 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006297/0.4453, allocations: 412.1 kB / 1.204 GB, free: 92 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.4456, allocations: 0.6848 MB / 1.204 GB, free: 15.38 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.29e-05/0.4457, allocations: 15.38 kB / 1.204 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of SimCode: time 3.41e-07/0.4457, allocations: 0 / 1.204 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of Templates: time 0.00223/0.4479, allocations: 0.8268 MB / 1.205 GB, free: 14.54 MB / 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/jenkins1/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