Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.075/2.075, allocations: 390.4 MB / 397.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 181.3 kB / 490.8 MB, free: 1.93 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 221.3 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 90.8 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6016/0.6028, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.8484, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.334/5.182, allocations: 2.199 GB / 3.411 GB, free: 107.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/5.182, allocations: 87.95 kB / 3.411 GB, free: 107.4 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2975 * Number of variables: 2975 Notification: Performance of Generate backend data structure: time 10.52/15.71, allocations: 2.901 GB / 6.312 GB, free: 143.8 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/15.71, allocations: 7.875 kB / 6.312 GB, free: 143.8 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02369/15.73, allocations: 3.308 MB / 6.315 GB, free: 142.9 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05606/15.79, allocations: 19.01 MB / 6.334 GB, free: 141.3 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008702/15.79, allocations: 357 kB / 6.334 GB, free: 141.3 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005404/15.79, allocations: 0.6459 MB / 6.335 GB, free: 141.3 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03502/15.83, allocations: 13.22 MB / 6.348 GB, free: 141.2 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04787/15.87, allocations: 14.76 MB / 6.362 GB, free: 139.6 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008154/15.88, allocations: 40.11 kB / 6.362 GB, free: 139.6 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005349/15.88, allocations: 22.47 kB / 6.362 GB, free: 139.6 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004888/15.88, allocations: 0.586 MB / 6.363 GB, free: 139.6 MB / 1.198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1346/16.02, allocations: 62.78 MB / 6.424 GB, free: 116.2 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01842/16.03, allocations: 8.794 MB / 6.433 GB, free: 116 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009258/16.04, allocations: 5.069 MB / 6.437 GB, free: 115.9 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002909/16.05, allocations: 2.389 MB / 6.44 GB, free: 113.4 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01248/16.06, allocations: 5.183 MB / 6.445 GB, free: 113.2 MB / 1.198 GB Notification: Performance of pre-optimization done (n=706): time 1.638e-05/16.06, allocations: 0 / 6.445 GB, free: 113.2 MB / 1.198 GB Notification: Performance of matching and sorting (n=706): time 0.03771/16.1, allocations: 10.54 MB / 6.455 GB, free: 112.5 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/16.1, allocations: 357.5 kB / 6.456 GB, free: 112.1 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02636/16.12, allocations: 9.857 MB / 6.465 GB, free: 110.7 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.00237/16.13, allocations: 34.83 kB / 6.465 GB, free: 110.7 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.01069/16.14, allocations: 4.367 MB / 6.469 GB, free: 107.7 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.009684/16.15, allocations: 2.36 MB / 6.472 GB, free: 105.9 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002025/16.15, allocations: 0 / 6.472 GB, free: 105.9 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.001216/16.15, allocations: 0.6535 MB / 6.472 GB, free: 105.4 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01051/16.16, allocations: 4.135 MB / 6.476 GB, free: 103.8 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01241/16.17, allocations: 6.365 MB / 6.483 GB, free: 99.6 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03654/16.21, allocations: 8.259 MB / 6.491 GB, free: 97.48 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002152/16.21, allocations: 18.69 kB / 6.491 GB, free: 97.48 MB / 1.198 GB Notification: Performance of matching and sorting (n=1099) (initialization): time 0.05728/16.27, allocations: 14.4 MB / 6.505 GB, free: 93.46 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.007815/16.27, allocations: 35.76 MB / 6.54 GB, free: 56.05 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003278/16.28, allocations: 66.55 kB / 6.54 GB, free: 56.05 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009235/16.28, allocations: 203.2 kB / 6.54 GB, free: 56.04 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01419/16.29, allocations: 2.368 MB / 6.542 GB, free: 55.96 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002629/16.29, allocations: 1.603 MB / 6.544 GB, free: 54.64 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02058/16.31, allocations: 1.28 MB / 6.545 GB, free: 54.17 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003253/16.32, allocations: 428.8 kB / 6.546 GB, free: 54.1 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/16.32, allocations: 4.312 kB / 6.546 GB, free: 54.1 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05425/16.37, allocations: 13.35 MB / 6.559 GB, free: 50.59 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005268/16.37, allocations: 63.19 kB / 6.559 GB, free: 50.59 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/16.37, allocations: 200.3 kB / 6.559 GB, free: 50.58 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.015/16.39, allocations: 2.373 MB / 6.561 GB, free: 49.11 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002125/16.39, allocations: 1.614 MB / 6.563 GB, free: 47.45 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01604/16.41, allocations: 1.115 MB / 6.564 GB, free: 46.59 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002827/16.41, allocations: 422.5 kB / 6.564 GB, free: 46.23 MB / 1.198 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 (1097): * Single equations (assignments): 1096 * 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.005079/16.41, allocations: 350.6 kB / 6.565 GB, free: 45.89 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005816/16.42, allocations: 1.023 MB / 6.566 GB, free: 44.86 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04382/16.46, allocations: 12.34 MB / 6.578 GB, free: 35.13 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.966e-05/16.46, allocations: 79.61 kB / 6.578 GB, free: 35.05 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.452e-05/16.46, allocations: 0 / 6.578 GB, free: 35.05 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03161/16.5, allocations: 9.968 MB / 6.587 GB, free: 26.8 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07651/16.57, allocations: 25.74 MB / 6.613 GB, free: 22.67 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-05/16.57, allocations: 12 kB / 6.613 GB, free: 22.66 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01124/16.58, allocations: 1.71 MB / 6.614 GB, free: 21.29 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006943/16.58, allocations: 118 kB / 6.614 GB, free: 21.19 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001941/16.59, allocations: 165.7 kB / 6.614 GB, free: 21.08 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/16.59, allocations: 1.517 MB / 6.616 GB, free: 19.5 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.217e-05/16.59, allocations: 23.22 kB / 6.616 GB, free: 19.48 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05265/16.64, allocations: 19.74 MB / 6.635 GB, free: 1.441 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 1.1/17.74, allocations: 26.46 MB / 6.661 GB, free: 276.1 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01086/17.75, allocations: 2.967 MB / 6.664 GB, free: 276 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005158/17.76, allocations: 52.34 kB / 6.664 GB, free: 276 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01654/17.77, allocations: 0.6823 MB / 6.665 GB, free: 276 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00219/17.78, allocations: 408.5 kB / 6.665 GB, free: 276 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002277/17.78, allocations: 382.6 kB / 6.665 GB, free: 276 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.01667/17.79, allocations: 7.562 MB / 6.673 GB, free: 275.7 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.03666/17.83, allocations: 7.432 MB / 6.68 GB, free: 275.7 MB / 1.229 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 (732): * Single equations (assignments): 719 * 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.006294/17.84, allocations: 2.065 MB / 6.682 GB, free: 275.4 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.03061/17.87, allocations: 16.03 MB / 6.698 GB, free: 275.1 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.32e-05/17.87, allocations: 14.27 kB / 6.698 GB, free: 275.1 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.008786/17.88, allocations: 4.594 MB / 6.702 GB, free: 274.9 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03169/17.91, allocations: 5.594 MB / 6.708 GB, free: 274.8 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06066/17.97, allocations: 25.77 MB / 6.733 GB, free: 270.4 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02041/17.99, allocations: 10.09 MB / 6.743 GB, free: 269.5 MB / 1.229 GB Notification: Performance of SimCode: time 1.363e-06/17.99, allocations: 0 / 6.743 GB, free: 269.5 MB / 1.229 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea_res.mat does not exist to compare? outputFormat=mat