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: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",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.601/1.601, allocations: 289.8 MB / 297.1 MB, free: 6.715 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.001721/0.001721, allocations: 181.3 kB / 366.3 MB, free: 1.992 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.591/1.591, allocations: 205.2 MB / 0.6256 GB, free: 5.82 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.0009642/0.0009644, allocations: 86.19 kB / 0.7396 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2868/0.2878, allocations: 122.4 MB / 0.8591 GB, free: 13.28 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7061/0.994, allocations: 116.3 MB / 0.9726 GB, free: 68.04 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.037/6.031, allocations: 2.358 GB / 3.331 GB, free: 95.61 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/6.031, allocations: 88.45 kB / 3.331 GB, free: 95.52 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 3.541/9.572, allocations: 0.9315 GB / 4.262 GB, free: 188 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/9.572, allocations: 7.812 kB / 4.262 GB, free: 188 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008913/9.581, allocations: 1.355 MB / 4.263 GB, free: 187.7 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01402/9.595, allocations: 5.467 MB / 4.269 GB, free: 187 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/9.595, allocations: 116.9 kB / 4.269 GB, free: 187 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001386/9.597, allocations: 228.3 kB / 4.269 GB, free: 187 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00894/9.605, allocations: 4.424 MB / 4.273 GB, free: 187 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008498/9.614, allocations: 4.587 MB / 4.278 GB, free: 186.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.69e-05/9.614, allocations: 6 kB / 4.278 GB, free: 186.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004087/9.615, allocations: 8.719 kB / 4.278 GB, free: 186.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001384/9.615, allocations: 174.3 kB / 4.278 GB, free: 186.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0316/9.646, allocations: 19.09 MB / 4.297 GB, free: 177.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005354/9.652, allocations: 2.966 MB / 4.3 GB, free: 176.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002472/9.654, allocations: 1.626 MB / 4.301 GB, free: 175.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001791/9.656, allocations: 1.869 MB / 4.303 GB, free: 173.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002482/9.658, allocations: 1.79 MB / 4.305 GB, free: 173.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=264): time 4.128e-06/9.659, allocations: 0.6562 kB / 4.305 GB, free: 173.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=264): time 0.01118/9.67, allocations: 3.678 MB / 4.308 GB, free: 172 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/9.67, allocations: 291.5 kB / 4.309 GB, free: 171.7 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005163/9.675, allocations: 3.054 MB / 4.312 GB, free: 170.6 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006485/9.676, allocations: 25.7 kB / 4.312 GB, free: 170.5 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001737/9.677, allocations: 1.392 MB / 4.313 GB, free: 169.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001513/9.679, allocations: 0.8611 MB / 4.314 GB, free: 168.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/9.679, allocations: 0.6562 kB / 4.314 GB, free: 168.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001643/9.679, allocations: 425.1 kB / 4.314 GB, free: 168.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001924/9.681, allocations: 1.327 MB / 4.316 GB, free: 168 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/9.684, allocations: 2.005 MB / 4.318 GB, free: 166.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01388/9.697, allocations: 2.878 MB / 4.32 GB, free: 166 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.329e-05/9.698, allocations: 5.75 kB / 4.32 GB, free: 166 MB / 0.948 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.02097/9.718, allocations: 4.966 MB / 4.325 GB, free: 164.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002013/9.721, allocations: 7.289 MB / 4.332 GB, free: 157 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-05/9.721, allocations: 17.59 kB / 4.332 GB, free: 157 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000716/9.721, allocations: 115.4 kB / 4.332 GB, free: 157 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004564/9.726, allocations: 0.812 MB / 4.333 GB, free: 156.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/9.728, allocations: 1.493 MB / 4.335 GB, free: 155.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005251/9.733, allocations: 454.3 kB / 4.335 GB, free: 155.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005036/9.734, allocations: 144.6 kB / 4.335 GB, free: 155.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/9.734, allocations: 2.938 kB / 4.335 GB, free: 155.4 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01707/9.751, allocations: 4.599 MB / 4.34 GB, free: 154.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-05/9.751, allocations: 19.62 kB / 4.34 GB, free: 154.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005872/9.751, allocations: 113.5 kB / 4.34 GB, free: 154.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004005/9.755, allocations: 0.8071 MB / 4.341 GB, free: 154.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/9.757, allocations: 1.499 MB / 4.342 GB, free: 152.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004982/9.762, allocations: 398.2 kB / 4.343 GB, free: 152.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005479/9.763, allocations: 146.4 kB / 4.343 GB, free: 152.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.0009741/9.764, allocations: 181.2 kB / 4.343 GB, free: 152.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001326/9.765, allocations: 364.9 kB / 4.343 GB, free: 152.3 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01318/9.778, allocations: 4.519 MB / 4.348 GB, free: 150.9 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.743e-05/9.778, allocations: 30.3 kB / 4.348 GB, free: 150.9 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/9.778, allocations: 3.062 kB / 4.348 GB, free: 150.9 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009783/9.788, allocations: 3.622 MB / 4.351 GB, free: 149.7 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02211/9.81, allocations: 8.951 MB / 4.36 GB, free: 144 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/9.81, allocations: 7.438 kB / 4.36 GB, free: 144 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003438/9.814, allocations: 0.6311 MB / 4.361 GB, free: 143.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005555/9.814, allocations: 95.62 kB / 4.361 GB, free: 143.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002686/9.815, allocations: 60.02 kB / 4.361 GB, free: 143.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/9.816, allocations: 1.5 MB / 4.362 GB, free: 141.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/9.816, allocations: 7.938 kB / 4.362 GB, free: 141.8 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01377/9.83, allocations: 6.373 MB / 4.368 GB, free: 136 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01638/9.846, allocations: 8.827 MB / 4.377 GB, free: 127.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003315/9.85, allocations: 1.052 MB / 4.378 GB, free: 127 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001483/9.851, allocations: 22.16 kB / 4.378 GB, free: 127 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004457/9.856, allocations: 264 kB / 4.378 GB, free: 126.8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000365/9.856, allocations: 161.1 kB / 4.378 GB, free: 126.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004535/9.857, allocations: 137.3 kB / 4.379 GB, free: 126.6 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.004717/9.861, allocations: 2.349 MB / 4.381 GB, free: 124.6 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01169/9.873, allocations: 2.684 MB / 4.384 GB, free: 121.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.003431/9.877, allocations: 1.613 MB / 4.385 GB, free: 120.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.009715/9.886, allocations: 5.465 MB / 4.39 GB, free: 115.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/9.886, allocations: 4.781 kB / 4.39 GB, free: 115.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.002888/9.889, allocations: 1.708 MB / 4.392 GB, free: 113.5 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0096/9.899, allocations: 1.672 MB / 4.394 GB, free: 112 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02209/9.921, allocations: 7.963 MB / 4.402 GB, free: 104.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006986/9.928, allocations: 3.574 MB / 4.405 GB, free: 100.5 MB / 0.948 GB Notification: Performance of SimCode: time 1.743e-06/9.928, allocations: 4 kB / 4.405 GB, free: 100.5 MB / 0.948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1)