Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.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.Fluid.Sensors.Examples.SpecificEnthalpy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.h_out|senFloSou.h_out",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy") translateModel(Buildings.Fluid.Sensors.Examples.SpecificEnthalpy,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senStr.port_a.m_flow|senStr.h_out|senFloSou.h_out",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy") [: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 1.962/1.962, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001081/0.001081, allocations: 173.3 kB / 490.8 MB, free: 1.914 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.322/1.322, allocations: 221.4 MB / 0.7863 GB, free: 13.64 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.0008655/0.0008655, allocations: 83.81 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.456e-06/8.546e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2714, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.418/4.689, allocations: 1.866 GB / 3.078 GB, free: 433.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/4.69, allocations: 82.92 kB / 3.078 GB, free: 433.1 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.4104/5.1, allocations: 209.7 MB / 3.283 GB, free: 238.1 MB / 1.151 GB Notification: Performance of Transformations before backend: time 3.067e-05/5.1, allocations: 4 kB / 3.283 GB, free: 238.1 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001126/5.101, allocations: 0.5601 MB / 3.283 GB, free: 237.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/5.101, allocations: 12.03 kB / 3.283 GB, free: 237.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/5.101, allocations: 27.62 kB / 3.283 GB, free: 237.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000487/5.102, allocations: 284.1 kB / 3.283 GB, free: 237.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/5.102, allocations: 4 kB / 3.283 GB, free: 237.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.518e-05/5.102, allocations: 12 kB / 3.283 GB, free: 237.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002723/5.102, allocations: 99.97 kB / 3.284 GB, free: 237 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/5.103, allocations: 214.5 kB / 3.284 GB, free: 236.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/5.103, allocations: 4 kB / 3.284 GB, free: 236.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.236e-05/5.103, allocations: 4 kB / 3.284 GB, free: 236.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/5.103, allocations: 4 kB / 3.284 GB, free: 236.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/5.104, allocations: 1.29 MB / 3.285 GB, free: 235.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001868/5.104, allocations: 151.8 kB / 3.285 GB, free: 235.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.709e-05/5.104, allocations: 81.19 kB / 3.285 GB, free: 235.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003047/5.104, allocations: 121 kB / 3.285 GB, free: 234.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/5.104, allocations: 46.44 kB / 3.285 GB, free: 234.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=10): time 1.793e-06/5.104, allocations: 0 / 3.285 GB, free: 234.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=10): time 0.0005072/5.105, allocations: 141.3 kB / 3.286 GB, free: 234.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/5.105, allocations: 183.9 kB / 3.286 GB, free: 234.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/5.105, allocations: 171.2 kB / 3.286 GB, free: 234.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/5.105, allocations: 25.7 kB / 3.286 GB, free: 234.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 6.962e-05/5.105, allocations: 144.2 kB / 3.286 GB, free: 234.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 2.568e-05/5.105, allocations: 35.45 kB / 3.286 GB, free: 234.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/5.105, allocations: 0 / 3.286 GB, free: 234.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.519e-05/5.105, allocations: 326.8 kB / 3.286 GB, free: 233.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.297e-05/5.105, allocations: 31.92 kB / 3.286 GB, free: 233.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.804e-05/5.106, allocations: 113.3 kB / 3.287 GB, free: 233.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/5.106, allocations: 67.92 kB / 3.287 GB, free: 233.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/5.106, allocations: 0 / 3.287 GB, free: 233.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003003/5.106, allocations: 165.4 kB / 3.287 GB, free: 233.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/5.106, allocations: 7.906 kB / 3.287 GB, free: 233.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/5.106, allocations: 4 kB / 3.287 GB, free: 233.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/5.106, allocations: 0 / 3.287 GB, free: 233.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/5.106, allocations: 39.92 kB / 3.287 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/5.106, allocations: 4.219 kB / 3.287 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/5.106, allocations: 23.89 kB / 3.287 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/5.106, allocations: 11.98 kB / 3.287 GB, free: 233.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 7.205e-05/5.107, allocations: 112.9 kB / 3.287 GB, free: 233.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/5.107, allocations: 15.81 kB / 3.287 GB, free: 233.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002633/5.107, allocations: 114.7 kB / 3.287 GB, free: 233.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/5.107, allocations: 7.906 kB / 3.287 GB, free: 233 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/5.107, allocations: 4 kB / 3.287 GB, free: 233 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/5.107, allocations: 3.984 kB / 3.287 GB, free: 233 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006094/5.108, allocations: 0.7229 MB / 3.288 GB, free: 232.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/5.108, allocations: 0 / 3.288 GB, free: 232.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/5.108, allocations: 27.92 kB / 3.288 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/5.108, allocations: 4 kB / 3.288 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/5.108, allocations: 4.125 kB / 3.288 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/5.108, allocations: 4 kB / 3.288 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/5.108, allocations: 0 / 3.288 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004025/5.108, allocations: 368.3 kB / 3.288 GB, free: 231.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 6.85e-05/5.108, allocations: 108.8 kB / 3.288 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/5.108, allocations: 7.938 kB / 3.288 GB, free: 231.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/5.108, allocations: 11.98 kB / 3.288 GB, free: 231.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.499e-05/5.109, allocations: 20.08 kB / 3.288 GB, free: 231.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/5.109, allocations: 4 kB / 3.288 GB, free: 231.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 9.305e-05/5.109, allocations: 139.5 kB / 3.288 GB, free: 231.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0006302/5.109, allocations: 123.8 kB / 3.289 GB, free: 231.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 1 (senStr.h_out) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.001933/5.111, allocations: 1.135 MB / 3.29 GB, free: 230.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001981/5.111, allocations: 83.86 kB / 3.29 GB, free: 230.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/5.111, allocations: 0 / 3.29 GB, free: 230.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 6.899e-05/5.112, allocations: 43.92 kB / 3.29 GB, free: 230.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004396/5.112, allocations: 67.22 kB / 3.29 GB, free: 230 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007093/5.113, allocations: 336.5 kB / 3.29 GB, free: 229.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000254/5.113, allocations: 0.7901 MB / 3.291 GB, free: 228.9 MB / 1.151 GB Notification: Performance of SimCode: time 2.8e-07/5.113, allocations: 3.938 kB / 3.291 GB, free: 228.9 MB / 1.151 GB Notification: Performance of Templates: time 0.01363/5.127, allocations: 8.309 MB / 3.299 GB, free: 220.6 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_SpecificEnthalpy.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.SpecificEnthalpy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches