Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.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.Validation.FlatPlate,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Validation_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_9_Buildings_Fluid_SolarCollectors_Validation_FlatPlate",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.105/2.105, allocations: 387.2 MB / 394.5 MB, free: 13.59 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.001265/0.001265, allocations: 173.4 kB / 487 MB, free: 5.355 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.409/1.409, allocations: 221.3 MB / 0.7819 GB, free: 1.367 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.0009552/0.0009552, allocations: 94.48 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.58/0.581, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.862, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.712/5.574, allocations: 2.2 GB / 3.405 GB, free: 115.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/5.575, allocations: 95.69 kB / 3.405 GB, free: 115.3 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: 2347 * Number of variables: 2347 Notification: Performance of Generate backend data structure: time 7.19/12.76, allocations: 2.152 GB / 5.557 GB, free: 157.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/12.76, allocations: 13 kB / 5.557 GB, free: 157.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01551/12.78, allocations: 2.194 MB / 5.559 GB, free: 154.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04553/12.83, allocations: 15.43 MB / 5.574 GB, free: 139.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006187/12.83, allocations: 284 kB / 5.575 GB, free: 139.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004104/12.83, allocations: 0.5155 MB / 5.575 GB, free: 138.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0254/12.86, allocations: 10.54 MB / 5.585 GB, free: 128.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03799/12.89, allocations: 11.77 MB / 5.597 GB, free: 116.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007619/12.89, allocations: 39.61 kB / 5.597 GB, free: 116 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004827/12.9, allocations: 16 kB / 5.597 GB, free: 116 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004248/12.9, allocations: 477.1 kB / 5.597 GB, free: 115.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1098/13.01, allocations: 49.81 MB / 5.646 GB, free: 64.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01375/13.02, allocations: 7.021 MB / 5.653 GB, free: 57.55 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007416/13.03, allocations: 4.03 MB / 5.657 GB, free: 53.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002176/13.03, allocations: 1.503 MB / 5.658 GB, free: 51.73 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009289/13.04, allocations: 3.835 MB / 5.662 GB, free: 47.83 MB / 1.151 GB Notification: Performance of pre-optimization done (n=554): time 1.203e-05/13.04, allocations: 0 / 5.662 GB, free: 47.83 MB / 1.151 GB Notification: Performance of matching and sorting (n=554): time 0.02693/13.07, allocations: 7.988 MB / 5.67 GB, free: 39.75 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/13.07, allocations: 347 kB / 5.67 GB, free: 39.34 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01969/13.09, allocations: 8.018 MB / 5.678 GB, free: 31.34 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.00205/13.09, allocations: 37.69 kB / 5.678 GB, free: 31.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.009337/13.1, allocations: 3.489 MB / 5.681 GB, free: 27.77 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.008742/13.11, allocations: 1.856 MB / 5.683 GB, free: 25.88 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001712/13.11, allocations: 0 / 5.683 GB, free: 25.88 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0008039/13.11, allocations: 0.5792 MB / 5.684 GB, free: 25.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006333/13.12, allocations: 3.262 MB / 5.687 GB, free: 22.03 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007803/13.13, allocations: 5.086 MB / 5.692 GB, free: 16.15 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02008/13.15, allocations: 5.996 MB / 5.698 GB, free: 10.12 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.968e-05/13.15, allocations: 12 kB / 5.698 GB, free: 10.11 MB / 1.151 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.03095/13.18, allocations: 10.75 MB / 5.708 GB, free: 15.27 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.8902/14.07, allocations: 27.69 MB / 5.735 GB, free: 308.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/14.07, allocations: 51.44 kB / 5.735 GB, free: 308.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001044/14.07, allocations: 97.84 kB / 5.736 GB, free: 308.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01016/14.08, allocations: 1.846 MB / 5.737 GB, free: 308.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001373/14.08, allocations: 128.8 kB / 5.738 GB, free: 308.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0125/14.09, allocations: 0.9723 MB / 5.738 GB, free: 308.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002194/14.09, allocations: 340.5 kB / 5.739 GB, free: 308.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/14.09, allocations: 3.25 kB / 5.739 GB, free: 308.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02864/14.12, allocations: 9.921 MB / 5.748 GB, free: 308.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/14.12, allocations: 55.06 kB / 5.749 GB, free: 308.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.656e-05/14.12, allocations: 96.25 kB / 5.749 GB, free: 308.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009304/14.13, allocations: 1.838 MB / 5.75 GB, free: 308.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001415/14.13, allocations: 124 kB / 5.751 GB, free: 308.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01267/14.14, allocations: 0.86 MB / 5.751 GB, free: 308.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002531/14.15, allocations: 337.2 kB / 5.752 GB, free: 308.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.datRea.nextTimeEvent,$whenCondition3,$whenCondition2,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,$PRE.datRea.nextTimeEventScaled,datRea.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (867): * Single equations (assignments): 867 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002346/14.15, allocations: 293.2 kB / 5.752 GB, free: 308.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00351/14.15, allocations: 0.8186 MB / 5.753 GB, free: 308.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02368/14.18, allocations: 9.175 MB / 5.762 GB, free: 308.3 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.505e-05/14.18, allocations: 52.44 kB / 5.762 GB, free: 308.3 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/14.18, allocations: 3.188 kB / 5.762 GB, free: 308.3 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01768/14.19, allocations: 7.327 MB / 5.769 GB, free: 308.1 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05066/14.24, allocations: 19.56 MB / 5.788 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/14.24, allocations: 3.812 kB / 5.788 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007613/14.25, allocations: 1.314 MB / 5.789 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.724e-05/14.25, allocations: 18.38 kB / 5.789 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008874/14.25, allocations: 121.8 kB / 5.789 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.473e-05/14.25, allocations: 22.56 kB / 5.789 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/14.25, allocations: 0 / 5.789 GB, free: 307.2 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02886/14.28, allocations: 13.13 MB / 5.802 GB, free: 306.2 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03506/14.32, allocations: 18.34 MB / 5.82 GB, free: 304.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009029/14.33, allocations: 2.376 MB / 5.823 GB, free: 304.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00434/14.33, allocations: 38.44 kB / 5.823 GB, free: 304.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01194/14.34, allocations: 0.5917 MB / 5.823 GB, free: 304.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001675/14.34, allocations: 288.1 kB / 5.823 GB, free: 304.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002061/14.35, allocations: 292.5 kB / 5.824 GB, free: 304.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.01496/14.36, allocations: 6.163 MB / 5.83 GB, free: 303.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.03015/14.39, allocations: 5.655 MB / 5.835 GB, free: 303.4 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 30 (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,solCol.vol[10].dynBal.U,solCol.vol[11].dynBal.U,solCol.vol[12].dynBal.U,solCol.vol[13].dynBal.U,solCol.vol[14].dynBal.U,solCol.vol[15].dynBal.U,solCol.vol[16].dynBal.U,solCol.vol[17].dynBal.U,solCol.vol[18].dynBal.U,solCol.vol[19].dynBal.U,solCol.vol[20].dynBal.U,solCol.vol[21].dynBal.U,solCol.vol[22].dynBal.U,solCol.vol[23].dynBal.U,solCol.vol[24].dynBal.U,solCol.vol[25].dynBal.U,solCol.vol[26].dynBal.U,solCol.vol[27].dynBal.U,solCol.vol[28].dynBal.U,solCol.vol[29].dynBal.U,solCol.vol[30].dynBal.U) * Number of discrete variables: 7 ($whenCondition3,$whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,datRea.nextTimeEvent,datRea.nextTimeEventScaled) * Number of discrete states: 4 (datRea.nextTimeEvent,datRea.nextTimeEventScaled,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (575): * Single equations (assignments): 569 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005467/14.4, allocations: 1.198 MB / 5.836 GB, free: 303.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.02768/14.43, allocations: 12.46 MB / 5.849 GB, free: 303.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.802e-05/14.43, allocations: 10.06 kB / 5.849 GB, free: 303.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.008185/14.43, allocations: 3.526 MB / 5.852 GB, free: 303.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02994/14.46, allocations: 4.548 MB / 5.856 GB, free: 303 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0655/14.53, allocations: 20.22 MB / 5.876 GB, free: 299.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02135/14.55, allocations: 8.255 MB / 5.884 GB, free: 298.9 MB / 1.167 GB Notification: Performance of SimCode: time 1.272e-06/14.55, allocations: 0 / 5.884 GB, free: 298.9 MB / 1.167 GB (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_SolarCollectors_Validation_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_SolarCollectors_Validation_FlatPlate.fmu > Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate_res.mat does not exist to compare? outputFormat=mat