Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",fmuType="me",version="2.0",platforms={"static"}) [: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.574/1.574, allocations: 289.8 MB / 297.1 MB, free: 8.977 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.001303/0.001303, allocations: 181.3 kB / 366.3 MB, free: 11.35 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.621/1.621, allocations: 205.1 MB / 0.6256 GB, free: 11.38 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009706/0.0009704, allocations: 77.23 kB / 0.7396 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.58/0.581, allocations: 122.4 MB / 0.8591 GB, free: 148 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.8437, allocations: 116.3 MB / 0.9726 GB, free: 31.64 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.426/6.27, allocations: 2.358 GB / 3.331 GB, free: 318.9 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/6.27, allocations: 90.91 kB / 3.331 GB, free: 318.8 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: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 9.627/15.9, allocations: 2.844 GB / 6.175 GB, free: 52.24 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/15.9, allocations: 12 kB / 6.175 GB, free: 52.23 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02257/15.92, allocations: 3.225 MB / 6.178 GB, free: 48.99 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0511/15.97, allocations: 18.39 MB / 6.196 GB, free: 30.83 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007463/15.97, allocations: 356 kB / 6.197 GB, free: 30.48 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005053/15.98, allocations: 0.6443 MB / 6.197 GB, free: 29.84 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03232/16.01, allocations: 13.14 MB / 6.21 GB, free: 16.7 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0434/16.05, allocations: 14.65 MB / 6.225 GB, free: 1.52 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005181/16.05, allocations: 51.55 kB / 6.225 GB, free: 1.469 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003059/16.06, allocations: 20 kB / 6.225 GB, free: 1.449 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004101/16.06, allocations: 0.5757 MB / 6.225 GB, free: 0.8711 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9251/16.98, allocations: 62.1 MB / 6.286 GB, free: 173.4 MB / 0.9949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01455/17, allocations: 8.8 MB / 6.294 GB, free: 173.2 MB / 0.9949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008206/17, allocations: 5.053 MB / 6.299 GB, free: 173.1 MB / 0.9949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002559/17.01, allocations: 2.389 MB / 6.302 GB, free: 170.7 MB / 0.9949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008405/17.02, allocations: 5.16 MB / 6.307 GB, free: 170.5 MB / 0.9949 GB Notification: Performance of pre-optimization done (n=704): time 1.049e-05/17.02, allocations: 1.781 kB / 6.307 GB, free: 170.5 MB / 0.9949 GB Notification: Performance of matching and sorting (n=704): time 0.03179/17.05, allocations: 10.47 MB / 6.317 GB, free: 169.7 MB / 0.9949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/17.05, allocations: 354.9 kB / 6.317 GB, free: 169.4 MB / 0.9949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01801/17.07, allocations: 9.692 MB / 6.327 GB, free: 168.8 MB / 0.9949 GB Notification: Performance of collectPreVariables (initialization): time 0.00251/17.07, allocations: 36.42 kB / 6.327 GB, free: 168.8 MB / 0.9949 GB Notification: Performance of collectInitialEqns (initialization): time 0.008582/17.08, allocations: 4.313 MB / 6.331 GB, free: 167.1 MB / 0.9949 GB Notification: Performance of collectInitialBindings (initialization): time 0.008359/17.09, allocations: 2.354 MB / 6.333 GB, free: 165.7 MB / 0.9949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008024/17.09, allocations: 0 / 6.333 GB, free: 165.7 MB / 0.9949 GB Notification: Performance of setup shared object (initialization): time 0.0005066/17.09, allocations: 0.6589 MB / 6.334 GB, free: 165.4 MB / 0.9949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005591/17.09, allocations: 4.119 MB / 6.338 GB, free: 165.3 MB / 0.9949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006789/17.1, allocations: 6.338 MB / 6.344 GB, free: 162.8 MB / 0.9949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03148/17.13, allocations: 8.225 MB / 6.352 GB, free: 162.7 MB / 0.9949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.983e-05/17.13, allocations: 18.97 kB / 6.352 GB, free: 162.7 MB / 0.9949 GB Notification: Performance of matching and sorting (n=1097) (initialization): time 0.05373/17.18, allocations: 14.33 MB / 6.366 GB, free: 162 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 0.007277/17.19, allocations: 35.45 MB / 6.401 GB, free: 125.1 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002903/17.19, allocations: 66.06 kB / 6.401 GB, free: 125.1 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001028/17.19, allocations: 198.5 kB / 6.401 GB, free: 125.1 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01375/17.21, allocations: 2.353 MB / 6.403 GB, free: 125.1 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002099/17.21, allocations: 1.607 MB / 6.405 GB, free: 123.8 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01715/17.23, allocations: 1.266 MB / 6.406 GB, free: 123.4 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003/17.23, allocations: 428 kB / 6.407 GB, free: 123.4 MB / 0.9949 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/17.23, allocations: 7.375 kB / 6.407 GB, free: 123.4 MB / 0.9949 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04985/17.28, allocations: 13.3 MB / 6.42 GB, free: 123.2 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00021/17.28, allocations: 69.94 kB / 6.42 GB, free: 123.2 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007081/17.28, allocations: 198.1 kB / 6.42 GB, free: 123.2 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01323/17.29, allocations: 2.348 MB / 6.422 GB, free: 123.2 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001874/17.3, allocations: 1.608 MB / 6.424 GB, free: 122 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01545/17.31, allocations: 1.101 MB / 6.425 GB, free: 121.6 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003752/17.31, allocations: 428.1 kB / 6.425 GB, free: 121.6 MB / 0.9949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 293 * 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 (1095): * Single equations (assignments): 1094 * 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.005158/17.32, allocations: 337.8 kB / 6.426 GB, free: 121.4 MB / 0.9949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005624/17.33, allocations: 1.013 MB / 6.426 GB, free: 120.9 MB / 0.9949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04045/17.37, allocations: 12.25 MB / 6.438 GB, free: 120.5 MB / 0.9949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.726e-05/17.37, allocations: 75.56 kB / 6.439 GB, free: 120.5 MB / 0.9949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/17.37, allocations: 0 / 6.439 GB, free: 120.5 MB / 0.9949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02944/17.4, allocations: 9.916 MB / 6.448 GB, free: 120 MB / 0.9949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07045/17.47, allocations: 25.57 MB / 6.473 GB, free: 118.3 MB / 0.9949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.742e-05/17.47, allocations: 11.91 kB / 6.473 GB, free: 118.3 MB / 0.9949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01084/17.48, allocations: 1.69 MB / 6.475 GB, free: 118.3 MB / 0.9949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007398/17.48, allocations: 119.2 kB / 6.475 GB, free: 118.3 MB / 0.9949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001923/17.48, allocations: 167.7 kB / 6.475 GB, free: 118.3 MB / 0.9949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/17.48, allocations: 1.524 MB / 6.477 GB, free: 117 MB / 0.9949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.339e-05/17.48, allocations: 18.06 kB / 6.477 GB, free: 117 MB / 0.9949 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04126/17.52, allocations: 19.59 MB / 6.496 GB, free: 109.5 MB / 0.9949 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0467/17.57, allocations: 25.94 MB / 6.521 GB, free: 97.05 MB / 0.9949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01011/17.58, allocations: 2.95 MB / 6.524 GB, free: 95.5 MB / 0.9949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004531/17.58, allocations: 50.84 kB / 6.524 GB, free: 95.49 MB / 0.9949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01481/17.6, allocations: 0.6792 MB / 6.525 GB, free: 95.43 MB / 0.9949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001723/17.6, allocations: 403.1 kB / 6.525 GB, free: 95.36 MB / 0.9949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001482/17.6, allocations: 377.1 kB / 6.525 GB, free: 95.3 MB / 0.9949 GB Notification: Performance of sort global known variables: time 0.01462/17.62, allocations: 7.434 MB / 6.533 GB, free: 92.62 MB / 0.9949 GB Notification: Performance of remove unused functions: time 0.03526/17.65, allocations: 7.342 MB / 6.54 GB, free: 90.9 MB / 0.9949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 40 (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,solCol1.vol[1].dynBal.U,solCol1.vol[2].dynBal.U,solCol1.vol[3].dynBal.U,solCol1.vol[4].dynBal.U,solCol1.vol[5].dynBal.U,solCol1.vol[6].dynBal.U,solCol1.vol[7].dynBal.U,solCol1.vol[8].dynBal.U,solCol1.vol[9].dynBal.U,solCol1.vol[10].dynBal.U,solCol1.vol[11].dynBal.U,solCol1.vol[12].dynBal.U,solCol1.vol[13].dynBal.U,solCol1.vol[14].dynBal.U,solCol1.vol[15].dynBal.U,solCol1.vol[16].dynBal.U,solCol1.vol[17].dynBal.U,solCol1.vol[18].dynBal.U,solCol1.vol[19].dynBal.U,solCol1.vol[20].dynBal.U,solCol1.vol[21].dynBal.U,solCol1.vol[22].dynBal.U,solCol1.vol[23].dynBal.U,solCol1.vol[24].dynBal.U,solCol1.vol[25].dynBal.U,solCol1.vol[26].dynBal.U,solCol1.vol[27].dynBal.U,TOut1.T,TIn1.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 (729): * Single equations (assignments): 716 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.004893/17.66, allocations: 2.026 MB / 6.542 GB, free: 90.44 MB / 0.9949 GB Notification: Performance of simCode: created initialization part: time 0.03107/17.69, allocations: 15.97 MB / 6.557 GB, free: 79.55 MB / 0.9949 GB Notification: Performance of simCode: created event and clocks part: time 3.012e-05/17.69, allocations: 15.61 kB / 6.557 GB, free: 79.53 MB / 0.9949 GB Notification: Performance of simCode: created simulation system equations: time 0.008482/17.7, allocations: 4.572 MB / 6.562 GB, free: 75.39 MB / 0.9949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03324/17.73, allocations: 5.589 MB / 6.567 GB, free: 71.58 MB / 0.9949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06341/17.79, allocations: 25.44 MB / 6.592 GB, free: 49.25 MB / 0.9949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02006/17.81, allocations: 9.976 MB / 6.602 GB, free: 41.84 MB / 0.9949 GB Notification: Performance of SimCode: time 1.102e-06/17.81, allocations: 0 / 6.602 GB, free: 41.84 MB / 0.9949 GB (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe 2>&1)