Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.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.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl,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_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl") translateModel(Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl,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_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl") [: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.029/2.029, allocations: 387.2 MB / 394.5 MB, free: 1.605 MB / 302.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 185.2 kB / 487 MB, free: 9.75 MB / 398.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.485/1.485, allocations: 221.3 MB / 0.7819 GB, free: 5.426 MB / 0.545 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 96.28 kB / 0.9213 GB, free: 6.723 MB / 0.6856 GB Notification: Performance of FrontEnd - loaded program: time 1.069e-05/1.072e-05, allocations: 7.938 kB / 1.066 GB, free: 190 MB / 0.7637 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.2723, allocations: 142.3 MB / 1.205 GB, free: 48.26 MB / 0.7637 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.665/4.938, allocations: 2.185 GB / 3.39 GB, free: 91.13 MB / 1.139 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/4.938, allocations: 88.5 kB / 3.39 GB, free: 91.05 MB / 1.139 GB Notification: Performance of FrontEnd: time 3.202/8.14, allocations: 0.9536 GB / 4.344 GB, free: 272 kB / 1.154 GB Notification: Performance of Transformations before backend: time 0.0001689/8.14, allocations: 47.97 kB / 4.344 GB, free: 224 kB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.6409/8.781, allocations: 2.112 MB / 4.346 GB, free: 324.3 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/8.781, allocations: 7.25 kB / 4.346 GB, free: 324.3 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003713/8.785, allocations: 0.5892 MB / 4.347 GB, free: 324.2 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00404/8.789, allocations: 1.369 MB / 4.348 GB, free: 323.9 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006314/8.789, allocations: 183.4 kB / 4.348 GB, free: 323.9 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003081/8.79, allocations: 69.16 kB / 4.348 GB, free: 323.9 MB / 1.154 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001845/8.792, allocations: 0.9781 MB / 4.349 GB, free: 323.9 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/8.793, allocations: 1.09 MB / 4.35 GB, free: 323.8 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/8.793, allocations: 0 / 4.35 GB, free: 323.8 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/8.793, allocations: 3.375 kB / 4.35 GB, free: 323.8 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-05/8.794, allocations: 47.3 kB / 4.35 GB, free: 323.8 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009479/8.803, allocations: 5.253 MB / 4.356 GB, free: 321.8 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/8.804, allocations: 0.791 MB / 4.356 GB, free: 321.8 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005376/8.805, allocations: 415.2 kB / 4.357 GB, free: 321.8 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009664/8.806, allocations: 0.844 MB / 4.358 GB, free: 321 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007612/8.807, allocations: 0.4978 MB / 4.358 GB, free: 320.9 MB / 1.154 GB Notification: Performance of pre-optimization done (n=83): time 3.867e-06/8.807, allocations: 0 / 4.358 GB, free: 320.9 MB / 1.154 GB Notification: Performance of matching and sorting (n=83): time 0.002799/8.809, allocations: 1.017 MB / 4.359 GB, free: 320.8 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/8.81, allocations: 111 kB / 4.359 GB, free: 320.7 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/8.811, allocations: 0.897 MB / 4.36 GB, free: 320.5 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0001812/8.811, allocations: 36.05 kB / 4.36 GB, free: 320.5 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003934/8.812, allocations: 450 kB / 4.36 GB, free: 320.3 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002694/8.812, allocations: 270.5 kB / 4.361 GB, free: 320.1 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.269e-05/8.812, allocations: 1.969 kB / 4.361 GB, free: 320.1 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001021/8.812, allocations: 345.6 kB / 4.361 GB, free: 319.8 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005765/8.813, allocations: 386 kB / 4.361 GB, free: 319.8 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007879/8.813, allocations: 0.6863 MB / 4.362 GB, free: 319.5 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/8.815, allocations: 0.5173 MB / 4.363 GB, free: 319.5 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.281e-06/8.815, allocations: 3.469 kB / 4.363 GB, free: 319.5 MB / 1.154 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00249/8.817, allocations: 1.228 MB / 4.364 GB, free: 319.4 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004591/8.818, allocations: 2.021 MB / 4.366 GB, free: 317.3 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/8.818, allocations: 9.469 kB / 4.366 GB, free: 317.3 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.042e-05/8.818, allocations: 14.5 kB / 4.366 GB, free: 317.3 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001988/8.82, allocations: 367.9 kB / 4.366 GB, free: 317.3 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006492/8.82, allocations: 1.218 MB / 4.367 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002073/8.822, allocations: 205.4 kB / 4.368 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/8.823, allocations: 55.95 kB / 4.368 GB, free: 316.1 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/8.823, allocations: 6.031 kB / 4.368 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002129/8.825, allocations: 1.047 MB / 4.369 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/8.825, allocations: 3.625 kB / 4.369 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/8.825, allocations: 12.69 kB / 4.369 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001583/8.826, allocations: 344.3 kB / 4.369 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/8.826, allocations: 17.45 kB / 4.369 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/8.828, allocations: 190.8 kB / 4.369 GB, free: 316.1 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/8.828, allocations: 57.16 kB / 4.369 GB, free: 316.1 MB / 1.154 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,hex.flowRegime,hex.flowRegime_nominal,P.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 130 * 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.0003774/8.829, allocations: 143.5 kB / 4.369 GB, free: 315.9 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003407/8.829, allocations: 138.5 kB / 4.369 GB, free: 315.9 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/8.832, allocations: 1.153 MB / 4.371 GB, free: 315.8 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/8.832, allocations: 6.688 kB / 4.371 GB, free: 315.8 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/8.832, allocations: 0 / 4.371 GB, free: 315.8 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/8.832, allocations: 9.578 kB / 4.371 GB, free: 315.8 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005371/8.837, allocations: 2.586 MB / 4.373 GB, free: 315.4 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/8.837, allocations: 3.938 kB / 4.373 GB, free: 315.4 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/8.839, allocations: 261.1 kB / 4.373 GB, free: 315.4 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.406e-05/8.839, allocations: 14.81 kB / 4.373 GB, free: 315.4 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-05/8.839, allocations: 20.81 kB / 4.373 GB, free: 315.4 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004957/8.839, allocations: 1.2 MB / 4.375 GB, free: 314.2 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.257e-06/8.839, allocations: 5.594 kB / 4.375 GB, free: 314.2 MB / 1.154 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003303/8.843, allocations: 1.994 MB / 4.377 GB, free: 313.5 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/8.844, allocations: 359.9 kB / 4.377 GB, free: 313.4 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005014/8.844, allocations: 6.75 kB / 4.377 GB, free: 313.4 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001829/8.846, allocations: 137.9 kB / 4.377 GB, free: 313.4 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/8.846, allocations: 74.16 kB / 4.377 GB, free: 313.4 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/8.847, allocations: 45.86 kB / 4.377 GB, free: 313.4 MB / 1.154 GB Notification: Performance of sort global known variables: time 0.001453/8.848, allocations: 0.6622 MB / 4.378 GB, free: 313.2 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.004535/8.853, allocations: 0.9471 MB / 4.379 GB, free: 313.2 MB / 1.154 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (temSen.T,val.filter.s[1],val.filter.s[2],P.I.y) * Number of discrete variables: 4 ($whenCondition1,TSet.T_start,TSet.count,hex.flowRegime) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.004669/8.857, allocations: 2.298 MB / 4.381 GB, free: 312.7 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.004296/8.862, allocations: 1.685 MB / 4.383 GB, free: 312.6 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 9.148e-06/8.862, allocations: 3.312 kB / 4.383 GB, free: 312.6 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.001212/8.863, allocations: 0.5259 MB / 4.383 GB, free: 312.6 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003396/8.866, allocations: 0.4913 MB / 4.384 GB, free: 312.6 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006655/8.873, allocations: 2.087 MB / 4.386 GB, free: 312 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001891/8.875, allocations: 1.408 MB / 4.387 GB, free: 311.3 MB / 1.154 GB Notification: Performance of SimCode: time 9.51e-07/8.875, allocations: 7.312 kB / 4.387 GB, free: 311.3 MB / 1.154 GB Notification: Performance of Templates: time 0.07353/8.948, allocations: 42.32 MB / 4.428 GB, free: 310.8 MB / 1.154 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_DryCoilEffectivenessNTUPControl.csv","../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.DryCoilEffectivenessNTUPControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches