Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue") [: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 8.1.4-maint.8.1.x/package.mo): time 1.533/1.533, allocations: 289.8 MB / 297.1 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001302/0.001302, allocations: 177.3 kB / 366.3 MB, free: 1.926 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.1 MB / 0.6256 GB, free: 7.473 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009694/0.0009693, allocations: 89.27 kB / 0.7395 GB, free: 39.82 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.887e-06/9.217e-06, allocations: 0 / 0.859 GB, free: 13.54 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7963/0.7964, allocations: 116.3 MB / 0.9725 GB, free: 76.16 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.065/5.861, allocations: 2.358 GB / 3.33 GB, free: 130.4 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/5.861, allocations: 95 kB / 3.331 GB, free: 130.3 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.494/9.355, allocations: 0.9272 GB / 4.258 GB, free: 174 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0007231/9.356, allocations: 126.6 kB / 4.258 GB, free: 174 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01428/9.371, allocations: 4.311 MB / 4.262 GB, free: 172.5 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/9.371, allocations: 11.06 kB / 4.262 GB, free: 172.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009324/9.38, allocations: 1.356 MB / 4.263 GB, free: 172.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/9.395, allocations: 5.468 MB / 4.269 GB, free: 171.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002264/9.395, allocations: 123 kB / 4.269 GB, free: 171.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00152/9.397, allocations: 217 kB / 4.269 GB, free: 171.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00898/9.406, allocations: 4.43 MB / 4.273 GB, free: 171.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008911/9.415, allocations: 4.576 MB / 4.278 GB, free: 171 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001037/9.415, allocations: 12.84 kB / 4.278 GB, free: 171 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004829/9.415, allocations: 3.906 kB / 4.278 GB, free: 171 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001803/9.415, allocations: 181.5 kB / 4.278 GB, free: 171 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03361/9.449, allocations: 19.11 MB / 4.297 GB, free: 164.4 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004244/9.453, allocations: 2.967 MB / 4.3 GB, free: 164.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002013/9.455, allocations: 1.622 MB / 4.301 GB, free: 164.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001811/9.457, allocations: 1.866 MB / 4.303 GB, free: 162.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002473/9.46, allocations: 1.777 MB / 4.305 GB, free: 162.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=264): time 5.35e-06/9.46, allocations: 2.812 kB / 4.305 GB, free: 162.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=264): time 0.01051/9.47, allocations: 3.677 MB / 4.308 GB, free: 161.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/9.47, allocations: 285.5 kB / 4.309 GB, free: 161.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004982/9.475, allocations: 3.055 MB / 4.312 GB, free: 161.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005476/9.476, allocations: 36.17 kB / 4.312 GB, free: 161.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001693/9.478, allocations: 1.399 MB / 4.313 GB, free: 160.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001345/9.479, allocations: 0.8605 MB / 4.314 GB, free: 160 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/9.479, allocations: 0 / 4.314 GB, free: 160 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001678/9.479, allocations: 426.8 kB / 4.314 GB, free: 159.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001932/9.481, allocations: 1.326 MB / 4.316 GB, free: 159.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002222/9.483, allocations: 2.003 MB / 4.317 GB, free: 158.9 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/9.496, allocations: 2.884 MB / 4.32 GB, free: 158.9 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.423e-05/9.496, allocations: 3.875 kB / 4.32 GB, free: 158.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01932/9.516, allocations: 4.965 MB / 4.325 GB, free: 158.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002211/9.518, allocations: 7.282 MB / 4.332 GB, free: 151.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.661e-05/9.518, allocations: 23.31 kB / 4.332 GB, free: 151.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009571/9.519, allocations: 109.3 kB / 4.332 GB, free: 151.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004783/9.524, allocations: 0.8109 MB / 4.333 GB, free: 151.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001993/9.526, allocations: 1.505 MB / 4.335 GB, free: 149.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00528/9.531, allocations: 439.2 kB / 4.335 GB, free: 149.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00042/9.532, allocations: 146.2 kB / 4.335 GB, free: 149.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 8.896e-06/9.532, allocations: 3.875 kB / 4.335 GB, free: 149.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01816/9.55, allocations: 4.604 MB / 4.34 GB, free: 149.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.654e-05/9.55, allocations: 16.38 kB / 4.34 GB, free: 149.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000594/9.551, allocations: 114.4 kB / 4.34 GB, free: 149.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003908/9.554, allocations: 0.804 MB / 4.341 GB, free: 149.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/9.556, allocations: 1.503 MB / 4.342 GB, free: 147.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004933/9.561, allocations: 395.2 kB / 4.342 GB, free: 147.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004277/9.562, allocations: 152.5 kB / 4.343 GB, free: 147.7 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (371): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0009609/9.563, allocations: 178.4 kB / 4.343 GB, free: 147.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/9.564, allocations: 356.1 kB / 4.343 GB, free: 147.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01245/9.576, allocations: 4.528 MB / 4.348 GB, free: 146.1 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.273e-05/9.576, allocations: 26.91 kB / 4.348 GB, free: 146.1 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/9.576, allocations: 3.906 kB / 4.348 GB, free: 146.1 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008984/9.585, allocations: 3.621 MB / 4.351 GB, free: 144.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02174/9.607, allocations: 8.95 MB / 4.36 GB, free: 141.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/9.607, allocations: 3.875 kB / 4.36 GB, free: 141.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003427/9.61, allocations: 0.6321 MB / 4.36 GB, free: 141.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005371/9.611, allocations: 95.89 kB / 4.361 GB, free: 141.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002469/9.611, allocations: 64.81 kB / 4.361 GB, free: 141.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/9.613, allocations: 1.498 MB / 4.362 GB, free: 139.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/9.613, allocations: 7.75 kB / 4.362 GB, free: 139.8 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01388/9.627, allocations: 6.369 MB / 4.368 GB, free: 136.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003712/9.631, allocations: 1.061 MB / 4.369 GB, free: 136.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001879/9.632, allocations: 24.89 kB / 4.369 GB, free: 136.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005488/9.638, allocations: 262.2 kB / 4.37 GB, free: 136.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005559/9.639, allocations: 157.1 kB / 4.37 GB, free: 136.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005472/9.639, allocations: 130.8 kB / 4.37 GB, free: 136.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.006348/9.645, allocations: 2.355 MB / 4.372 GB, free: 135.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01558/9.661, allocations: 2.336 MB / 4.374 GB, free: 134.9 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 11 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (283): * Single equations (assignments): 274 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004/9.665, allocations: 1.61 MB / 4.376 GB, free: 134.5 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01023/9.675, allocations: 5.462 MB / 4.381 GB, free: 132.5 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.96e-05/9.675, allocations: 3.75 kB / 4.381 GB, free: 132.5 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.003244/9.679, allocations: 1.703 MB / 4.383 GB, free: 131.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009782/9.688, allocations: 1.666 MB / 4.385 GB, free: 131.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01823/9.707, allocations: 7.951 MB / 4.392 GB, free: 129 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004519/9.711, allocations: 3.564 MB / 4.396 GB, free: 127.8 MB / 0.948 GB Notification: Performance of SimCode: time 1.503e-06/9.711, allocations: 2.406 kB / 4.396 GB, free: 127.8 MB / 0.948 GB Notification: Performance of Templates: time 0.1714/9.883, allocations: 101.8 MB / 4.495 GB, free: 41.75 MB / 0.948 GB make -j1 -f Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.makefile (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & ./Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1)