Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",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.057/2.057, allocations: 390.4 MB / 397.7 MB, free: 10.6 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 185.3 kB / 490.8 MB, free: 11.16 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.411/1.411, allocations: 221.4 MB / 0.7863 GB, free: 13.54 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009857/0.0009855, allocations: 96.16 kB / 0.9264 GB, free: 4.547 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.3227/0.3237, allocations: 149.1 MB / 1.072 GB, free: 15.49 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7029/1.027, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.507/4.534, allocations: 1.737 GB / 2.949 GB, free: 343.5 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/4.534, allocations: 92.78 kB / 2.949 GB, free: 343.5 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: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.1736/4.708, allocations: 79.47 MB / 3.027 GB, free: 264.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/4.708, allocations: 8 kB / 3.027 GB, free: 264.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005563/4.713, allocations: 0.8525 MB / 3.027 GB, free: 263.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/4.715, allocations: 0.8613 MB / 3.028 GB, free: 262.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-05/4.716, allocations: 43.98 kB / 3.028 GB, free: 262.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004161/4.716, allocations: 76 kB / 3.028 GB, free: 262.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003566/4.72, allocations: 1.774 MB / 3.03 GB, free: 260.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002907/4.723, allocations: 1.344 MB / 3.031 GB, free: 259 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.054e-05/4.723, allocations: 0 / 3.031 GB, free: 259 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001784/4.723, allocations: 7.906 kB / 3.031 GB, free: 259 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.425e-05/4.723, allocations: 28 kB / 3.032 GB, free: 259 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009291/4.732, allocations: 4.595 MB / 3.036 GB, free: 254.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/4.734, allocations: 1.189 MB / 3.037 GB, free: 253.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008494/4.735, allocations: 0.5706 MB / 3.038 GB, free: 252.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006691/4.736, allocations: 494.4 kB / 3.038 GB, free: 251.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/4.737, allocations: 0.7485 MB / 3.039 GB, free: 251.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=124): time 4.068e-06/4.737, allocations: 0 / 3.039 GB, free: 251.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=124): time 0.003214/4.74, allocations: 1.327 MB / 3.04 GB, free: 249.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/4.74, allocations: 248.3 kB / 3.04 GB, free: 249.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009738/4.741, allocations: 0.6252 MB / 3.041 GB, free: 248.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001323/4.741, allocations: 25.7 kB / 3.041 GB, free: 248.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000301/4.741, allocations: 424.2 kB / 3.041 GB, free: 248.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002889/4.742, allocations: 394 kB / 3.042 GB, free: 248 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.253e-05/4.742, allocations: 0 / 3.042 GB, free: 248 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.981e-05/4.742, allocations: 349.9 kB / 3.042 GB, free: 247.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007341/4.743, allocations: 458.5 kB / 3.043 GB, free: 247.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008444/4.744, allocations: 0.5966 MB / 3.043 GB, free: 246.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/4.745, allocations: 0.5818 MB / 3.044 GB, free: 246 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/4.745, allocations: 0 / 3.044 GB, free: 246 MB / 1.151 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003015/4.748, allocations: 1.361 MB / 3.045 GB, free: 244.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/4.748, allocations: 4 kB / 3.045 GB, free: 244.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/4.748, allocations: 11.97 kB / 3.045 GB, free: 244.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006684/4.749, allocations: 84.84 kB / 3.045 GB, free: 244.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001851/4.75, allocations: 316.1 kB / 3.046 GB, free: 244.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/4.752, allocations: 1.469 MB / 3.047 GB, free: 242.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/4.754, allocations: 160.3 kB / 3.047 GB, free: 242.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/4.755, allocations: 54.67 kB / 3.047 GB, free: 242.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.pumCon.hys.y,pumCon.hys.y,$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 (132): * Single equations (assignments): 131 * 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.0003774/4.755, allocations: 124.7 kB / 3.047 GB, free: 242.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003633/4.755, allocations: 102.8 kB / 3.047 GB, free: 242.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004636/4.76, allocations: 1.78 MB / 3.049 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/4.76, allocations: 12 kB / 3.049 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/4.76, allocations: 0.5 kB / 3.049 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/4.76, allocations: 11.97 kB / 3.049 GB, free: 240.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005692/4.766, allocations: 3.277 MB / 3.052 GB, free: 237.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/4.766, allocations: 7.984 kB / 3.052 GB, free: 237.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/4.768, allocations: 315.6 kB / 3.053 GB, free: 236.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005295/4.768, allocations: 84.69 kB / 3.053 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/4.768, allocations: 27.95 kB / 3.053 GB, free: 236.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/4.77, allocations: 1.489 MB / 3.054 GB, free: 235.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/4.77, allocations: 0 / 3.054 GB, free: 235.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003184/4.773, allocations: 1.512 MB / 3.056 GB, free: 233.5 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003071/4.776, allocations: 1.928 MB / 3.058 GB, free: 231.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006881/4.777, allocations: 419.1 kB / 3.058 GB, free: 231.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003149/4.777, allocations: 8 kB / 3.058 GB, free: 231.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/4.779, allocations: 131.9 kB / 3.058 GB, free: 231 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/4.779, allocations: 85.08 kB / 3.058 GB, free: 230.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/4.779, allocations: 47.97 kB / 3.058 GB, free: 230.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0006855/4.78, allocations: 0.5148 MB / 3.059 GB, free: 230.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002261/4.782, allocations: 0.5495 MB / 3.059 GB, free: 229.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,pumCon.hys.y,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 3 (weaDat.conTim.tNext,weaDat.conTimMin.tNext,pumCon.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.002141/4.784, allocations: 1.118 MB / 3.06 GB, free: 228.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002384/4.787, allocations: 1.3 MB / 3.062 GB, free: 227.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/4.787, allocations: 4 kB / 3.062 GB, free: 227.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001273/4.788, allocations: 0.7955 MB / 3.062 GB, free: 226.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/4.789, allocations: 235 kB / 3.063 GB, free: 226.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005422/4.795, allocations: 2.05 MB / 3.065 GB, free: 224.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/4.796, allocations: 1.366 MB / 3.066 GB, free: 223.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.252e-06/4.796, allocations: 4 kB / 3.066 GB, free: 223.1 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat does not exist to compare? outputFormat=mat