Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.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.HexElementSensible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.mas.port.T|hex.port_a1.m_flow|hex.port_a2.m_flow|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible") translateModel(Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.vol1.T|hex.vol2.T|hex.mas.port.T|hex.port_a1.m_flow|hex.port_a2.m_flow|hex.Q1_flow|hex.Q2_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible") [: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.212/1.212, allocations: 249.4 MB / 256.7 MB, free: 6.941 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.001318/0.001317, allocations: 185.2 kB / 316 MB, free: 3.605 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.086/1.086, allocations: 205.2 MB / 0.5667 GB, free: 15.65 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.0008184/0.0008183, allocations: 88.67 kB / 0.671 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.963e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1412, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.834/3.975, allocations: 2.451 GB / 3.336 GB, free: 302.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/3.975, allocations: 100.2 kB / 3.336 GB, free: 302.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.616/6.592, allocations: 0.9771 GB / 4.313 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000126/6.592, allocations: 50.3 kB / 4.313 GB, free: 121.3 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: 278 * Number of variables: 278 Notification: Performance of Generate backend data structure: time 0.003259/6.595, allocations: 1.891 MB / 4.315 GB, free: 120.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/6.595, allocations: 7.875 kB / 4.315 GB, free: 120.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/6.597, allocations: 359.4 kB / 4.315 GB, free: 120.7 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002839/6.6, allocations: 1.614 MB / 4.317 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/6.6, allocations: 40.28 kB / 4.317 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/6.6, allocations: 74.59 kB / 4.317 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001228/6.601, allocations: 0.7901 MB / 4.318 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/6.602, allocations: 0.9923 MB / 4.319 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.911e-05/6.602, allocations: 0 / 4.319 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/6.602, allocations: 3.875 kB / 4.319 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.89e-05/6.602, allocations: 48.83 kB / 4.319 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005262/6.608, allocations: 5.592 MB / 4.324 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009824/6.609, allocations: 0.6487 MB / 4.325 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004508/6.609, allocations: 386.6 kB / 4.325 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004288/6.61, allocations: 0.6043 MB / 4.326 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/6.61, allocations: 42.81 kB / 4.326 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=70): time 2.074e-06/6.61, allocations: 3.172 kB / 4.326 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=70): time 0.001795/6.611, allocations: 0.8476 MB / 4.327 GB, free: 116.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.823e-05/6.612, allocations: 63.16 kB / 4.327 GB, free: 116.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008875/6.612, allocations: 0.8812 MB / 4.328 GB, free: 116.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/6.612, allocations: 28.14 kB / 4.328 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/6.613, allocations: 477.5 kB / 4.328 GB, free: 116.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000158/6.613, allocations: 241.4 kB / 4.328 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.952e-05/6.613, allocations: 0 / 4.328 GB, free: 116.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 5.654e-05/6.613, allocations: 334 kB / 4.329 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002985/6.613, allocations: 236.2 kB / 4.329 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003969/6.614, allocations: 488.9 kB / 4.329 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000457/6.614, allocations: 324.1 kB / 4.33 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/6.614, allocations: 3.031 kB / 4.33 GB, free: 115.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00138/6.615, allocations: 0.894 MB / 4.33 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001541/6.616, allocations: 1.071 MB / 4.332 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/6.616, allocations: 3.344 kB / 4.332 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/6.616, allocations: 96.05 kB / 4.332 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007285/6.617, allocations: 164.9 kB / 4.332 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008113/6.617, allocations: 1.811 MB / 4.334 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001211/6.619, allocations: 132.5 kB / 4.334 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.445e-05/6.619, allocations: 34.16 kB / 4.334 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.39e-06/6.619, allocations: 3.875 kB / 4.334 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001126/6.62, allocations: 0.6787 MB / 4.334 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/6.62, allocations: 7.719 kB / 4.334 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002545/6.62, allocations: 103.6 kB / 4.334 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/6.621, allocations: 156.2 kB / 4.335 GB, free: 112.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/6.623, allocations: 2.99 MB / 4.338 GB, free: 110.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/6.624, allocations: 136.8 kB / 4.338 GB, free: 110 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/6.624, allocations: 33.61 kB / 4.338 GB, free: 110 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001505/6.624, allocations: 125.9 kB / 4.338 GB, free: 109.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001574/6.624, allocations: 135.2 kB / 4.338 GB, free: 109.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/6.626, allocations: 0.8595 MB / 4.339 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/6.626, allocations: 11.16 kB / 4.339 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/6.626, allocations: 0 / 4.339 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009612/6.627, allocations: 0.9819 MB / 4.34 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002894/6.63, allocations: 2.209 MB / 4.342 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/6.63, allocations: 3.906 kB / 4.342 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007243/6.63, allocations: 168.4 kB / 4.342 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001254/6.631, allocations: 74.03 kB / 4.342 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/6.631, allocations: 3.5 kB / 4.342 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006125/6.631, allocations: 1.753 MB / 4.344 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/6.631, allocations: 6.969 kB / 4.344 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001455/6.633, allocations: 1.466 MB / 4.345 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004169/6.633, allocations: 322.2 kB / 4.346 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/6.633, allocations: 6.094 kB / 4.346 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009739/6.634, allocations: 114.6 kB / 4.346 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/6.634, allocations: 46.44 kB / 4.346 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.533e-05/6.634, allocations: 37.88 kB / 4.346 GB, free: 106.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0006778/6.635, allocations: 0.6731 MB / 4.346 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002025/6.637, allocations: 0.9213 MB / 4.347 GB, free: 106.4 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (hex.vol1.dynBal.U,hex.vol2.dynBal.U,hex.vol2.dynBal.m,hex.vol2.dynBal.mXi[1],hex.mas.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002149/6.639, allocations: 2.255 MB / 4.35 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001831/6.641, allocations: 1.276 MB / 4.351 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/6.641, allocations: 0 / 4.351 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005365/6.642, allocations: 372.9 kB / 4.351 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/6.645, allocations: 0.7184 MB / 4.352 GB, free: 105.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003235/6.648, allocations: 2.09 MB / 4.354 GB, free: 105 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008601/6.649, allocations: 1.432 MB / 4.355 GB, free: 104.3 MB / 0.8855 GB Notification: Performance of SimCode: time 6.81e-07/6.649, allocations: 0 / 4.355 GB, free: 104.3 MB / 0.8855 GB Notification: Performance of Templates: time 0.05414/6.703, allocations: 40.23 MB / 4.395 GB, free: 103.4 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_HeatExchangers_BaseClasses_Examples_HexElementSensible.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.BaseClasses.Examples.HexElementSensible.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches