Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.91/1.91, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 177.3 kB / 487 MB, free: 5.395 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 221.3 MB / 0.7819 GB, free: 1.391 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009552/0.0009555, allocations: 95.61 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.662e-06/6.683e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2673, allocations: 142.3 MB / 1.205 GB, free: 26.28 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.409/7.677, allocations: 4.188 GB / 5.393 GB, free: 364.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/7.677, allocations: 75.95 kB / 5.393 GB, free: 364 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.06442/7.741, allocations: 35.97 MB / 5.428 GB, free: 327.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.201e-06/7.742, allocations: 3.938 kB / 5.428 GB, free: 327.6 MB / 1.151 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.0002767/7.742, allocations: 342.4 kB / 5.428 GB, free: 327.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/7.742, allocations: 13.02 kB / 5.428 GB, free: 327.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/7.742, allocations: 19.91 kB / 5.428 GB, free: 327.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/7.742, allocations: 167 kB / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/7.742, allocations: 4 kB / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/7.742, allocations: 7.938 kB / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.118e-05/7.742, allocations: 8 kB / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.622e-05/7.742, allocations: 45.59 kB / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/7.742, allocations: 3.984 kB / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/7.742, allocations: 0 / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.77e-06/7.742, allocations: 4 kB / 5.429 GB, free: 326.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/7.743, allocations: 138.2 kB / 5.429 GB, free: 326.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 5.327e-05/7.743, allocations: 41.66 kB / 5.429 GB, free: 326.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.457e-05/7.743, allocations: 8.859 kB / 5.429 GB, free: 326.6 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.344e-05/7.743, allocations: 4 kB / 5.429 GB, free: 326.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/7.743, allocations: 42.41 kB / 5.429 GB, free: 326.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/7.743, allocations: 0 / 5.429 GB, free: 326.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.0006064/7.743, allocations: 338.3 kB / 5.429 GB, free: 326.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.922e-05/7.743, allocations: 51.41 kB / 5.429 GB, free: 326.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.399e-05/7.743, allocations: 88.94 kB / 5.429 GB, free: 326 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/7.743, allocations: 29.7 kB / 5.429 GB, free: 326 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 2.124e-05/7.743, allocations: 84.12 kB / 5.429 GB, free: 325.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/7.743, allocations: 35.47 kB / 5.43 GB, free: 325.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/7.744, allocations: 0 / 5.43 GB, free: 325.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.953e-05/7.744, allocations: 319 kB / 5.43 GB, free: 325.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.628e-05/7.744, allocations: 20 kB / 5.43 GB, free: 325.6 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.662e-05/7.744, allocations: 25.72 kB / 5.43 GB, free: 325.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.654e-05/7.744, allocations: 23.98 kB / 5.43 GB, free: 325.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/7.744, allocations: 0 / 5.43 GB, free: 325.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=14) (initialization): time 9.946e-05/7.744, allocations: 85.52 kB / 5.43 GB, free: 325.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/7.744, allocations: 4 kB / 5.43 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/7.744, allocations: 480 / 5.43 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/7.744, allocations: 0 / 5.43 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/7.744, allocations: 31.98 kB / 5.43 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/7.744, allocations: 0 / 5.43 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.07e-05/7.744, allocations: 0 / 5.43 GB, free: 325.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/7.744, allocations: 8 kB / 5.43 GB, free: 325.4 MB / 1.151 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.179e-05/7.744, allocations: 111.6 kB / 5.43 GB, free: 325.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/7.744, allocations: 4 kB / 5.43 GB, free: 325.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.057e-05/7.744, allocations: 11.89 kB / 5.43 GB, free: 325.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/7.744, allocations: 4 kB / 5.43 GB, free: 325.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/7.744, allocations: 3.906 kB / 5.43 GB, free: 325.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/7.744, allocations: 4 kB / 5.43 GB, free: 325.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.176e-05/7.744, allocations: 138.2 kB / 5.43 GB, free: 325.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/7.744, allocations: 0 / 5.43 GB, free: 325.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/7.744, allocations: 19.98 kB / 5.43 GB, free: 325 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/7.744, allocations: 4 kB / 5.43 GB, free: 325 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/7.744, allocations: 4 kB / 5.43 GB, free: 325 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/7.744, allocations: 0 / 5.43 GB, free: 325 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/7.744, allocations: 3.984 kB / 5.43 GB, free: 325 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001417/7.745, allocations: 132.9 kB / 5.43 GB, free: 324.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 6.124e-05/7.745, allocations: 93.08 kB / 5.431 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/7.745, allocations: 0 / 5.431 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.694e-05/7.745, allocations: 4 kB / 5.431 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.188e-05/7.745, allocations: 7.922 kB / 5.431 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/7.745, allocations: 8 kB / 5.431 GB, free: 324.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.355e-05/7.745, allocations: 75.28 kB / 5.431 GB, free: 324.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002501/7.745, allocations: 47.89 kB / 5.431 GB, free: 324.6 MB / 1.151 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 () * 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 (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 0.0006296/7.746, allocations: 0.6621 MB / 5.431 GB, free: 324 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001088/7.746, allocations: 55.98 kB / 5.431 GB, free: 323.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/7.746, allocations: 0 / 5.431 GB, free: 323.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 2.582e-05/7.746, allocations: 24 kB / 5.431 GB, free: 323.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/7.746, allocations: 4 kB / 5.431 GB, free: 323.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004365/7.746, allocations: 270.1 kB / 5.432 GB, free: 323.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/7.747, allocations: 0.6997 MB / 5.432 GB, free: 322.9 MB / 1.151 GB Notification: Performance of SimCode: time 2.3e-07/7.747, allocations: 0 / 5.432 GB, free: 322.9 MB / 1.151 GB Notification: Performance of Templates: time 0.006309/7.753, allocations: 4.037 MB / 5.436 GB, free: 318.8 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches