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: translateModel(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.30..T|datRea.y.2.",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate") translateModel(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.30..T|datRea.y.2.",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate") [: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.934/1.934, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.001059/0.001059, allocations: 178.5 kB / 490.8 MB, free: 1.926 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.326/1.326, allocations: 221.4 MB / 0.7863 GB, free: 13.71 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.0009461/0.0009461, allocations: 106.6 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.234e-06/7.334e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2869, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.815/5.102, allocations: 2.2 GB / 3.412 GB, free: 83.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/5.102, allocations: 92.36 kB / 3.412 GB, free: 83.06 MB / 1.151 GB Notification: Performance of FrontEnd: time 7.67/12.77, allocations: 2.142 GB / 5.554 GB, free: 129.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.002697/12.78, allocations: 324.7 kB / 5.554 GB, free: 129.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: 2347 * Number of variables: 2347 Notification: Performance of Generate backend data structure: time 0.03862/12.81, allocations: 9.731 MB / 5.564 GB, free: 119.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/12.81, allocations: 8.031 kB / 5.564 GB, free: 119.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01628/12.83, allocations: 2.198 MB / 5.566 GB, free: 117.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04459/12.87, allocations: 15.42 MB / 5.581 GB, free: 102.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006729/12.88, allocations: 284 kB / 5.581 GB, free: 101.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004534/12.88, allocations: 0.5038 MB / 5.582 GB, free: 101.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0266/12.91, allocations: 10.56 MB / 5.592 GB, free: 90.71 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04101/12.95, allocations: 11.76 MB / 5.603 GB, free: 78.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007593/12.95, allocations: 27.72 kB / 5.603 GB, free: 78.48 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004749/12.95, allocations: 20 kB / 5.603 GB, free: 78.46 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004304/12.95, allocations: 481.1 kB / 5.604 GB, free: 77.98 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1026/13.06, allocations: 49.8 MB / 5.653 GB, free: 26.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01366/13.07, allocations: 7.016 MB / 5.659 GB, free: 19.42 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006998/13.08, allocations: 4.03 MB / 5.663 GB, free: 15.37 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002059/13.08, allocations: 1.502 MB / 5.665 GB, free: 13.57 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008519/13.09, allocations: 3.837 MB / 5.669 GB, free: 9.676 MB / 1.151 GB Notification: Performance of pre-optimization done (n=554): time 1.07e-05/13.09, allocations: 0 / 5.669 GB, free: 9.676 MB / 1.151 GB Notification: Performance of matching and sorting (n=554): time 0.02627/13.11, allocations: 7.988 MB / 5.676 GB, free: 1.598 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/13.11, allocations: 343.1 kB / 5.677 GB, free: 1.191 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02368/13.14, allocations: 8.026 MB / 5.684 GB, free: 9.18 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.002846/13.14, allocations: 41.64 kB / 5.685 GB, free: 9.133 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0137/13.15, allocations: 3.485 MB / 5.688 GB, free: 5.602 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.009358/13.16, allocations: 1.848 MB / 5.69 GB, free: 3.727 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001767/13.17, allocations: 4 kB / 5.69 GB, free: 3.723 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.001014/13.17, allocations: 0.5792 MB / 5.69 GB, free: 3.137 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5491/13.72, allocations: 3.254 MB / 5.693 GB, free: 325.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007753/13.72, allocations: 5.087 MB / 5.698 GB, free: 323.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02137/13.75, allocations: 5.99 MB / 5.704 GB, free: 323.6 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/13.75, allocations: 17.88 kB / 5.704 GB, free: 323.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.03508/13.78, allocations: 10.76 MB / 5.715 GB, free: 323.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.006097/13.79, allocations: 27.7 MB / 5.742 GB, free: 294.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001853/13.79, allocations: 59.41 kB / 5.742 GB, free: 294.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001653/13.79, allocations: 97.38 kB / 5.742 GB, free: 294.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0106/13.8, allocations: 1.837 MB / 5.744 GB, free: 294.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001883/13.8, allocations: 126.1 kB / 5.744 GB, free: 294.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01348/13.81, allocations: 0.9804 MB / 5.745 GB, free: 294.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002488/13.81, allocations: 331.5 kB / 5.745 GB, free: 294.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/13.81, allocations: 3.688 kB / 5.745 GB, free: 294.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03085/13.85, allocations: 9.92 MB / 5.755 GB, free: 294.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001377/13.85, allocations: 52.47 kB / 5.755 GB, free: 294.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.786e-05/13.85, allocations: 96.47 kB / 5.755 GB, free: 294.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01042/13.86, allocations: 1.846 MB / 5.757 GB, free: 294.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001705/13.86, allocations: 117.8 kB / 5.757 GB, free: 294.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01337/13.87, allocations: 0.866 MB / 5.758 GB, free: 294.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002842/13.87, allocations: 333.5 kB / 5.758 GB, free: 294.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.00518/13.88, allocations: 296.1 kB / 5.758 GB, free: 294.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005549/13.88, allocations: 0.8214 MB / 5.759 GB, free: 294.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03395/13.92, allocations: 9.182 MB / 5.768 GB, free: 294 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.499e-05/13.92, allocations: 53.69 kB / 5.768 GB, free: 294 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.735e-05/13.92, allocations: 0 / 5.768 GB, free: 294 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02403/13.94, allocations: 7.32 MB / 5.775 GB, free: 293.8 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06645/14.01, allocations: 19.57 MB / 5.794 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.318e-05/14.01, allocations: 0 / 5.794 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009743/14.02, allocations: 1.313 MB / 5.796 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001635/14.02, allocations: 21.41 kB / 5.796 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002429/14.02, allocations: 119.2 kB / 5.796 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001026/14.02, allocations: 19.03 kB / 5.796 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.496e-06/14.02, allocations: 0.75 kB / 5.796 GB, free: 292.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03569/14.06, allocations: 13.13 MB / 5.809 GB, free: 291.7 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01028/14.07, allocations: 2.378 MB / 5.811 GB, free: 291.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005513/14.07, allocations: 36.22 kB / 5.811 GB, free: 291.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01305/14.09, allocations: 0.5931 MB / 5.812 GB, free: 291.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00176/14.09, allocations: 293.3 kB / 5.812 GB, free: 291.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002302/14.09, allocations: 292.8 kB / 5.812 GB, free: 291.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.01595/14.11, allocations: 6.161 MB / 5.818 GB, free: 290.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.03142/14.14, allocations: 5.448 MB / 5.824 GB, free: 290.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.006075/14.14, allocations: 1.198 MB / 5.825 GB, free: 290.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.03162/14.17, allocations: 12.47 MB / 5.837 GB, free: 290.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.209e-05/14.17, allocations: 10.47 kB / 5.837 GB, free: 290.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.01052/14.19, allocations: 3.524 MB / 5.84 GB, free: 290.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03043/14.22, allocations: 4.559 MB / 5.845 GB, free: 290.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06973/14.29, allocations: 20.17 MB / 5.865 GB, free: 286.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02295/14.31, allocations: 8.178 MB / 5.873 GB, free: 285.9 MB / 1.167 GB Notification: Performance of SimCode: time 1.693e-06/14.31, allocations: 3.469 kB / 5.873 GB, free: 285.9 MB / 1.167 GB Notification: Performance of Templates: time 0.3533/14.66, allocations: 226 MB / 6.093 GB, free: 142 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.makefile (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 & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Validation_FlatPlate.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches