Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.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.FlatPlateTotalArea,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.049/2.049, allocations: 387.2 MB / 394.5 MB, free: 13.3 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.001105/0.001105, allocations: 187.2 kB / 487 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 221.3 MB / 0.7819 GB, free: 6.812 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 95.2 kB / 0.9213 GB, free: 43.7 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.312/0.3132, allocations: 148.5 MB / 1.066 GB, free: 7.512 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7403/1.053, allocations: 142.3 MB / 1.205 GB, free: 72.78 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.341/5.394, allocations: 2.199 GB / 3.405 GB, free: 324.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/5.394, allocations: 97.16 kB / 3.405 GB, free: 324 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 9.87/15.26, allocations: 2.901 GB / 6.305 GB, free: 64.62 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/15.26, allocations: 8 kB / 6.305 GB, free: 64.62 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02337/15.29, allocations: 3.318 MB / 6.309 GB, free: 61.28 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05621/15.34, allocations: 19 MB / 6.327 GB, free: 42.54 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006713/15.35, allocations: 363.9 kB / 6.328 GB, free: 42.18 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004705/15.35, allocations: 0.6483 MB / 6.328 GB, free: 41.53 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03258/15.38, allocations: 13.21 MB / 6.341 GB, free: 28.31 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04807/15.43, allocations: 14.75 MB / 6.355 GB, free: 13.04 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007237/15.43, allocations: 43.56 kB / 6.356 GB, free: 13 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005688/15.44, allocations: 24 kB / 6.356 GB, free: 12.97 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004622/15.44, allocations: 0.5838 MB / 6.356 GB, free: 12.39 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.047/16.48, allocations: 62.76 MB / 6.417 GB, free: 220.6 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01537/16.5, allocations: 8.796 MB / 6.426 GB, free: 220.4 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008003/16.51, allocations: 5.061 MB / 6.431 GB, free: 220.4 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003445/16.51, allocations: 2.396 MB / 6.433 GB, free: 217.9 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01257/16.52, allocations: 5.184 MB / 6.438 GB, free: 217.7 MB / 1.198 GB Notification: Performance of pre-optimization done (n=706): time 1.59e-05/16.52, allocations: 0 / 6.438 GB, free: 217.7 MB / 1.198 GB Notification: Performance of matching and sorting (n=706): time 0.03301/16.56, allocations: 10.54 MB / 6.449 GB, free: 217.5 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/16.56, allocations: 357 kB / 6.449 GB, free: 217.2 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02533/16.58, allocations: 9.85 MB / 6.459 GB, free: 216.6 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.002665/16.59, allocations: 35.27 kB / 6.459 GB, free: 216.6 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0102/16.6, allocations: 4.37 MB / 6.463 GB, free: 215.1 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.01028/16.61, allocations: 2.364 MB / 6.465 GB, free: 213.8 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/16.61, allocations: 0 / 6.465 GB, free: 213.8 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0009391/16.61, allocations: 0.6471 MB / 6.466 GB, free: 213.5 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007889/16.62, allocations: 4.137 MB / 6.47 GB, free: 213.5 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009409/16.63, allocations: 6.36 MB / 6.476 GB, free: 211 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03355/16.66, allocations: 8.257 MB / 6.484 GB, free: 210.9 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/16.66, allocations: 16.59 kB / 6.484 GB, free: 210.9 MB / 1.198 GB Notification: Performance of matching and sorting (n=1099) (initialization): time 0.04939/16.71, allocations: 14.4 MB / 6.498 GB, free: 210.2 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.00696/16.72, allocations: 35.78 MB / 6.533 GB, free: 173.3 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002141/16.72, allocations: 65 kB / 6.533 GB, free: 173.3 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008615/16.72, allocations: 193.3 kB / 6.533 GB, free: 173.3 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01313/16.73, allocations: 2.369 MB / 6.536 GB, free: 173.3 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001969/16.73, allocations: 1.617 MB / 6.537 GB, free: 172.1 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01598/16.75, allocations: 1.28 MB / 6.539 GB, free: 171.8 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002817/16.75, allocations: 424.1 kB / 6.539 GB, free: 171.8 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/16.75, allocations: 8.906 kB / 6.539 GB, free: 171.8 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04335/16.79, allocations: 13.35 MB / 6.552 GB, free: 171.6 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001696/16.79, allocations: 62.75 kB / 6.552 GB, free: 171.6 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006675/16.8, allocations: 204.1 kB / 6.552 GB, free: 171.6 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0118/16.81, allocations: 2.367 MB / 6.555 GB, free: 171.6 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001793/16.81, allocations: 1.615 MB / 6.556 GB, free: 170.3 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01572/16.82, allocations: 1.112 MB / 6.557 GB, free: 170 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002702/16.83, allocations: 429 kB / 6.558 GB, free: 170 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.003456/16.83, allocations: 340.4 kB / 6.558 GB, free: 169.8 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004175/16.84, allocations: 1.03 MB / 6.559 GB, free: 169.3 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03796/16.87, allocations: 12.33 MB / 6.571 GB, free: 168.9 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.029e-05/16.87, allocations: 72.52 kB / 6.571 GB, free: 168.9 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.866e-05/16.87, allocations: 0 / 6.571 GB, free: 168.9 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03092/16.9, allocations: 9.965 MB / 6.581 GB, free: 168.4 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07485/16.98, allocations: 25.74 MB / 6.606 GB, free: 166.7 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.888e-05/16.98, allocations: 10.78 kB / 6.606 GB, free: 166.7 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01148/16.99, allocations: 1.709 MB / 6.608 GB, free: 166.7 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00072/16.99, allocations: 122.8 kB / 6.608 GB, free: 166.6 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002121/16.99, allocations: 164.1 kB / 6.608 GB, free: 166.6 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001866/17, allocations: 1.527 MB / 6.609 GB, free: 165.4 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.628e-05/17, allocations: 15.22 kB / 6.609 GB, free: 165.4 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0446/17.04, allocations: 19.75 MB / 6.629 GB, free: 160.7 MB / 1.198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.05446/17.09, allocations: 26.12 MB / 6.654 GB, free: 155.6 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01153/17.11, allocations: 2.973 MB / 6.657 GB, free: 154.8 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005599/17.11, allocations: 53.31 kB / 6.657 GB, free: 154.8 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01404/17.13, allocations: 0.6882 MB / 6.658 GB, free: 154.8 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001907/17.13, allocations: 404.1 kB / 6.658 GB, free: 154.8 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002373/17.13, allocations: 379.3 kB / 6.659 GB, free: 154.8 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.01824/17.15, allocations: 7.564 MB / 6.666 GB, free: 154.5 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.03313/17.18, allocations: 7.424 MB / 6.673 GB, free: 153.3 MB / 1.198 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.005059/17.19, allocations: 2.078 MB / 6.675 GB, free: 153 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.02712/17.21, allocations: 16.03 MB / 6.691 GB, free: 152.6 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 3.693e-05/17.21, allocations: 15.45 kB / 6.691 GB, free: 152.6 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.00928/17.22, allocations: 4.592 MB / 6.695 GB, free: 151.7 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03077/17.25, allocations: 5.589 MB / 6.701 GB, free: 150.8 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0697/17.32, allocations: 25.77 MB / 6.726 GB, free: 142.5 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0223/17.35, allocations: 10.1 MB / 6.736 GB, free: 139.9 MB / 1.198 GB Notification: Performance of SimCode: time 1.022e-06/17.35, allocations: 0 / 6.736 GB, free: 139.9 MB / 1.198 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Examples_FlatPlateTotalArea.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Examples.FlatPlateTotalArea_res.mat does not exist to compare? outputFormat=mat