Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 2.088/2.088, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001113/0.001113, allocations: 175.6 kB / 490.8 MB, free: 1.969 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.474/1.474, allocations: 221.4 MB / 0.7863 GB, free: 13.7 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.001015/0.001015, allocations: 79.12 kB / 0.9264 GB, free: 14.24 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.825e-06/7.845e-06, allocations: 0 / 1.072 GB, free: 182.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2844, allocations: 143 MB / 1.212 GB, free: 40.18 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.527/4.811, allocations: 2.199 GB / 3.411 GB, free: 76.27 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/4.812, allocations: 88.98 kB / 3.411 GB, free: 76.23 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.96/7.772, allocations: 0.9438 GB / 4.355 GB, free: 21.33 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0007096/7.772, allocations: 131.9 kB / 4.355 GB, free: 21.2 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: 985 * Number of variables: 985 Notification: Performance of Generate backend data structure: time 0.01249/7.785, allocations: 4.392 MB / 4.359 GB, free: 16.75 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/7.785, allocations: 8.031 kB / 4.359 GB, free: 16.74 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009479/7.794, allocations: 1.391 MB / 4.36 GB, free: 15.34 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01535/7.81, allocations: 5.627 MB / 4.366 GB, free: 9.648 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/7.81, allocations: 120 kB / 4.366 GB, free: 9.531 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/7.812, allocations: 227.9 kB / 4.366 GB, free: 9.309 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008696/7.82, allocations: 4.478 MB / 4.371 GB, free: 4.828 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007834/7.828, allocations: 4.629 MB / 4.375 GB, free: 40 kB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001142/7.828, allocations: 7.938 kB / 4.375 GB, free: 32 kB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004574/7.829, allocations: 7.984 kB / 4.375 GB, free: 24 kB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.4436/8.272, allocations: 183 kB / 4.375 GB, free: 345.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03652/8.309, allocations: 19.36 MB / 4.394 GB, free: 338.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004258/8.313, allocations: 2.966 MB / 4.397 GB, free: 338.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001931/8.315, allocations: 1.633 MB / 4.399 GB, free: 338.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001856/8.317, allocations: 1.873 MB / 4.401 GB, free: 336.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002486/8.32, allocations: 1.799 MB / 4.402 GB, free: 336.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=265): time 4.288e-06/8.32, allocations: 0 / 4.402 GB, free: 336.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=265): time 0.01098/8.331, allocations: 3.715 MB / 4.406 GB, free: 336.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.78e-05/8.331, allocations: 287.5 kB / 4.406 GB, free: 336.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005122/8.336, allocations: 3.084 MB / 4.409 GB, free: 335.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0008655/8.337, allocations: 29.42 kB / 4.409 GB, free: 335.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001877/8.339, allocations: 1.425 MB / 4.411 GB, free: 335.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001643/8.34, allocations: 0.8664 MB / 4.411 GB, free: 334.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001884/8.34, allocations: 0 / 4.411 GB, free: 334.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001684/8.341, allocations: 427.1 kB / 4.412 GB, free: 334.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/8.343, allocations: 1.332 MB / 4.413 GB, free: 334.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/8.345, allocations: 2.009 MB / 4.415 GB, free: 333.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01313/8.358, allocations: 2.899 MB / 4.418 GB, free: 333.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-05/8.358, allocations: 7.625 kB / 4.418 GB, free: 333.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=374) (initialization): time 0.01823/8.376, allocations: 4.995 MB / 4.423 GB, free: 333.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001544/8.378, allocations: 7.296 MB / 4.43 GB, free: 325.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.412e-05/8.378, allocations: 17.56 kB / 4.43 GB, free: 325.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007014/8.379, allocations: 125.2 kB / 4.43 GB, free: 325.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004301/8.383, allocations: 0.8147 MB / 4.431 GB, free: 325.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001895/8.385, allocations: 1.504 MB / 4.432 GB, free: 324.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005666/8.39, allocations: 447.8 kB / 4.433 GB, free: 324.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008382/8.391, allocations: 147 kB / 4.433 GB, free: 324.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/8.391, allocations: 7.188 kB / 4.433 GB, free: 324.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01988/8.411, allocations: 4.621 MB / 4.437 GB, free: 324.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.5e-05/8.411, allocations: 14.44 kB / 4.438 GB, free: 324.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006692/8.412, allocations: 122.1 kB / 4.438 GB, free: 324.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00478/8.417, allocations: 0.8111 MB / 4.438 GB, free: 324.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/8.419, allocations: 1.502 MB / 4.44 GB, free: 323 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00564/8.424, allocations: 400.7 kB / 4.44 GB, free: 322.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007842/8.425, allocations: 148.7 kB / 4.44 GB, free: 322.9 MB / 1.151 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 (372): * Single equations (assignments): 371 * 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.001454/8.427, allocations: 180.2 kB / 4.441 GB, free: 322.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001429/8.428, allocations: 361.7 kB / 4.441 GB, free: 322.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/8.441, allocations: 4.564 MB / 4.445 GB, free: 322.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.863e-05/8.441, allocations: 29.06 kB / 4.445 GB, free: 322.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/8.441, allocations: 0 / 4.445 GB, free: 322.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009234/8.45, allocations: 3.653 MB / 4.449 GB, free: 322.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02112/8.471, allocations: 9.022 MB / 4.458 GB, free: 321.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/8.471, allocations: 3.844 kB / 4.458 GB, free: 321.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003611/8.475, allocations: 0.6446 MB / 4.458 GB, free: 321.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005635/8.476, allocations: 98.41 kB / 4.459 GB, free: 321.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002987/8.476, allocations: 60.58 kB / 4.459 GB, free: 321.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/8.478, allocations: 1.501 MB / 4.46 GB, free: 320 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/8.478, allocations: 6.156 kB / 4.46 GB, free: 320 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01374/8.491, allocations: 6.426 MB / 4.466 GB, free: 318.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003348/8.495, allocations: 1.063 MB / 4.467 GB, free: 318.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/8.496, allocations: 16.92 kB / 4.467 GB, free: 318.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004346/8.5, allocations: 268.2 kB / 4.468 GB, free: 318.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003124/8.501, allocations: 170.3 kB / 4.468 GB, free: 318.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003487/8.501, allocations: 132.7 kB / 4.468 GB, free: 318.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.003645/8.505, allocations: 2.376 MB / 4.47 GB, free: 318.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.008932/8.514, allocations: 2.383 MB / 4.473 GB, free: 318.3 MB / 1.151 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 (285): * Single equations (assignments): 276 * 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.003398/8.517, allocations: 1.661 MB / 4.474 GB, free: 318.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.009371/8.527, allocations: 5.488 MB / 4.48 GB, free: 317.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.198e-05/8.527, allocations: 3.906 kB / 4.48 GB, free: 317.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004113/8.531, allocations: 1.729 MB / 4.481 GB, free: 317.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009784/8.541, allocations: 1.662 MB / 4.483 GB, free: 317.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/8.559, allocations: 8.062 MB / 4.491 GB, free: 316.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005216/8.564, allocations: 3.604 MB / 4.494 GB, free: 315.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.202e-06/8.564, allocations: 0 / 4.494 GB, free: 315.3 MB / 1.151 GB Notification: Performance of Templates: time 0.1652/8.73, allocations: 102.8 MB / 4.595 GB, free: 307.6 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches