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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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") [: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 10.0.0-master/package.mo): time 2.015/2.015, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.001059/0.001059, allocations: 177.3 kB / 490.8 MB, free: 1.973 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.514/1.514, allocations: 221.4 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00126/0.001259, allocations: 98.86 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.536e-06/8.727e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3217/0.3218, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.219/8.541, allocations: 4.188 GB / 5.4 GB, free: 368.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/8.541, allocations: 83.95 kB / 5.4 GB, free: 368.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.06427/8.606, allocations: 35.98 MB / 5.435 GB, free: 331.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.693e-06/8.606, allocations: 0 / 5.435 GB, free: 331.8 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.0002644/8.606, allocations: 354.4 kB / 5.436 GB, free: 331.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/8.606, allocations: 11.97 kB / 5.436 GB, free: 331.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/8.606, allocations: 15.89 kB / 5.436 GB, free: 331.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.419e-05/8.606, allocations: 163 kB / 5.436 GB, free: 331.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/8.606, allocations: 0 / 5.436 GB, free: 331.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/8.606, allocations: 8 kB / 5.436 GB, free: 331.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.951e-05/8.606, allocations: 11.98 kB / 5.436 GB, free: 331.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.742e-05/8.606, allocations: 49.62 kB / 5.436 GB, free: 331.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/8.606, allocations: 7.906 kB / 5.436 GB, free: 331.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/8.607, allocations: 0 / 5.436 GB, free: 331.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/8.607, allocations: 0 / 5.436 GB, free: 331.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001423/8.607, allocations: 138.2 kB / 5.436 GB, free: 330.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 5.749e-05/8.607, allocations: 33.7 kB / 5.436 GB, free: 330.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.548e-05/8.607, allocations: 16.86 kB / 5.436 GB, free: 330.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/8.607, allocations: 0 / 5.436 GB, free: 330.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/8.607, allocations: 34.56 kB / 5.436 GB, free: 330.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/8.607, allocations: 4 kB / 5.436 GB, free: 330.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=11): time 0.0006033/8.607, allocations: 338.2 kB / 5.436 GB, free: 330.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.036e-05/8.607, allocations: 55.41 kB / 5.436 GB, free: 330.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.257e-05/8.608, allocations: 85 kB / 5.436 GB, free: 330.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/8.608, allocations: 25.7 kB / 5.437 GB, free: 330.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 1.733e-05/8.608, allocations: 84.27 kB / 5.437 GB, free: 330.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 2.976e-05/8.608, allocations: 43.36 kB / 5.437 GB, free: 330.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.757e-06/8.608, allocations: 0 / 5.437 GB, free: 330.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.099e-05/8.608, allocations: 314.8 kB / 5.437 GB, free: 329.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.579e-05/8.608, allocations: 12 kB / 5.437 GB, free: 329.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.495e-05/8.608, allocations: 37.64 kB / 5.437 GB, free: 329.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.439e-05/8.608, allocations: 16 kB / 5.437 GB, free: 329.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/8.608, allocations: 0 / 5.437 GB, free: 329.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001041/8.608, allocations: 93.56 kB / 5.437 GB, free: 329.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/8.608, allocations: 6.656 kB / 5.437 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/8.608, allocations: 0 / 5.437 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/8.608, allocations: 4 kB / 5.437 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/8.608, allocations: 23.92 kB / 5.437 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.114e-05/8.608, allocations: 4 kB / 5.437 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/8.608, allocations: 0 / 5.437 GB, free: 329.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/8.608, allocations: 8.469 kB / 5.437 GB, free: 329.6 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.297e-05/8.608, allocations: 108.9 kB / 5.437 GB, free: 329.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/8.608, allocations: 8 kB / 5.437 GB, free: 329.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.422e-05/8.608, allocations: 7.906 kB / 5.437 GB, free: 329.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/8.608, allocations: 0 / 5.437 GB, free: 329.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/8.608, allocations: 3.938 kB / 5.437 GB, free: 329.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/8.608, allocations: 3.906 kB / 5.437 GB, free: 329.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.37e-05/8.608, allocations: 146.2 kB / 5.437 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/8.608, allocations: 0 / 5.437 GB, free: 329.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/8.608, allocations: 23.94 kB / 5.437 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/8.608, allocations: 0 / 5.437 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/8.608, allocations: 3.984 kB / 5.437 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/8.608, allocations: 4 kB / 5.437 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/8.609, allocations: 7.984 kB / 5.437 GB, free: 329.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001441/8.609, allocations: 121.1 kB / 5.438 GB, free: 329.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 6.041e-05/8.609, allocations: 89 kB / 5.438 GB, free: 329 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/8.609, allocations: 0 / 5.438 GB, free: 329 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.655e-05/8.609, allocations: 0 / 5.438 GB, free: 329 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.756e-05/8.609, allocations: 12.03 kB / 5.438 GB, free: 329 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/8.609, allocations: 8 kB / 5.438 GB, free: 329 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.523e-05/8.609, allocations: 79.28 kB / 5.438 GB, free: 328.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002676/8.609, allocations: 39.98 kB / 5.438 GB, free: 328.8 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.000664/8.61, allocations: 0.6777 MB / 5.438 GB, free: 328.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001099/8.61, allocations: 51.98 kB / 5.438 GB, free: 328.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/8.61, allocations: 0 / 5.438 GB, free: 328.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 2.858e-05/8.61, allocations: 27.94 kB / 5.439 GB, free: 328.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001326/8.61, allocations: 0 / 5.439 GB, free: 328.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004559/8.611, allocations: 273.9 kB / 5.439 GB, free: 327.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/8.611, allocations: 0.6997 MB / 5.439 GB, free: 327.1 MB / 1.151 GB Notification: Performance of SimCode: time 3.11e-07/8.611, allocations: 0 / 5.439 GB, free: 327.1 MB / 1.151 GB Notification: Performance of Templates: time 0.006403/8.617, allocations: 4.04 MB / 5.443 GB, free: 323 MB / 1.151 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","../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches