Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.port_a1.m_flow|hex.port_a2.m_flow|netEne.y|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.port_a1.m_flow|hex.port_a2.m_flow|netEne.y|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent") [: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 7.0.3-maint.7.0.x/package.mo): time 1.202/1.202, allocations: 249.4 MB / 256.7 MB, free: 7.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 185.2 kB / 316 MB, free: 3.594 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.102/1.102, allocations: 205.2 MB / 0.5667 GB, free: 15.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009003/0.0009003, allocations: 97.55 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.193e-06/7.214e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.1645, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.894/4.059, allocations: 2.459 GB / 3.344 GB, free: 293.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001853/4.059, allocations: 95.94 kB / 3.344 GB, free: 293.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.611/6.67, allocations: 1.082 GB / 4.426 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001315/6.67, allocations: 62.62 kB / 4.426 GB, free: 109.5 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 350 * Number of variables: 350 Notification: Performance of Generate backend data structure: time 0.003557/6.674, allocations: 2.118 MB / 4.428 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/6.674, allocations: 10.06 kB / 4.428 GB, free: 108.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001617/6.676, allocations: 386.4 kB / 4.428 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002829/6.679, allocations: 1.66 MB / 4.43 GB, free: 108 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.373e-05/6.679, allocations: 43.22 kB / 4.43 GB, free: 108 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/6.679, allocations: 85.69 kB / 4.43 GB, free: 108 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001493/6.68, allocations: 0.9455 MB / 4.431 GB, free: 108 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/6.682, allocations: 1.234 MB / 4.432 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/6.682, allocations: 3.188 kB / 4.432 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-05/6.682, allocations: 3.812 kB / 4.432 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.254e-05/6.682, allocations: 58.81 kB / 4.432 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007029/6.689, allocations: 7.231 MB / 4.439 GB, free: 103.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/6.69, allocations: 0.7712 MB / 4.44 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00043/6.691, allocations: 390.8 kB / 4.44 GB, free: 103.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006769/6.691, allocations: 0.7246 MB / 4.441 GB, free: 102.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/6.691, allocations: 45.34 kB / 4.441 GB, free: 102.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=75): time 2.585e-06/6.691, allocations: 0 / 4.441 GB, free: 102.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=75): time 0.002999/6.694, allocations: 1.179 MB / 4.442 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.047e-05/6.694, allocations: 61.91 kB / 4.442 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009879/6.695, allocations: 0.9383 MB / 4.443 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/6.696, allocations: 25.7 kB / 4.443 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/6.696, allocations: 0.5806 MB / 4.444 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.00017/6.696, allocations: 246.2 kB / 4.444 GB, free: 102 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/6.696, allocations: 3.094 kB / 4.444 GB, free: 102 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 5.507e-05/6.696, allocations: 337.2 kB / 4.444 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/6.696, allocations: 272.1 kB / 4.445 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/6.697, allocations: 0.5526 MB / 4.445 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006954/6.698, allocations: 448.5 kB / 4.446 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/6.698, allocations: 3.688 kB / 4.446 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002593/6.7, allocations: 1.259 MB / 4.447 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002971/6.7, allocations: 1.956 MB / 4.449 GB, free: 99.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/6.7, allocations: 6.219 kB / 4.449 GB, free: 99.21 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/6.702, allocations: 369.4 kB / 4.449 GB, free: 99.18 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/6.703, allocations: 154.7 kB / 4.449 GB, free: 99.18 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/6.704, allocations: 2.14 MB / 4.451 GB, free: 97.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/6.705, allocations: 157.1 kB / 4.452 GB, free: 97.57 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.873e-05/6.705, allocations: 39.55 kB / 4.452 GB, free: 97.57 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/6.705, allocations: 5.5 kB / 4.452 GB, free: 97.57 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002327/6.707, allocations: 1.054 MB / 4.453 GB, free: 97.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/6.707, allocations: 10.31 kB / 4.453 GB, free: 97.52 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/6.709, allocations: 384.9 kB / 4.453 GB, free: 97.49 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005497/6.709, allocations: 147.4 kB / 4.453 GB, free: 97.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002487/6.712, allocations: 3.781 MB / 4.457 GB, free: 94.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001167/6.713, allocations: 141 kB / 4.457 GB, free: 94.39 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-05/6.713, allocations: 39.02 kB / 4.457 GB, free: 94.39 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 21,1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001859/6.713, allocations: 121 kB / 4.457 GB, free: 94.29 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/6.714, allocations: 141.9 kB / 4.457 GB, free: 94.21 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002678/6.716, allocations: 1.234 MB / 4.459 GB, free: 94.08 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/6.716, allocations: 7.125 kB / 4.459 GB, free: 94.08 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/6.716, allocations: 6.375 kB / 4.459 GB, free: 94.08 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002175/6.718, allocations: 1.333 MB / 4.46 GB, free: 93.58 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003728/6.722, allocations: 2.551 MB / 4.462 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/6.722, allocations: 6.891 kB / 4.462 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/6.723, allocations: 105.3 kB / 4.462 GB, free: 93.14 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/6.724, allocations: 365.7 kB / 4.463 GB, free: 93.12 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.196e-05/6.724, allocations: 11.56 kB / 4.463 GB, free: 93.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/6.725, allocations: 2.121 MB / 4.465 GB, free: 91.55 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/6.725, allocations: 2.969 kB / 4.465 GB, free: 91.55 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001575/6.727, allocations: 1.344 MB / 4.466 GB, free: 91.02 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005395/6.727, allocations: 335 kB / 4.466 GB, free: 90.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/6.728, allocations: 6.938 kB / 4.466 GB, free: 90.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/6.729, allocations: 114.9 kB / 4.467 GB, free: 90.83 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.84e-05/6.729, allocations: 43.8 kB / 4.467 GB, free: 90.83 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.843e-05/6.729, allocations: 32.08 kB / 4.467 GB, free: 90.83 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0007705/6.73, allocations: 0.7104 MB / 4.467 GB, free: 90.72 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002536/6.732, allocations: 1.055 MB / 4.468 GB, free: 90.56 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 21,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002523/6.735, allocations: 2.527 MB / 4.471 GB, free: 89.77 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002104/6.737, allocations: 1.467 MB / 4.472 GB, free: 89.53 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/6.737, allocations: 3.812 kB / 4.472 GB, free: 89.53 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0006151/6.737, allocations: 424.5 kB / 4.473 GB, free: 89.52 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003032/6.74, allocations: 0.7047 MB / 4.473 GB, free: 89.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00348/6.744, allocations: 2.011 MB / 4.475 GB, free: 88.87 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008925/6.745, allocations: 1.488 MB / 4.477 GB, free: 88.14 MB / 0.8855 GB Notification: Performance of SimCode: time 5.01e-07/6.745, allocations: 0 / 4.477 GB, free: 88.14 MB / 0.8855 GB Notification: Performance of Templates: time 0.06666/6.812, allocations: 44.53 MB / 4.52 GB, free: 83.57 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementLatent.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementLatent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches