Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.496/2.496, allocations: 284.8 MB / 292.1 MB, free: 10.8 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.001647/0.001647, allocations: 177.3 kB / 360.3 MB, free: 7.551 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.808/1.808, allocations: 205.1 MB / 0.6187 GB, free: 13.19 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.001219/0.001218, allocations: 93.11 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3184/0.3197, allocations: 121.4 MB / 0.8502 GB, free: 3.902 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6655/0.9853, allocations: 115.2 MB / 0.9627 GB, free: 78.52 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.437/6.423, allocations: 2.357 GB / 3.32 GB, free: 32.91 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/6.423, allocations: 93.2 kB / 3.32 GB, free: 32.86 MB / 0.9323 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 4.64/11.06, allocations: 0.9315 GB / 4.251 GB, free: 175.5 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 9.338e-05/11.06, allocations: 8.5 kB / 4.251 GB, free: 175.5 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01923/11.08, allocations: 1.364 MB / 4.253 GB, free: 174.2 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03371/11.12, allocations: 5.459 MB / 4.258 GB, free: 168.8 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004385/11.12, allocations: 120 kB / 4.258 GB, free: 168.6 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002555/11.12, allocations: 212 kB / 4.258 GB, free: 168.4 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02106/11.14, allocations: 4.436 MB / 4.262 GB, free: 164 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01724/11.16, allocations: 4.578 MB / 4.267 GB, free: 159.3 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001926/11.16, allocations: 11.84 kB / 4.267 GB, free: 159.2 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001432/11.16, allocations: 4 kB / 4.267 GB, free: 159.2 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/11.16, allocations: 179.2 kB / 4.267 GB, free: 159.1 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06104/11.22, allocations: 19.11 MB / 4.286 GB, free: 139.6 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008684/11.23, allocations: 2.961 MB / 4.289 GB, free: 136.7 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004522/11.23, allocations: 1.625 MB / 4.29 GB, free: 135 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004076/11.24, allocations: 1.871 MB / 4.292 GB, free: 132.8 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005535/11.24, allocations: 1.784 MB / 4.294 GB, free: 130.9 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=264): time 6.763e-06/11.24, allocations: 4 kB / 4.294 GB, free: 130.9 MB / 0.9323 GB Notification: Performance of matching and sorting (n=264): time 0.02047/11.26, allocations: 3.673 MB / 4.297 GB, free: 127.2 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/11.26, allocations: 299.1 kB / 4.298 GB, free: 126.9 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008287/11.27, allocations: 3.046 MB / 4.301 GB, free: 123.8 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 0.001038/11.27, allocations: 29.7 kB / 4.301 GB, free: 123.8 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.002581/11.28, allocations: 1.399 MB / 4.302 GB, free: 122.4 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.002419/11.28, allocations: 0.8622 MB / 4.303 GB, free: 121.5 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/11.28, allocations: 0 / 4.303 GB, free: 121.5 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 0.0002845/11.28, allocations: 428 kB / 4.303 GB, free: 121.1 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003807/11.28, allocations: 1.329 MB / 4.305 GB, free: 119.7 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004926/11.29, allocations: 2 MB / 4.307 GB, free: 117.5 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02519/11.31, allocations: 2.885 MB / 4.309 GB, free: 114.6 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.885e-05/11.31, allocations: 8 kB / 4.309 GB, free: 114.5 MB / 0.9323 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.03323/11.35, allocations: 4.956 MB / 4.314 GB, free: 109.5 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.001608/11.35, allocations: 7.289 MB / 4.321 GB, free: 101.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.447e-05/11.35, allocations: 20 kB / 4.321 GB, free: 101.8 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001181/11.35, allocations: 108.8 kB / 4.322 GB, free: 101.7 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008464/11.36, allocations: 0.8113 MB / 4.322 GB, free: 100.9 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/11.36, allocations: 1.505 MB / 4.324 GB, free: 99.23 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008656/11.37, allocations: 436.9 kB / 4.324 GB, free: 98.8 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001174/11.37, allocations: 147.9 kB / 4.324 GB, free: 98.66 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/11.37, allocations: 4 kB / 4.324 GB, free: 98.65 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03171/11.4, allocations: 4.599 MB / 4.329 GB, free: 94.02 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.283e-05/11.4, allocations: 19.98 kB / 4.329 GB, free: 94 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001055/11.4, allocations: 114.1 kB / 4.329 GB, free: 93.88 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008393/11.41, allocations: 0.8074 MB / 4.33 GB, free: 93.07 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002857/11.42, allocations: 1.51 MB / 4.331 GB, free: 91.45 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008304/11.42, allocations: 385.4 kB / 4.332 GB, free: 91.07 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00117/11.43, allocations: 151.8 kB / 4.332 GB, free: 90.92 MB / 0.9323 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.001243/11.43, allocations: 184 kB / 4.332 GB, free: 90.73 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/11.43, allocations: 355.7 kB / 4.332 GB, free: 90.38 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02603/11.45, allocations: 4.522 MB / 4.337 GB, free: 85.81 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.601e-05/11.45, allocations: 28 kB / 4.337 GB, free: 85.79 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/11.45, allocations: 0 / 4.337 GB, free: 85.79 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01855/11.47, allocations: 3.627 MB / 4.34 GB, free: 82.07 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0362/11.51, allocations: 8.946 MB / 4.349 GB, free: 73.01 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/11.51, allocations: 4 kB / 4.349 GB, free: 73 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007362/11.52, allocations: 0.6402 MB / 4.35 GB, free: 72.36 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/11.52, allocations: 92.78 kB / 4.35 GB, free: 72.27 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008321/11.52, allocations: 59.92 kB / 4.35 GB, free: 72.21 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002596/11.52, allocations: 1.501 MB / 4.351 GB, free: 70.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.285e-06/11.52, allocations: 4 kB / 4.351 GB, free: 70.59 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02545/11.55, allocations: 6.369 MB / 4.357 GB, free: 63.98 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03116/11.58, allocations: 8.833 MB / 4.366 GB, free: 54.89 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004569/11.58, allocations: 1.054 MB / 4.367 GB, free: 53.81 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001912/11.58, allocations: 21 kB / 4.367 GB, free: 53.79 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00805/11.59, allocations: 263.4 kB / 4.367 GB, free: 53.53 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008774/11.59, allocations: 157.9 kB / 4.368 GB, free: 53.38 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006831/11.59, allocations: 143.8 kB / 4.368 GB, free: 53.23 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.005991/11.6, allocations: 2.343 MB / 4.37 GB, free: 50.9 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.01695/11.62, allocations: 2.676 MB / 4.373 GB, free: 48.22 MB / 0.9323 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.004929/11.62, allocations: 1.616 MB / 4.374 GB, free: 46.89 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.01518/11.64, allocations: 5.456 MB / 4.379 GB, free: 41.39 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/11.64, allocations: 3.094 kB / 4.379 GB, free: 41.39 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.004667/11.64, allocations: 1.713 MB / 4.381 GB, free: 39.67 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01545/11.66, allocations: 1.657 MB / 4.383 GB, free: 38.07 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02865/11.69, allocations: 7.975 MB / 4.391 GB, free: 30.04 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008266/11.69, allocations: 3.582 MB / 4.394 GB, free: 26.43 MB / 0.9323 GB Notification: Performance of SimCode: time 1.873e-06/11.69, allocations: 4 kB / 4.394 GB, free: 26.43 MB / 0.9323 GB (rm -f Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.fmu > Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1)