Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.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.Validation.FlatPlate,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Validation_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.913/1.913, allocations: 390.4 MB / 397.7 MB, free: 10.68 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.001094/0.001094, allocations: 183.8 kB / 490.8 MB, free: 11.21 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.314/1.314, allocations: 221.4 MB / 0.7863 GB, free: 13.59 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.0009558/0.0009559, allocations: 104.3 kB / 0.9264 GB, free: 4.547 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.3393/0.3403, allocations: 149.1 MB / 1.072 GB, free: 15.51 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8642/1.205, allocations: 143 MB / 1.212 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.719/5.924, allocations: 2.2 GB / 3.412 GB, free: 376.9 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/5.924, allocations: 91.94 kB / 3.412 GB, free: 376.8 MB / 1.167 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.93/13.85, allocations: 2.152 GB / 5.564 GB, free: 265.2 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/13.85, allocations: 7.938 kB / 5.564 GB, free: 265.2 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01449/13.87, allocations: 2.193 MB / 5.566 GB, free: 264.6 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03936/13.91, allocations: 15.42 MB / 5.581 GB, free: 263.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005166/13.91, allocations: 286.1 kB / 5.581 GB, free: 263.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003582/13.91, allocations: 0.508 MB / 5.582 GB, free: 263.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02296/13.94, allocations: 10.56 MB / 5.592 GB, free: 263.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03165/13.97, allocations: 11.77 MB / 5.604 GB, free: 262.3 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004837/13.97, allocations: 35 kB / 5.604 GB, free: 262.3 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002938/13.97, allocations: 18.59 kB / 5.604 GB, free: 262.3 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003866/13.97, allocations: 483.5 kB / 5.604 GB, free: 262.3 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09842/14.07, allocations: 49.79 MB / 5.653 GB, free: 243.7 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01319/14.08, allocations: 7.012 MB / 5.659 GB, free: 243.5 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007472/14.09, allocations: 4.031 MB / 5.663 GB, free: 243.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00227/14.09, allocations: 1.502 MB / 5.665 GB, free: 242 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0083/14.1, allocations: 3.836 MB / 5.669 GB, free: 241.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=554): time 1.06e-05/14.1, allocations: 0 / 5.669 GB, free: 241.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=554): time 0.02543/14.13, allocations: 7.982 MB / 5.676 GB, free: 241.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/14.13, allocations: 349 kB / 5.677 GB, free: 240.8 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01903/14.15, allocations: 8.025 MB / 5.685 GB, free: 240.3 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001847/14.15, allocations: 32.64 kB / 5.685 GB, free: 240.3 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.009524/14.16, allocations: 3.491 MB / 5.688 GB, free: 238.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.008548/14.17, allocations: 1.854 MB / 5.69 GB, free: 237.2 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001414/14.17, allocations: 0 / 5.69 GB, free: 237.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0007368/14.17, allocations: 0.5792 MB / 5.69 GB, free: 236.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005899/14.17, allocations: 3.264 MB / 5.694 GB, free: 236.9 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007495/14.18, allocations: 5.085 MB / 5.699 GB, free: 234.8 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02073/14.2, allocations: 5.987 MB / 5.704 GB, free: 234.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000104/14.2, allocations: 17.47 kB / 5.704 GB, free: 234.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.03532/14.24, allocations: 10.76 MB / 5.715 GB, free: 234.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.005434/14.24, allocations: 27.7 MB / 5.742 GB, free: 205.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001811/14.24, allocations: 53.06 kB / 5.742 GB, free: 205.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001565/14.24, allocations: 96.25 kB / 5.742 GB, free: 205.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/14.25, allocations: 1.842 MB / 5.744 GB, free: 205.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001801/14.25, allocations: 120.3 kB / 5.744 GB, free: 205.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01259/14.27, allocations: 0.9843 MB / 5.745 GB, free: 205 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002189/14.27, allocations: 337.9 kB / 5.745 GB, free: 205 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/14.27, allocations: 3.938 kB / 5.745 GB, free: 205 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03137/14.3, allocations: 9.918 MB / 5.755 GB, free: 204.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000238/14.3, allocations: 55.81 kB / 5.755 GB, free: 204.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/14.3, allocations: 95.5 kB / 5.755 GB, free: 204.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01025/14.31, allocations: 1.843 MB / 5.757 GB, free: 204.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002019/14.31, allocations: 123 kB / 5.757 GB, free: 204.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01132/14.32, allocations: 0.8668 MB / 5.758 GB, free: 204.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002009/14.32, allocations: 333.7 kB / 5.758 GB, free: 204.6 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.002978/14.33, allocations: 296.1 kB / 5.759 GB, free: 204.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003282/14.33, allocations: 0.8219 MB / 5.759 GB, free: 204 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02515/14.36, allocations: 9.17 MB / 5.768 GB, free: 203.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.23e-05/14.36, allocations: 54.06 kB / 5.768 GB, free: 203.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/14.36, allocations: 4.953 kB / 5.768 GB, free: 203.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01803/14.37, allocations: 7.314 MB / 5.775 GB, free: 203.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04527/14.42, allocations: 19.57 MB / 5.795 GB, free: 202.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/14.42, allocations: 0 / 5.795 GB, free: 202.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006982/14.43, allocations: 1.314 MB / 5.796 GB, free: 202.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.388e-05/14.43, allocations: 19.03 kB / 5.796 GB, free: 202.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005616/14.43, allocations: 118.1 kB / 5.796 GB, free: 202.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-05/14.43, allocations: 19.62 kB / 5.796 GB, free: 202.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/14.43, allocations: 5.344 kB / 5.796 GB, free: 202.3 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02435/14.45, allocations: 13.13 MB / 5.809 GB, free: 199.4 MB / 1.167 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03121/14.48, allocations: 18.33 MB / 5.827 GB, free: 192.2 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00801/14.49, allocations: 2.379 MB / 5.829 GB, free: 191 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003539/14.49, allocations: 37.58 kB / 5.829 GB, free: 191 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01024/14.51, allocations: 0.5875 MB / 5.83 GB, free: 190.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006627/14.51, allocations: 294.1 kB / 5.83 GB, free: 190.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009382/14.51, allocations: 290.3 kB / 5.83 GB, free: 190.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.01089/14.52, allocations: 6.169 MB / 5.836 GB, free: 188.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.02673/14.54, allocations: 5.649 MB / 5.842 GB, free: 187.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.00404/14.55, allocations: 1.2 MB / 5.843 GB, free: 187.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.02167/14.57, allocations: 12.47 MB / 5.855 GB, free: 183.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.67e-05/14.57, allocations: 9.156 kB / 5.855 GB, free: 183.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.005816/14.58, allocations: 3.524 MB / 5.859 GB, free: 182.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04057/14.62, allocations: 4.548 MB / 5.863 GB, free: 181.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05109/14.67, allocations: 20.22 MB / 5.883 GB, free: 175.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01489/14.68, allocations: 8.264 MB / 5.891 GB, free: 173 MB / 1.167 GB Notification: Performance of SimCode: time 1.403e-06/14.68, allocations: 0 / 5.891 GB, free: 173 MB / 1.167 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Validation_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Validation_FlatPlate.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate_res.mat does not exist to compare? outputFormat=mat