Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",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 9.1.1-maint.9.1.x/package.mo): time 2.115/2.115, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.00123/0.00123, allocations: 173.3 kB / 487 MB, free: 5.352 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.492/1.492, allocations: 221.3 MB / 0.7819 GB, free: 1.395 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 102 kB / 0.9213 GB, free: 2.656 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6438/0.645, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.941, allocations: 142.3 MB / 1.205 GB, free: 26.12 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.566/5.507, allocations: 2.239 GB / 3.445 GB, free: 37.08 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/5.507, allocations: 101.8 kB / 3.445 GB, free: 37.03 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: 2053 * Number of variables: 2053 Notification: Performance of Generate backend data structure: time 9.15/14.66, allocations: 2.56 GB / 6.005 GB, free: 103.3 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/14.66, allocations: 7.844 kB / 6.005 GB, free: 103.3 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01446/14.67, allocations: 2.308 MB / 6.007 GB, free: 102.3 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03683/14.71, allocations: 12.24 MB / 6.019 GB, free: 94.91 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007956/14.71, allocations: 255 kB / 6.019 GB, free: 94.91 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004284/14.71, allocations: 483.5 kB / 6.02 GB, free: 94.9 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02532/14.74, allocations: 9.342 MB / 6.029 GB, free: 89.92 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02939/14.77, allocations: 9.838 MB / 6.039 GB, free: 79.75 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003546/14.77, allocations: 23.78 kB / 6.039 GB, free: 79.72 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002266/14.77, allocations: 12 kB / 6.039 GB, free: 79.71 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002591/14.77, allocations: 351.1 kB / 6.039 GB, free: 79.37 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07878/14.85, allocations: 44.8 MB / 6.083 GB, free: 33.16 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01256/14.86, allocations: 6.762 MB / 6.089 GB, free: 26.47 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00497/14.87, allocations: 3.693 MB / 6.093 GB, free: 22.77 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03973/14.91, allocations: 17.95 MB / 6.111 GB, free: 3.988 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004593/14.91, allocations: 3.289 MB / 6.114 GB, free: 0.6406 MB / 1.182 GB Notification: Performance of pre-optimization done (n=511): time 7.144e-06/14.91, allocations: 0 / 6.114 GB, free: 0.6406 MB / 1.182 GB Notification: Performance of matching and sorting (n=511): time 0.02568/14.94, allocations: 7.167 MB / 6.121 GB, free: 9.363 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001876/14.94, allocations: 317 kB / 6.121 GB, free: 8.988 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01545/14.95, allocations: 6.508 MB / 6.127 GB, free: 2.516 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.001857/14.96, allocations: 29.7 kB / 6.127 GB, free: 2.48 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.005318/14.96, allocations: 3.025 MB / 6.13 GB, free: 15.41 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.004675/14.97, allocations: 1.694 MB / 6.132 GB, free: 13.69 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006234/14.97, allocations: 0 / 6.132 GB, free: 13.69 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.000647/14.97, allocations: 0.5705 MB / 6.133 GB, free: 13.11 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00518/14.97, allocations: 3.07 MB / 6.136 GB, free: 10.04 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007042/14.98, allocations: 4.738 MB / 6.14 GB, free: 4.586 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.156/16.14, allocations: 5.884 MB / 6.146 GB, free: 226.4 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.518e-05/16.14, allocations: 19.28 kB / 6.146 GB, free: 226.4 MB / 1.214 GB Notification: Performance of matching and sorting (n=824) (initialization): time 0.03486/16.17, allocations: 10.54 MB / 6.156 GB, free: 226.2 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.004461/16.17, allocations: 23.23 MB / 6.179 GB, free: 201.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/16.17, allocations: 44.31 kB / 6.179 GB, free: 201.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005022/16.18, allocations: 168.7 kB / 6.179 GB, free: 201.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009381/16.18, allocations: 1.693 MB / 6.181 GB, free: 201.6 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008216/16.19, allocations: 0.7444 MB / 6.182 GB, free: 201.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01212/16.2, allocations: 0.9023 MB / 6.182 GB, free: 201.1 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002243/16.2, allocations: 314.6 kB / 6.183 GB, free: 201.1 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/16.2, allocations: 5.75 kB / 6.183 GB, free: 201.1 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02965/16.23, allocations: 9.722 MB / 6.192 GB, free: 200.9 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001572/16.23, allocations: 54.05 kB / 6.192 GB, free: 200.9 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003603/16.23, allocations: 166.4 kB / 6.192 GB, free: 200.9 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008828/16.24, allocations: 1.684 MB / 6.194 GB, free: 200.9 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009365/16.24, allocations: 0.7505 MB / 6.195 GB, free: 200.4 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01477/16.25, allocations: 0.7941 MB / 6.196 GB, free: 200.4 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002947/16.26, allocations: 309.7 kB / 6.196 GB, free: 200.4 MB / 1.214 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * 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 (819): * Single equations (assignments): 817 * Array equations: 1 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.003464/16.26, allocations: 275.8 kB / 6.196 GB, free: 200.2 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003248/16.26, allocations: 0.7298 MB / 6.197 GB, free: 200 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02313/16.29, allocations: 8.406 MB / 6.205 GB, free: 199.7 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-05/16.29, allocations: 54.12 kB / 6.205 GB, free: 199.7 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/16.29, allocations: 0 / 6.205 GB, free: 199.7 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01635/16.3, allocations: 6.669 MB / 6.212 GB, free: 199.2 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04656/16.35, allocations: 16.84 MB / 6.228 GB, free: 198.6 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/16.35, allocations: 0 / 6.228 GB, free: 198.6 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007295/16.36, allocations: 1.173 MB / 6.229 GB, free: 198.6 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003594/16.36, allocations: 92.84 kB / 6.229 GB, free: 198.5 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001231/16.36, allocations: 98.92 kB / 6.229 GB, free: 198.5 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005805/16.36, allocations: 0.6538 MB / 6.23 GB, free: 198 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/16.36, allocations: 3.875 kB / 6.23 GB, free: 198 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02574/16.39, allocations: 11.91 MB / 6.242 GB, free: 197 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03228/16.42, allocations: 16.71 MB / 6.258 GB, free: 195.6 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007328/16.43, allocations: 1.988 MB / 6.26 GB, free: 195.1 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004033/16.43, allocations: 28.84 kB / 6.26 GB, free: 195.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009502/16.44, allocations: 478.4 kB / 6.26 GB, free: 195.1 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001334/16.44, allocations: 280.2 kB / 6.261 GB, free: 195 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001483/16.44, allocations: 229.4 kB / 6.261 GB, free: 195 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.01084/16.45, allocations: 4.965 MB / 6.266 GB, free: 194.8 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.03551/16.49, allocations: 5.705 MB / 6.271 GB, free: 194.4 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 27 (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,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.indTanHex.vol[1].dynBal.U,tan.indTanHex.vol[2].dynBal.U,tan.indTanHex.vol[3].dynBal.U,tan.indTanHex.vol[4].dynBal.U,tan.indTanHex.cap[1].T,tan.indTanHex.cap[2].T,tan.indTanHex.cap[3].T,tan.indTanHex.cap[4].T,pum.filter.s[1],pum.filter.s[2],exp.m,exp.H) * 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 (539): * Single equations (assignments): 528 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.006026/16.49, allocations: 2.209 MB / 6.273 GB, free: 194.1 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.02446/16.52, allocations: 11.64 MB / 6.285 GB, free: 193.9 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 2.099e-05/16.52, allocations: 7.719 kB / 6.285 GB, free: 193.9 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.006373/16.53, allocations: 3.215 MB / 6.288 GB, free: 193.9 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0223/16.55, allocations: 3.43 MB / 6.291 GB, free: 193.9 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04562/16.59, allocations: 17.24 MB / 6.308 GB, free: 191 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01388/16.61, allocations: 7.108 MB / 6.315 GB, free: 190.1 MB / 1.214 GB Notification: Performance of SimCode: time 1.193e-06/16.61, allocations: 0 / 6.315 GB, free: 190.1 MB / 1.214 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank_res.mat does not exist to compare? outputFormat=mat