Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.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.Fluid.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") translateModel(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") [: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 2.356/2.356, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001547/0.001546, 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.724/1.724, allocations: 221.3 MB / 0.7819 GB, free: 1.398 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.00109/0.00109, allocations: 104.6 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.931e-06/5.961e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3556, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.232/4.588, allocations: 1.895 GB / 3.1 GB, free: 430.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/4.588, allocations: 81.23 kB / 3.1 GB, free: 430.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.115/7.703, allocations: 1.009 GB / 4.11 GB, free: 222.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001694/7.704, allocations: 38.84 kB / 4.11 GB, free: 222.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: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.007805/7.711, allocations: 1.818 MB / 4.111 GB, free: 221.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/7.711, allocations: 6.531 kB / 4.111 GB, free: 221.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003936/7.715, allocations: 0.5939 MB / 4.112 GB, free: 221.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004179/7.72, allocations: 1.085 MB / 4.113 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007189/7.72, allocations: 182.7 kB / 4.113 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004996/7.721, allocations: 59.19 kB / 4.113 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002556/7.723, allocations: 1.008 MB / 4.114 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002769/7.726, allocations: 1.05 MB / 4.115 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/7.726, allocations: 0 / 4.115 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001675/7.726, allocations: 3.938 kB / 4.115 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.147e-05/7.727, allocations: 46.02 kB / 4.115 GB, free: 221.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009756/7.736, allocations: 4.104 MB / 4.119 GB, free: 219.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/7.738, allocations: 0.7285 MB / 4.12 GB, free: 219.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/7.739, allocations: 0.5068 MB / 4.121 GB, free: 219.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/7.741, allocations: 0.6151 MB / 4.121 GB, free: 219.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.212e-05/7.741, allocations: 43.81 kB / 4.121 GB, free: 219.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=76): time 4.749e-06/7.741, allocations: 0 / 4.121 GB, free: 219.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=76): time 0.003626/7.744, allocations: 1.19 MB / 4.122 GB, free: 219.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/7.744, allocations: 66.17 kB / 4.122 GB, free: 219.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001548/7.746, allocations: 0.5635 MB / 4.123 GB, free: 219 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001826/7.746, allocations: 30.23 kB / 4.123 GB, free: 219 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003538/7.746, allocations: 327.1 kB / 4.123 GB, free: 218.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003025/7.747, allocations: 250 kB / 4.124 GB, free: 218.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/7.747, allocations: 1.062 kB / 4.124 GB, free: 218.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.795e-05/7.747, allocations: 336.1 kB / 4.124 GB, free: 218.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008394/7.748, allocations: 406.7 kB / 4.124 GB, free: 218.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/7.749, allocations: 0.5427 MB / 4.125 GB, free: 218.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/7.75, allocations: 0.6127 MB / 4.125 GB, free: 218.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/7.75, allocations: 1.156 kB / 4.125 GB, free: 218.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002929/7.753, allocations: 1.216 MB / 4.127 GB, free: 218.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000149/7.753, allocations: 453.7 kB / 4.127 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/7.754, allocations: 5.031 kB / 4.127 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.718e-05/7.754, allocations: 5.609 kB / 4.127 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001889/7.755, allocations: 283.3 kB / 4.127 GB, free: 217.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006868/7.756, allocations: 1.215 MB / 4.128 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/7.758, allocations: 188.9 kB / 4.129 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/7.758, allocations: 36.95 kB / 4.129 GB, free: 216.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/7.758, allocations: 4.875 kB / 4.129 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002617/7.761, allocations: 1.095 MB / 4.13 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/7.761, allocations: 13.52 kB / 4.13 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/7.761, allocations: 4.891 kB / 4.13 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/7.762, allocations: 267.8 kB / 4.13 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/7.762, allocations: 8.094 kB / 4.13 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/7.764, allocations: 179.7 kB / 4.13 GB, free: 216.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/7.764, allocations: 40.47 kB / 4.13 GB, free: 216.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (hex.i1_w,hex.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004258/7.765, allocations: 117.6 kB / 4.13 GB, free: 216.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004311/7.765, allocations: 99.53 kB / 4.13 GB, free: 216.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003483/7.769, allocations: 1.262 MB / 4.132 GB, free: 216.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/7.769, allocations: 7.281 kB / 4.132 GB, free: 216.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.313e-05/7.769, allocations: 6.969 kB / 4.132 GB, free: 216.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/7.769, allocations: 4.797 kB / 4.132 GB, free: 216.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00602/7.775, allocations: 2.645 MB / 4.134 GB, free: 215.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/7.775, allocations: 9.812 kB / 4.134 GB, free: 215.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/7.776, allocations: 272.2 kB / 4.135 GB, free: 215.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-05/7.776, allocations: 7.5 kB / 4.135 GB, free: 215.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/7.776, allocations: 20.42 kB / 4.135 GB, free: 215.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005699/7.777, allocations: 1.2 MB / 4.136 GB, free: 214.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/7.777, allocations: 3.406 kB / 4.136 GB, free: 214.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002823/7.78, allocations: 1.536 MB / 4.137 GB, free: 214.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000864/7.781, allocations: 308.2 kB / 4.138 GB, free: 214 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003314/7.781, allocations: 8.25 kB / 4.138 GB, free: 214 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/7.783, allocations: 165.9 kB / 4.138 GB, free: 213.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/7.783, allocations: 60.45 kB / 4.138 GB, free: 213.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/7.783, allocations: 42.44 kB / 4.138 GB, free: 213.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0008834/7.784, allocations: 440.7 kB / 4.138 GB, free: 213.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.003188/7.787, allocations: 0.69 MB / 4.139 GB, free: 213.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004699/7.792, allocations: 2.63 MB / 4.141 GB, free: 212.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004005/7.796, allocations: 1.607 MB / 4.143 GB, free: 212.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 9.809e-06/7.796, allocations: 1.031 kB / 4.143 GB, free: 212.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001165/7.797, allocations: 0.5377 MB / 4.144 GB, free: 212.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002659/7.8, allocations: 412.3 kB / 4.144 GB, free: 212.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0175/7.817, allocations: 2.425 MB / 4.146 GB, free: 211.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/7.819, allocations: 1.236 MB / 4.148 GB, free: 211 MB / 1.151 GB Notification: Performance of SimCode: time 1.292e-06/7.819, allocations: 0 / 4.148 GB, free: 211 MB / 1.151 GB Notification: Performance of Templates: time 0.06571/7.885, allocations: 38.39 MB / 4.185 GB, free: 190.9 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.makefile (rm -f Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & ./Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness.csv","../files/Buildings_9_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches