Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.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.FlatPlateNPanels,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Validation_FlatPlateNPanels",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Validation_FlatPlateNPanels",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.028/2.028, allocations: 390.4 MB / 397.6 MB, free: 11.27 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.001158/0.001158, allocations: 181.2 kB / 490.8 MB, free: 1.934 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.361/1.361, allocations: 221.3 MB / 0.7863 GB, free: 13.67 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009037/0.0009036, allocations: 87.81 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5908/0.5917, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.8675, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.791/5.659, allocations: 2.201 GB / 3.413 GB, free: 105.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/5.659, allocations: 87.95 kB / 3.413 GB, free: 105.6 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: 4528 * Number of variables: 4528 Notification: Performance of Generate backend data structure: time 15.81/21.47, allocations: 4.267 GB / 7.68 GB, free: 142 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/21.47, allocations: 10.81 kB / 7.68 GB, free: 142 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02981/21.5, allocations: 4.222 MB / 7.684 GB, free: 140.8 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08026/21.58, allocations: 30.26 MB / 7.713 GB, free: 138.2 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001057/21.58, allocations: 0.5342 MB / 7.714 GB, free: 138.2 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007127/21.59, allocations: 0.9808 MB / 7.715 GB, free: 138.2 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04604/21.64, allocations: 20.16 MB / 7.734 GB, free: 138.1 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07586/21.71, allocations: 22.89 MB / 7.757 GB, free: 135.6 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001179/21.71, allocations: 65.77 kB / 7.757 GB, free: 135.6 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008713/21.72, allocations: 36.91 kB / 7.757 GB, free: 135.6 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008057/21.72, allocations: 0.9181 MB / 7.758 GB, free: 135.5 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1988/21.92, allocations: 97.36 MB / 7.853 GB, free: 91.24 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03195/21.95, allocations: 13.79 MB / 7.866 GB, free: 84.4 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01263/21.97, allocations: 7.84 MB / 7.874 GB, free: 77.34 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002656/21.97, allocations: 2.038 MB / 7.876 GB, free: 75.08 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01605/21.98, allocations: 7.341 MB / 7.883 GB, free: 69.23 MB / 1.214 GB Notification: Performance of pre-optimization done (n=1037): time 1.539e-05/21.98, allocations: 0 / 7.883 GB, free: 69.23 MB / 1.214 GB Notification: Performance of matching and sorting (n=1037): time 0.0556/22.04, allocations: 15.37 MB / 7.898 GB, free: 56.35 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001749/22.04, allocations: 422.2 kB / 7.899 GB, free: 55.86 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04034/22.08, allocations: 15.49 MB / 7.914 GB, free: 42.52 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.003504/22.08, allocations: 45.7 kB / 7.914 GB, free: 42.47 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.02177/22.11, allocations: 6.722 MB / 7.92 GB, free: 36.66 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.02174/22.13, allocations: 3.485 MB / 7.924 GB, free: 33.44 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003695/22.13, allocations: 0 / 7.924 GB, free: 33.44 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.002217/22.13, allocations: 0.8345 MB / 7.925 GB, free: 32.75 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01514/22.15, allocations: 6.33 MB / 7.931 GB, free: 27.17 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01642/22.17, allocations: 9.894 MB / 7.94 GB, free: 16.68 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04221/22.21, allocations: 11.73 MB / 7.952 GB, free: 7.609 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001801/22.21, allocations: 32 kB / 7.952 GB, free: 7.578 MB / 1.214 GB Notification: Performance of matching and sorting (n=1659) (initialization): time 0.07947/22.29, allocations: 20.94 MB / 7.972 GB, free: 6.168 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.098/23.39, allocations: 69.08 MB / 8.04 GB, free: 194.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004819/23.39, allocations: 111 kB / 8.04 GB, free: 194.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003361/23.39, allocations: 191.3 kB / 8.04 GB, free: 194.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02038/23.41, allocations: 3.544 MB / 8.044 GB, free: 194.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003899/23.41, allocations: 241.3 kB / 8.044 GB, free: 194.5 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02735/23.43, allocations: 1.89 MB / 8.046 GB, free: 194.5 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004841/23.44, allocations: 0.6251 MB / 8.046 GB, free: 194.5 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/23.44, allocations: 6.5 kB / 8.046 GB, free: 194.5 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0625/23.5, allocations: 19.34 MB / 8.065 GB, free: 194.2 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002959/23.5, allocations: 105 kB / 8.065 GB, free: 194.2 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/23.5, allocations: 190.3 kB / 8.065 GB, free: 194.2 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01918/23.52, allocations: 3.548 MB / 8.069 GB, free: 194.2 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003414/23.52, allocations: 241.3 kB / 8.069 GB, free: 194.2 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02706/23.55, allocations: 1.658 MB / 8.071 GB, free: 194.2 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006257/23.56, allocations: 0.6262 MB / 8.071 GB, free: 194.2 MB / 1.229 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 484 * 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 (1659): * Single equations (assignments): 1659 * 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.008923/23.56, allocations: 470.7 kB / 8.072 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008659/23.57, allocations: 1.565 MB / 8.073 GB, free: 194.1 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06796/23.64, allocations: 17.47 MB / 8.09 GB, free: 193.7 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001767/23.64, allocations: 98.78 kB / 8.09 GB, free: 193.7 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.496e-05/23.64, allocations: 3.797 kB / 8.09 GB, free: 193.7 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04617/23.69, allocations: 14.06 MB / 8.104 GB, free: 193.3 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1252/23.81, allocations: 37.66 MB / 8.141 GB, free: 191.7 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.034e-05/23.81, allocations: 3.656 kB / 8.141 GB, free: 191.7 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01739/23.83, allocations: 2.485 MB / 8.143 GB, free: 191.7 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000211/23.83, allocations: 34.91 kB / 8.143 GB, free: 191.7 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003756/23.83, allocations: 223.2 kB / 8.144 GB, free: 191.7 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001466/23.83, allocations: 33.69 kB / 8.144 GB, free: 191.7 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/23.83, allocations: 3.531 kB / 8.144 GB, free: 191.7 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.07297/23.91, allocations: 25.17 MB / 8.168 GB, free: 189.6 MB / 1.229 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0833/23.99, allocations: 34.73 MB / 8.202 GB, free: 187 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01895/24.01, allocations: 4.457 MB / 8.207 GB, free: 186.1 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009688/24.02, allocations: 69.78 kB / 8.207 GB, free: 186.1 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02352/24.04, allocations: 1.121 MB / 8.208 GB, free: 186.1 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003544/24.05, allocations: 0.5226 MB / 8.208 GB, free: 186 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004938/24.05, allocations: 0.5387 MB / 8.209 GB, free: 186 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.02904/24.08, allocations: 11.92 MB / 8.22 GB, free: 185.6 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.05898/24.14, allocations: 10.73 MB / 8.231 GB, free: 184.5 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 60 (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,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,solCol1.vol[28].dynBal.U,solCol1.vol[29].dynBal.U,solCol1.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 (1062): * Single equations (assignments): 1054 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.007346/24.15, allocations: 1.578 MB / 8.232 GB, free: 184.3 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.04948/24.2, allocations: 24.06 MB / 8.256 GB, free: 184 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 3.774e-05/24.2, allocations: 19.52 kB / 8.256 GB, free: 184 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.01298/24.21, allocations: 6.676 MB / 8.262 GB, free: 184 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05265/24.26, allocations: 8.883 MB / 8.271 GB, free: 183.9 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09739/24.36, allocations: 39.71 MB / 8.31 GB, free: 172.8 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03131/24.39, allocations: 15.39 MB / 8.325 GB, free: 168.9 MB / 1.229 GB Notification: Performance of SimCode: time 1.393e-06/24.39, allocations: 0 / 8.325 GB, free: 168.9 MB / 1.229 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Validation_FlatPlateNPanels_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Validation_FlatPlateNPanels.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlateNPanels_res.mat does not exist to compare? outputFormat=mat