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: translateModel(Buildings.Fluid.SolarCollectors.Validation.FlatPlate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.30..T|datRea.y.2.",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.042/2.042, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001188/0.001188, allocations: 189.2 kB / 487 MB, free: 5.383 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.402/1.402, allocations: 221.3 MB / 0.7819 GB, free: 1.305 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.0009701/0.0009701, allocations: 104.1 kB / 0.9213 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.534e-06/7.565e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3008, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.06/5.361, allocations: 2.2 GB / 3.405 GB, free: 87.63 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003563/5.361, allocations: 90.02 kB / 3.405 GB, free: 87.59 MB / 1.151 GB Notification: Performance of FrontEnd: time 7.663/13.02, allocations: 2.142 GB / 5.547 GB, free: 152.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.002426/13.03, allocations: 316.1 kB / 5.548 GB, free: 152 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.04008/13.07, allocations: 9.725 MB / 5.557 GB, free: 142.3 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.513e-05/13.07, allocations: 9.031 kB / 5.557 GB, free: 142.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01761/13.09, allocations: 2.202 MB / 5.559 GB, free: 140.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04853/13.13, allocations: 15.42 MB / 5.574 GB, free: 124.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006819/13.13, allocations: 284 kB / 5.575 GB, free: 124.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004691/13.14, allocations: 0.5077 MB / 5.575 GB, free: 124 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02766/13.17, allocations: 10.55 MB / 5.585 GB, free: 113.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03991/13.21, allocations: 11.78 MB / 5.597 GB, free: 101.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005727/13.21, allocations: 31.72 kB / 5.597 GB, free: 101.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00424/13.21, allocations: 23.94 kB / 5.597 GB, free: 101.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003487/13.21, allocations: 477.1 kB / 5.597 GB, free: 100.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1091/13.32, allocations: 49.8 MB / 5.646 GB, free: 49.16 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/13.33, allocations: 7.028 MB / 5.653 GB, free: 42.17 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005581/13.34, allocations: 4.034 MB / 5.657 GB, free: 38.12 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001747/13.34, allocations: 1.498 MB / 5.658 GB, free: 36.32 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0071/13.35, allocations: 3.845 MB / 5.662 GB, free: 32.41 MB / 1.151 GB Notification: Performance of pre-optimization done (n=554): time 1.101e-05/13.35, allocations: 0 / 5.662 GB, free: 32.41 MB / 1.151 GB Notification: Performance of matching and sorting (n=554): time 0.02219/13.37, allocations: 7.988 MB / 5.67 GB, free: 24.33 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/13.37, allocations: 351 kB / 5.67 GB, free: 23.92 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01627/13.39, allocations: 8.018 MB / 5.678 GB, free: 15.92 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.002261/13.39, allocations: 33.7 kB / 5.678 GB, free: 15.88 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.008283/13.4, allocations: 3.493 MB / 5.681 GB, free: 12.34 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.009166/13.41, allocations: 1.848 MB / 5.683 GB, free: 10.46 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008266/13.41, allocations: 0 / 5.683 GB, free: 10.46 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000619/13.41, allocations: 0.5792 MB / 5.684 GB, free: 9.879 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004839/13.41, allocations: 3.262 MB / 5.687 GB, free: 6.613 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005336/13.42, allocations: 5.09 MB / 5.692 GB, free: 0.7305 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6101/14.03, allocations: 5.986 MB / 5.698 GB, free: 310.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/14.03, allocations: 18.84 kB / 5.698 GB, free: 310.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.03423/14.06, allocations: 10.76 MB / 5.708 GB, free: 310.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.005506/14.07, allocations: 27.7 MB / 5.735 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001336/14.07, allocations: 51.84 kB / 5.735 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001476/14.07, allocations: 98.16 kB / 5.735 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01033/14.08, allocations: 1.839 MB / 5.737 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001649/14.08, allocations: 122.6 kB / 5.737 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01551/14.09, allocations: 0.9786 MB / 5.738 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003374/14.1, allocations: 330.6 kB / 5.739 GB, free: 282.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/14.1, allocations: 5.344 kB / 5.739 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03432/14.13, allocations: 9.929 MB / 5.748 GB, free: 281.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000229/14.13, allocations: 56.06 kB / 5.748 GB, free: 281.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/14.13, allocations: 93.03 kB / 5.749 GB, free: 281.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01/14.14, allocations: 1.839 MB / 5.75 GB, free: 281.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001888/14.14, allocations: 123.9 kB / 5.75 GB, free: 281.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01254/14.16, allocations: 0.8627 MB / 5.751 GB, free: 281.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002338/14.16, allocations: 333.8 kB / 5.752 GB, free: 281.9 MB / 1.151 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.004413/14.16, allocations: 296.2 kB / 5.752 GB, free: 281.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006396/14.17, allocations: 0.8235 MB / 5.753 GB, free: 281.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03716/14.21, allocations: 9.176 MB / 5.762 GB, free: 281.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.367e-05/14.21, allocations: 53.19 kB / 5.762 GB, free: 281.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.098e-05/14.21, allocations: 0 / 5.762 GB, free: 281.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02189/14.23, allocations: 7.323 MB / 5.769 GB, free: 281 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06167/14.29, allocations: 19.56 MB / 5.788 GB, free: 280 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.361e-05/14.29, allocations: 0 / 5.788 GB, free: 280 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008611/14.3, allocations: 1.316 MB / 5.789 GB, free: 280 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/14.3, allocations: 19.53 kB / 5.789 GB, free: 280 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001789/14.3, allocations: 112.6 kB / 5.789 GB, free: 280 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.382e-05/14.3, allocations: 22.31 kB / 5.789 GB, free: 280 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/14.3, allocations: 0 / 5.789 GB, free: 280 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03582/14.34, allocations: 13.13 MB / 5.802 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01028/14.35, allocations: 2.377 MB / 5.805 GB, free: 278.4 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005574/14.35, allocations: 30.66 kB / 5.805 GB, free: 278.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01233/14.36, allocations: 0.6026 MB / 5.805 GB, free: 278.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001753/14.37, allocations: 288.5 kB / 5.805 GB, free: 278.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002152/14.37, allocations: 291.4 kB / 5.806 GB, free: 278.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.01475/14.38, allocations: 6.163 MB / 5.812 GB, free: 278.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.03632/14.42, allocations: 5.445 MB / 5.817 GB, free: 277.7 MB / 1.151 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.00557/14.42, allocations: 1.202 MB / 5.818 GB, free: 277.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.02711/14.45, allocations: 12.47 MB / 5.83 GB, free: 277.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.159e-05/14.45, allocations: 10.53 kB / 5.83 GB, free: 277.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.007664/14.46, allocations: 3.53 MB / 5.834 GB, free: 277.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02843/14.49, allocations: 4.55 MB / 5.838 GB, free: 277.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06398/14.55, allocations: 20.17 MB / 5.858 GB, free: 274.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01641/14.57, allocations: 8.187 MB / 5.866 GB, free: 273.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.713e-06/14.57, allocations: 0 / 5.866 GB, free: 273.1 MB / 1.151 GB Notification: Performance of Templates: time 0.3921/14.96, allocations: 225.9 MB / 6.087 GB, free: 133 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.makefile (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 & ./Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Validation_FlatPlate.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Validation.FlatPlate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches