Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.242/1.242, allocations: 249.4 MB / 256.7 MB, free: 7.008 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009621/0.0009621, allocations: 188.5 kB / 316 MB, free: 3.582 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.195/1.195, allocations: 205.2 MB / 0.5667 GB, free: 15.63 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009663/0.0009664, allocations: 83.38 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3607/0.3617, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.5411, allocations: 106.3 MB / 0.8847 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.189/4.73, allocations: 2.475 GB / 3.359 GB, free: 291.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/4.73, allocations: 91.95 kB / 3.36 GB, free: 291.3 MB / 0.8698 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 2.289/7.019, allocations: 0.9102 GB / 4.27 GB, free: 37.27 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/7.019, allocations: 8 kB / 4.27 GB, free: 37.26 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007955/7.027, allocations: 1.36 MB / 4.271 GB, free: 35.89 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0116/7.039, allocations: 5.432 MB / 4.276 GB, free: 30.47 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/7.039, allocations: 116 kB / 4.277 GB, free: 30.36 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009331/7.04, allocations: 223.9 kB / 4.277 GB, free: 30.14 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007675/7.048, allocations: 4.434 MB / 4.281 GB, free: 25.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006843/7.055, allocations: 4.523 MB / 4.285 GB, free: 21.01 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.578e-05/7.055, allocations: 11.94 kB / 4.286 GB, free: 21 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003909/7.055, allocations: 12 kB / 4.286 GB, free: 20.99 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/7.055, allocations: 179.1 kB / 4.286 GB, free: 20.81 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02608/7.081, allocations: 19.06 MB / 4.304 GB, free: 1.297 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2877/7.369, allocations: 2.954 MB / 4.307 GB, free: 211.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/7.371, allocations: 1.623 MB / 4.309 GB, free: 211.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001678/7.373, allocations: 1.868 MB / 4.311 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0023/7.375, allocations: 1.751 MB / 4.312 GB, free: 209 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=264): time 4.689e-06/7.375, allocations: 0 / 4.312 GB, free: 209 MB / 0.8698 GB Notification: Performance of matching and sorting (n=264): time 0.00981/7.385, allocations: 3.682 MB / 4.316 GB, free: 208.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/7.385, allocations: 288.2 kB / 4.316 GB, free: 208.6 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004076/7.389, allocations: 3.052 MB / 4.319 GB, free: 208.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005496/7.39, allocations: 33.09 kB / 4.319 GB, free: 208.3 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001484/7.391, allocations: 1.398 MB / 4.321 GB, free: 207.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001292/7.392, allocations: 0.8579 MB / 4.321 GB, free: 207.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001755/7.393, allocations: 0 / 4.321 GB, free: 207.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001352/7.393, allocations: 429.2 kB / 4.322 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/7.395, allocations: 1.331 MB / 4.323 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00198/7.396, allocations: 1.998 MB / 4.325 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/7.409, allocations: 2.876 MB / 4.328 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.318e-05/7.409, allocations: 7.5 kB / 4.328 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01667/7.426, allocations: 4.968 MB / 4.333 GB, free: 206.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001084/7.427, allocations: 7.267 MB / 4.34 GB, free: 198.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/7.427, allocations: 22.09 kB / 4.34 GB, free: 198.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006259/7.427, allocations: 120 kB / 4.34 GB, free: 198.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004223/7.432, allocations: 0.8121 MB / 4.341 GB, free: 198.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001715/7.433, allocations: 1.509 MB / 4.342 GB, free: 197.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/7.438, allocations: 438.5 kB / 4.343 GB, free: 197.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006005/7.439, allocations: 145.7 kB / 4.343 GB, free: 197.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/7.439, allocations: 7.312 kB / 4.343 GB, free: 197.3 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01602/7.455, allocations: 4.593 MB / 4.347 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.993e-05/7.455, allocations: 17.97 kB / 4.347 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005592/7.455, allocations: 112 kB / 4.347 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00405/7.459, allocations: 0.8122 MB / 4.348 GB, free: 197.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/7.461, allocations: 1.507 MB / 4.35 GB, free: 196 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00494/7.466, allocations: 387 kB / 4.35 GB, free: 195.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006463/7.467, allocations: 153 kB / 4.35 GB, free: 195.9 MB / 0.8698 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.0008539/7.467, allocations: 179.6 kB / 4.35 GB, free: 195.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/7.469, allocations: 355.2 kB / 4.351 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/7.48, allocations: 4.528 MB / 4.355 GB, free: 195.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.921e-05/7.48, allocations: 29.8 kB / 4.355 GB, free: 195.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/7.48, allocations: 3.5 kB / 4.355 GB, free: 195.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009227/7.49, allocations: 3.623 MB / 4.359 GB, free: 195.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/7.509, allocations: 8.902 MB / 4.367 GB, free: 194.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/7.509, allocations: 3.844 kB / 4.367 GB, free: 194.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003337/7.512, allocations: 0.6371 MB / 4.368 GB, free: 194.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00053/7.513, allocations: 94.84 kB / 4.368 GB, free: 194.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002901/7.513, allocations: 68.55 kB / 4.368 GB, free: 194.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001546/7.515, allocations: 1.498 MB / 4.37 GB, free: 193.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/7.515, allocations: 3.594 kB / 4.37 GB, free: 193.1 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01317/7.528, allocations: 6.373 MB / 4.376 GB, free: 191.9 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01649/7.544, allocations: 8.829 MB / 4.384 GB, free: 190.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002688/7.547, allocations: 1.041 MB / 4.385 GB, free: 190.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009329/7.548, allocations: 18.86 kB / 4.386 GB, free: 190.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003612/7.552, allocations: 260.3 kB / 4.386 GB, free: 190.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/7.552, allocations: 164.8 kB / 4.386 GB, free: 190.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000343/7.552, allocations: 128.6 kB / 4.386 GB, free: 190.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.00345/7.556, allocations: 2.347 MB / 4.388 GB, free: 190 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.009191/7.565, allocations: 2.677 MB / 4.391 GB, free: 189.8 MB / 0.8698 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.003373/7.568, allocations: 1.602 MB / 4.392 GB, free: 189.6 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.008575/7.577, allocations: 5.462 MB / 4.398 GB, free: 189.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.456e-05/7.577, allocations: 0.5 kB / 4.398 GB, free: 189.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.002525/7.58, allocations: 1.707 MB / 4.4 GB, free: 189.2 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008633/7.588, allocations: 1.659 MB / 4.401 GB, free: 189.2 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01772/7.606, allocations: 7.97 MB / 4.409 GB, free: 187.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004615/7.611, allocations: 3.589 MB / 4.412 GB, free: 186.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.453e-06/7.611, allocations: 3.094 kB / 4.412 GB, free: 186.9 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1)