Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|shaCoe.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue") translateModel(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|shaCoe.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue") [: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 7.0.3-maint.7.0.x/package.mo): time 1.212/1.212, allocations: 249.4 MB / 256.7 MB, free: 6.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 177.2 kB / 316 MB, free: 3.574 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.058/1.058, allocations: 205.1 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008517/0.0008519, allocations: 89.47 kB / 0.671 GB, free: 4.832 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.453e-06/6.472e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1482, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.905/4.053, allocations: 2.475 GB / 3.359 GB, free: 229.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/4.054, allocations: 87.52 kB / 3.359 GB, free: 229.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.189/6.243, allocations: 0.9059 GB / 4.265 GB, free: 4.582 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.0004666/6.243, allocations: 123.6 kB / 4.265 GB, free: 4.465 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01019/6.253, allocations: 4.308 MB / 4.27 GB, free: 132 kB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/6.253, allocations: 16.03 kB / 4.27 GB, free: 116 kB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3459/6.599, allocations: 1.357 MB / 4.271 GB, free: 110.9 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/6.611, allocations: 5.436 MB / 4.276 GB, free: 110.4 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/6.611, allocations: 122.7 kB / 4.276 GB, free: 110.4 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005445/6.612, allocations: 222.4 kB / 4.277 GB, free: 110.4 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006306/6.618, allocations: 4.424 MB / 4.281 GB, free: 110.4 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005879/6.624, allocations: 4.535 MB / 4.285 GB, free: 109.9 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.187e-05/6.624, allocations: 13.25 kB / 4.285 GB, free: 109.9 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003479/6.625, allocations: 7.406 kB / 4.285 GB, free: 109.9 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001058/6.625, allocations: 182.1 kB / 4.286 GB, free: 109.9 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02293/6.648, allocations: 19.04 MB / 4.304 GB, free: 103.5 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003609/6.651, allocations: 2.958 MB / 4.307 GB, free: 103.4 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001725/6.653, allocations: 1.622 MB / 4.309 GB, free: 103.4 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001578/6.655, allocations: 1.875 MB / 4.31 GB, free: 101.4 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002067/6.657, allocations: 1.757 MB / 4.312 GB, free: 101.3 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=264): time 3.808e-06/6.657, allocations: 0 / 4.312 GB, free: 101.3 MB / 0.9011 GB Notification: Performance of matching and sorting (n=264): time 0.009336/6.666, allocations: 3.684 MB / 4.316 GB, free: 101 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/6.666, allocations: 286.5 kB / 4.316 GB, free: 100.7 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003682/6.67, allocations: 3.046 MB / 4.319 GB, free: 100.4 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.0002592/6.67, allocations: 29.55 kB / 4.319 GB, free: 100.4 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.001248/6.671, allocations: 1.396 MB / 4.32 GB, free: 99.87 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009625/6.672, allocations: 0.8677 MB / 4.321 GB, free: 99.41 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/6.672, allocations: 0 / 4.321 GB, free: 99.41 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001212/6.673, allocations: 425.7 kB / 4.322 GB, free: 99.1 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001645/6.674, allocations: 1.325 MB / 4.323 GB, free: 99.09 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001894/6.676, allocations: 2.006 MB / 4.325 GB, free: 98.37 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/6.688, allocations: 2.88 MB / 4.328 GB, free: 98.33 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.478e-05/6.688, allocations: 3.688 kB / 4.328 GB, free: 98.33 MB / 0.9011 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01546/6.703, allocations: 4.967 MB / 4.333 GB, free: 98.04 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.00105/6.704, allocations: 7.283 MB / 4.34 GB, free: 90.54 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.553e-05/6.704, allocations: 18.75 kB / 4.34 GB, free: 90.54 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006284/6.705, allocations: 112.4 kB / 4.34 GB, free: 90.53 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003696/6.709, allocations: 0.8127 MB / 4.341 GB, free: 90.53 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001609/6.71, allocations: 1.499 MB / 4.342 GB, free: 89.31 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004215/6.714, allocations: 440.1 kB / 4.343 GB, free: 89.23 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003551/6.715, allocations: 147.4 kB / 4.343 GB, free: 89.23 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 6.342e-06/6.715, allocations: 3.969 kB / 4.343 GB, free: 89.23 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01548/6.73, allocations: 4.602 MB / 4.347 GB, free: 89.14 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-05/6.73, allocations: 17.56 kB / 4.347 GB, free: 89.14 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005789/6.731, allocations: 117.2 kB / 4.347 GB, free: 89.13 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003866/6.735, allocations: 0.8163 MB / 4.348 GB, free: 89.13 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00157/6.736, allocations: 1.494 MB / 4.35 GB, free: 87.9 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/6.741, allocations: 396.6 kB / 4.35 GB, free: 87.84 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004439/6.741, allocations: 150.1 kB / 4.35 GB, free: 87.84 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (371): * Single equations (assignments): 370 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0008853/6.742, allocations: 190.4 kB / 4.35 GB, free: 87.72 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/6.743, allocations: 351.5 kB / 4.351 GB, free: 87.54 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01184/6.755, allocations: 4.518 MB / 4.355 GB, free: 87.34 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/6.755, allocations: 25.69 kB / 4.355 GB, free: 87.34 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/6.755, allocations: 2.812 kB / 4.355 GB, free: 87.34 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008548/6.764, allocations: 3.631 MB / 4.359 GB, free: 87 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/6.782, allocations: 8.91 MB / 4.367 GB, free: 86.17 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/6.782, allocations: 7.344 kB / 4.367 GB, free: 86.17 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/6.786, allocations: 0.6318 MB / 4.368 GB, free: 86.17 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005365/6.786, allocations: 98.7 kB / 4.368 GB, free: 86.16 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002722/6.787, allocations: 62.12 kB / 4.368 GB, free: 86.16 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/6.788, allocations: 1.499 MB / 4.369 GB, free: 84.94 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/6.788, allocations: 3.062 kB / 4.37 GB, free: 84.94 MB / 0.9011 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01242/6.801, allocations: 6.38 MB / 4.376 GB, free: 83.83 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002595/6.803, allocations: 1.042 MB / 4.377 GB, free: 83.51 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00118/6.804, allocations: 14.97 kB / 4.377 GB, free: 83.51 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003794/6.808, allocations: 261.2 kB / 4.377 GB, free: 83.5 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000268/6.808, allocations: 165 kB / 4.377 GB, free: 83.49 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002963/6.809, allocations: 128.8 kB / 4.377 GB, free: 83.49 MB / 0.9011 GB Notification: Performance of sort global known variables: time 0.003266/6.812, allocations: 2.349 MB / 4.38 GB, free: 83.35 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.006034/6.818, allocations: 2.324 MB / 4.382 GB, free: 82.97 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 11 (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,TOut.T,TIn.T) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (283): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002216/6.82, allocations: 1.61 MB / 4.383 GB, free: 82.73 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.006908/6.827, allocations: 5.457 MB / 4.389 GB, free: 82.44 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/6.827, allocations: 4.094 kB / 4.389 GB, free: 82.44 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.00211/6.829, allocations: 1.711 MB / 4.39 GB, free: 82.34 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00716/6.837, allocations: 1.661 MB / 4.392 GB, free: 82.29 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/6.85, allocations: 7.948 MB / 4.4 GB, free: 80.77 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003504/6.854, allocations: 3.558 MB / 4.403 GB, free: 79.99 MB / 0.9011 GB Notification: Performance of SimCode: time 5.71e-07/6.854, allocations: 1.781 kB / 4.403 GB, free: 79.99 MB / 0.9011 GB Notification: Performance of Templates: time 0.1403/6.994, allocations: 101.3 MB / 4.502 GB, free: 72.95 MB / 0.9011 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches