Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.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.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|P.u_s|P.u_m|hex.sta_a1.T|hex.sta_b1.T|hex.sta_a2.T|hex.sta_b2.T|hex.Q1_flow|hex.Q2_flow|hex.m1_flow|hex.m2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl") translateModel(Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|P.u_s|P.u_m|hex.sta_a1.T|hex.sta_b1.T|hex.sta_a2.T|hex.sta_b2.T|hex.Q1_flow|hex.Q2_flow|hex.m1_flow|hex.m2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl") [: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.001/2.001, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.001123/0.001123, allocations: 180.5 kB / 490.8 MB, free: 1.922 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.404/1.404, allocations: 221.4 MB / 0.7863 GB, free: 13.67 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.001043/0.001043, allocations: 98.45 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.524e-06/7.544e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2941, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.299, allocations: 423.8 MB / 1.625 GB, free: 7.703 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/1.3, allocations: 92.88 kB / 1.626 GB, free: 7.656 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.363/3.663, allocations: 0.6281 GB / 2.254 GB, free: 243.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002413/3.663, allocations: 40.05 kB / 2.254 GB, free: 243.7 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.005319/3.669, allocations: 1.822 MB / 2.255 GB, free: 243 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/3.669, allocations: 7.438 kB / 2.255 GB, free: 243 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/3.671, allocations: 424.1 kB / 2.256 GB, free: 242.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02975/3.701, allocations: 13.73 MB / 2.269 GB, free: 242.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006452/3.701, allocations: 186.1 kB / 2.269 GB, free: 242.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/3.702, allocations: 60.91 kB / 2.27 GB, free: 242.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001304/3.703, allocations: 0.7452 MB / 2.27 GB, free: 242.1 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00132/3.704, allocations: 0.8837 MB / 2.271 GB, free: 242 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/3.704, allocations: 3.906 kB / 2.271 GB, free: 242 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.042e-05/3.704, allocations: 3.312 kB / 2.271 GB, free: 242 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-05/3.704, allocations: 38.33 kB / 2.271 GB, free: 242 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006867/3.711, allocations: 4.649 MB / 2.276 GB, free: 240 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007956/3.712, allocations: 0.5776 MB / 2.276 GB, free: 240 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004145/3.712, allocations: 327.2 kB / 2.277 GB, free: 240 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009696/3.713, allocations: 1.064 MB / 2.278 GB, free: 238.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00057/3.714, allocations: 400.3 kB / 2.278 GB, free: 238.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=73): time 3.497e-06/3.714, allocations: 3.969 kB / 2.278 GB, free: 238.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=73): time 0.002065/3.716, allocations: 0.8153 MB / 2.279 GB, free: 238.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/3.716, allocations: 121.4 kB / 2.279 GB, free: 238.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/3.717, allocations: 0.8584 MB / 2.28 GB, free: 238.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 9.15e-05/3.717, allocations: 29.58 kB / 2.28 GB, free: 238.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/3.718, allocations: 395.3 kB / 2.28 GB, free: 238.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/3.718, allocations: 245.5 kB / 2.28 GB, free: 238.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.924e-05/3.718, allocations: 4.094 kB / 2.28 GB, free: 238.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001051/3.718, allocations: 340.2 kB / 2.281 GB, free: 237.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005156/3.719, allocations: 308.2 kB / 2.281 GB, free: 237.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006786/3.719, allocations: 0.5512 MB / 2.282 GB, free: 237.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/3.721, allocations: 461.1 kB / 2.282 GB, free: 237.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/3.721, allocations: 0 / 2.282 GB, free: 237.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002241/3.723, allocations: 1.047 MB / 2.283 GB, free: 237.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004835/3.723, allocations: 1.582 MB / 2.285 GB, free: 235.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/3.723, allocations: 6.031 kB / 2.285 GB, free: 235.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.317e-05/3.723, allocations: 10.72 kB / 2.285 GB, free: 235.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/3.725, allocations: 323.4 kB / 2.285 GB, free: 235.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006343/3.726, allocations: 1.211 MB / 2.286 GB, free: 234.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/3.727, allocations: 186.6 kB / 2.286 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/3.727, allocations: 52.86 kB / 2.286 GB, free: 234.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/3.727, allocations: 6.312 kB / 2.286 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001836/3.729, allocations: 0.8785 MB / 2.287 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/3.729, allocations: 10.62 kB / 2.287 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/3.729, allocations: 10.62 kB / 2.287 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/3.73, allocations: 298.7 kB / 2.287 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/3.73, allocations: 10.97 kB / 2.287 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/3.732, allocations: 178 kB / 2.288 GB, free: 234.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/3.732, allocations: 53.45 kB / 2.288 GB, free: 234.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,hex.flowRegime_nominal,P.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * 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.0002616/3.732, allocations: 133.5 kB / 2.288 GB, free: 234.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/3.732, allocations: 129.3 kB / 2.288 GB, free: 234.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002458/3.735, allocations: 1.127 MB / 2.289 GB, free: 234.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/3.735, allocations: 14.41 kB / 2.289 GB, free: 234.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/3.735, allocations: 0 / 2.289 GB, free: 234.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.252e-05/3.735, allocations: 10.5 kB / 2.289 GB, free: 234.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003692/3.738, allocations: 2.241 MB / 2.291 GB, free: 233.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/3.739, allocations: 3.438 kB / 2.291 GB, free: 233.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/3.74, allocations: 235.8 kB / 2.292 GB, free: 233.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.058e-05/3.74, allocations: 13.02 kB / 2.292 GB, free: 233.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-05/3.74, allocations: 14.88 kB / 2.292 GB, free: 233.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004127/3.74, allocations: 1.197 MB / 2.293 GB, free: 232.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/3.74, allocations: 3.219 kB / 2.293 GB, free: 232.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002454/3.743, allocations: 1.673 MB / 2.294 GB, free: 232.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005537/3.743, allocations: 353.3 kB / 2.295 GB, free: 232.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/3.743, allocations: 4.75 kB / 2.295 GB, free: 232.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/3.744, allocations: 139.4 kB / 2.295 GB, free: 232.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/3.745, allocations: 65.83 kB / 2.295 GB, free: 232 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.162e-05/3.745, allocations: 35.59 kB / 2.295 GB, free: 232 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0007647/3.745, allocations: 0.6355 MB / 2.296 GB, free: 231.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002469/3.748, allocations: 0.813 MB / 2.296 GB, free: 231.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (temSen.T,val.filter.s[1],val.filter.s[2],P.I.y) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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.0015/3.749, allocations: 0.8445 MB / 2.297 GB, free: 231.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002557/3.752, allocations: 1.423 MB / 2.299 GB, free: 231.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/3.752, allocations: 5.969 kB / 2.299 GB, free: 231.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006931/3.753, allocations: 462.5 kB / 2.299 GB, free: 231.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/3.755, allocations: 452.2 kB / 2.299 GB, free: 231.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003923/3.759, allocations: 1.862 MB / 2.301 GB, free: 231 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009418/3.76, allocations: 1.33 MB / 2.303 GB, free: 230.2 MB / 1.151 GB Notification: Performance of SimCode: time 2.7e-07/3.76, allocations: 3.188 kB / 2.303 GB, free: 230.2 MB / 1.151 GB Notification: Performance of Templates: time 0.04887/3.809, allocations: 32.26 MB / 2.334 GB, free: 229.8 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatExchangers_Examples_PlateHeatExchangerEffectivenessNTUPControl.csv","../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.PlateHeatExchangerEffectivenessNTUPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches