Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.7568/0.7568, allocations: 141.8 MB / 149.1 MB, free: 13.12 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001218/0.001219, allocations: 183.1 kB / 181.9 MB, free: 9.797 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 221.3 MB / 436 MB, free: 2.242 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 95.16 kB / 0.507 GB, free: 11.01 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00226/0.00226, allocations: 283.1 kB / 0.5884 GB, free: 7.848 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.594e-06/7.755e-06, allocations: 0 / 0.6759 GB, free: 14.22 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5991/0.5992, allocations: 82.77 MB / 0.7567 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.935/1.534, allocations: 411.9 MB / 1.159 GB, free: 8.984 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/1.535, allocations: 102.9 kB / 1.159 GB, free: 8.934 MB / 0.6982 GB Notification: Performance of FrontEnd: time 4.89/6.425, allocations: 1.184 GB / 2.343 GB, free: 75.52 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.0004655/6.426, allocations: 51.45 kB / 2.343 GB, free: 75.52 MB / 0.7294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.007764/6.433, allocations: 2.032 MB / 2.345 GB, free: 74.61 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/6.433, allocations: 11.61 kB / 2.345 GB, free: 74.61 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003125/6.437, allocations: 484.5 kB / 2.345 GB, free: 74.5 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008425/6.445, allocations: 2.29 MB / 2.348 GB, free: 74.07 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/6.445, allocations: 40.52 kB / 2.348 GB, free: 74.07 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004927/6.446, allocations: 72.66 kB / 2.348 GB, free: 74.07 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002289/6.448, allocations: 0.7794 MB / 2.348 GB, free: 74.07 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002757/6.451, allocations: 1.068 MB / 2.35 GB, free: 73.81 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.686e-05/6.451, allocations: 4.844 kB / 2.35 GB, free: 73.81 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001815/6.451, allocations: 2.438 kB / 2.35 GB, free: 73.81 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.559e-05/6.451, allocations: 43.39 kB / 2.35 GB, free: 73.8 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01257/6.464, allocations: 6.948 MB / 2.356 GB, free: 69.61 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008204/6.465, allocations: 446.7 kB / 2.357 GB, free: 69.59 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005202/6.465, allocations: 350.6 kB / 2.357 GB, free: 69.58 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006046/6.471, allocations: 2.937 MB / 2.36 GB, free: 67.75 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005942/6.472, allocations: 340.8 kB / 2.36 GB, free: 67.7 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=66): time 3.927e-06/6.472, allocations: 0 / 2.36 GB, free: 67.7 MB / 0.7294 GB Notification: Performance of matching and sorting (n=66): time 0.002699/6.475, allocations: 0.8705 MB / 2.361 GB, free: 67.55 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/6.475, allocations: 111.3 kB / 2.361 GB, free: 67.43 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00214/6.477, allocations: 1.223 MB / 2.362 GB, free: 67.26 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 8.384e-05/6.477, allocations: 29.42 kB / 2.362 GB, free: 67.23 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005546/6.477, allocations: 0.5599 MB / 2.363 GB, free: 66.92 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002663/6.478, allocations: 229 kB / 2.363 GB, free: 66.77 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.166e-05/6.478, allocations: 3 kB / 2.363 GB, free: 66.77 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0001143/6.478, allocations: 346.1 kB / 2.364 GB, free: 66.46 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/6.478, allocations: 259.6 kB / 2.364 GB, free: 66.46 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/6.479, allocations: 0.6719 MB / 2.364 GB, free: 65.96 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001574/6.48, allocations: 0.5267 MB / 2.365 GB, free: 65.95 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/6.48, allocations: 3.594 kB / 2.365 GB, free: 65.95 MB / 0.7294 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002651/6.483, allocations: 1.164 MB / 2.366 GB, free: 65.82 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009837/6.484, allocations: 4.409 MB / 2.37 GB, free: 61.18 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/6.484, allocations: 14.28 kB / 2.37 GB, free: 61.18 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.588e-05/6.484, allocations: 19.62 kB / 2.37 GB, free: 61.18 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/6.485, allocations: 254.3 kB / 2.371 GB, free: 61.18 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/6.485, allocations: 19.52 kB / 2.371 GB, free: 61.18 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/6.487, allocations: 156.3 kB / 2.371 GB, free: 61.13 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/6.487, allocations: 53.88 kB / 2.371 GB, free: 61.13 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/6.487, allocations: 6.5 kB / 2.371 GB, free: 61.13 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002479/6.49, allocations: 0.9358 MB / 2.372 GB, free: 61.11 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/6.49, allocations: 10 kB / 2.372 GB, free: 61.11 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/6.49, allocations: 18.22 kB / 2.372 GB, free: 61.11 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/6.491, allocations: 254.1 kB / 2.372 GB, free: 61.11 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.08e-05/6.491, allocations: 25.08 kB / 2.372 GB, free: 61.11 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/6.492, allocations: 132.2 kB / 2.372 GB, free: 61.08 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/6.492, allocations: 58.33 kB / 2.372 GB, free: 61.08 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003478/6.493, allocations: 145.6 kB / 2.372 GB, free: 60.96 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005251/6.493, allocations: 163.2 kB / 2.373 GB, free: 60.88 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003064/6.496, allocations: 1.148 MB / 2.374 GB, free: 60.79 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.742e-05/6.496, allocations: 15.36 kB / 2.374 GB, free: 60.79 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/6.496, allocations: 0 / 2.374 GB, free: 60.79 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001806/6.498, allocations: 0.9106 MB / 2.375 GB, free: 60.52 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005439/6.504, allocations: 2.168 MB / 2.377 GB, free: 60.19 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/6.504, allocations: 6.969 kB / 2.377 GB, free: 60.19 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007763/6.505, allocations: 144.5 kB / 2.377 GB, free: 60.19 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/6.505, allocations: 39.62 kB / 2.377 GB, free: 60.18 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/6.505, allocations: 16.52 kB / 2.377 GB, free: 60.18 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008534/6.506, allocations: 1.262 MB / 2.378 GB, free: 58.98 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/6.506, allocations: 3.812 kB / 2.378 GB, free: 58.98 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002594/6.508, allocations: 1.442 MB / 2.38 GB, free: 58.67 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009325/6.509, allocations: 346.6 kB / 2.38 GB, free: 58.48 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000443/6.51, allocations: 3.875 kB / 2.38 GB, free: 58.48 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/6.511, allocations: 84.75 kB / 2.38 GB, free: 58.47 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/6.511, allocations: 49.17 kB / 2.38 GB, free: 58.47 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.016e-05/6.511, allocations: 30.5 kB / 2.38 GB, free: 58.47 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.001721/6.513, allocations: 0.9137 MB / 2.381 GB, free: 58.36 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.00452/6.517, allocations: 0.9476 MB / 2.382 GB, free: 58.2 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,coo.outCon.T) * 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 (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002772/6.52, allocations: 1.191 MB / 2.383 GB, free: 57.93 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.002395/6.523, allocations: 1.278 MB / 2.384 GB, free: 57.84 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/6.523, allocations: 3.844 kB / 2.384 GB, free: 57.84 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007586/6.523, allocations: 455.7 kB / 2.385 GB, free: 57.74 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/6.527, allocations: 0.5986 MB / 2.385 GB, free: 57.73 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00624/6.533, allocations: 2.334 MB / 2.388 GB, free: 57.12 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/6.535, allocations: 1.546 MB / 2.389 GB, free: 56.39 MB / 0.7294 GB Notification: Performance of SimCode: time 1.172e-06/6.535, allocations: 0 / 2.389 GB, free: 56.39 MB / 0.7294 GB Notification: Performance of Templates: time 0.05872/6.593, allocations: 36.12 MB / 2.424 GB, free: 54.26 MB / 0.7294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1)