Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.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.Tubular,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular") translateModel(Buildings.Fluid.SolarCollectors.Examples.Tubular,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|solCol.vol.3..T|solCol.vol.6..T|solCol.vol.9..T|solCol.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular") [: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.993/1.993, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.001177/0.001177, allocations: 185.2 kB / 490.8 MB, free: 1.961 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.486/1.486, allocations: 221.3 MB / 0.7863 GB, free: 13.73 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.001623/0.001624, allocations: 90.94 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.133e-05/1.135e-05, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.342, allocations: 143 MB / 1.212 GB, free: 40.17 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.612/4.954, allocations: 2.199 GB / 3.411 GB, free: 108.7 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/4.954, allocations: 91.73 kB / 3.411 GB, free: 108.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.046/8, allocations: 0.9426 GB / 4.353 GB, free: 49.73 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000477/8.001, allocations: 135.8 kB / 4.354 GB, free: 49.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: 984 * Number of variables: 984 Notification: Performance of Generate backend data structure: time 0.009684/8.01, allocations: 4.368 MB / 4.358 GB, free: 45.16 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/8.01, allocations: 8.031 kB / 4.358 GB, free: 45.16 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008026/8.018, allocations: 1.406 MB / 4.359 GB, free: 43.74 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01229/8.031, allocations: 5.621 MB / 4.365 GB, free: 38.05 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/8.031, allocations: 120 kB / 4.365 GB, free: 37.94 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009984/8.032, allocations: 224 kB / 4.365 GB, free: 37.72 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007775/8.04, allocations: 4.474 MB / 4.369 GB, free: 33.24 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007516/8.047, allocations: 4.631 MB / 4.374 GB, free: 28.45 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.462e-05/8.047, allocations: 7.938 kB / 4.374 GB, free: 28.45 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004255/8.048, allocations: 7.984 kB / 4.374 GB, free: 28.44 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/8.048, allocations: 191.2 kB / 4.374 GB, free: 28.25 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02948/8.077, allocations: 19.54 MB / 4.393 GB, free: 8.023 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/8.082, allocations: 2.992 MB / 4.396 GB, free: 5.039 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001941/8.084, allocations: 1.657 MB / 4.398 GB, free: 3.371 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001881/8.085, allocations: 1.868 MB / 4.4 GB, free: 1.113 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5534/8.639, allocations: 1.806 MB / 4.401 GB, free: 338.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=268): time 6.462e-06/8.639, allocations: 3.062 kB / 4.401 GB, free: 338.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=268): time 0.01115/8.65, allocations: 3.727 MB / 4.405 GB, free: 338.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.845e-05/8.65, allocations: 289.2 kB / 4.405 GB, free: 338.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004689/8.655, allocations: 3.066 MB / 4.408 GB, free: 337.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003936/8.655, allocations: 32.17 kB / 4.408 GB, free: 337.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001691/8.657, allocations: 1.413 MB / 4.41 GB, free: 337.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001169/8.658, allocations: 0.8798 MB / 4.411 GB, free: 337 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/8.658, allocations: 0 / 4.411 GB, free: 337 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.00016/8.658, allocations: 421.2 kB / 4.411 GB, free: 336.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/8.66, allocations: 1.334 MB / 4.412 GB, free: 336.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002064/8.662, allocations: 1.999 MB / 4.414 GB, free: 335.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0122/8.675, allocations: 2.897 MB / 4.417 GB, free: 335.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.958e-05/8.675, allocations: 3.812 kB / 4.417 GB, free: 335.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01754/8.692, allocations: 4.991 MB / 4.422 GB, free: 335.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001573/8.694, allocations: 7.301 MB / 4.429 GB, free: 327.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/8.694, allocations: 14.75 kB / 4.429 GB, free: 327.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000665/8.695, allocations: 112.1 kB / 4.429 GB, free: 327.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004153/8.699, allocations: 0.8239 MB / 4.43 GB, free: 327.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/8.701, allocations: 2.102 MB / 4.432 GB, free: 326 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005255/8.706, allocations: 431.6 kB / 4.432 GB, free: 325.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005002/8.707, allocations: 147.8 kB / 4.433 GB, free: 325.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/8.707, allocations: 3.938 kB / 4.433 GB, free: 325.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01885/8.726, allocations: 4.621 MB / 4.437 GB, free: 325.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.716e-05/8.726, allocations: 19 kB / 4.437 GB, free: 325.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006696/8.726, allocations: 116.8 kB / 4.437 GB, free: 325.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004494/8.731, allocations: 0.8115 MB / 4.438 GB, free: 325.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001869/8.733, allocations: 1.501 MB / 4.439 GB, free: 324.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005504/8.738, allocations: 399.9 kB / 4.44 GB, free: 324.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008819/8.739, allocations: 145.1 kB / 4.44 GB, free: 324.5 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 (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.001667/8.741, allocations: 186.1 kB / 4.44 GB, free: 324.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002028/8.743, allocations: 357.3 kB / 4.441 GB, free: 324.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01616/8.759, allocations: 4.581 MB / 4.445 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.278e-05/8.759, allocations: 28.22 kB / 4.445 GB, free: 324.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.824e-05/8.759, allocations: 3.906 kB / 4.445 GB, free: 324 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01143/8.771, allocations: 3.684 MB / 4.449 GB, free: 323.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02609/8.797, allocations: 8.773 MB / 4.457 GB, free: 323.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/8.797, allocations: 0 / 4.457 GB, free: 323.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003954/8.801, allocations: 0.6414 MB / 4.458 GB, free: 323.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006061/8.802, allocations: 103.5 kB / 4.458 GB, free: 323.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000552/8.802, allocations: 59.45 kB / 4.458 GB, free: 323.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001987/8.804, allocations: 2.086 MB / 4.46 GB, free: 321.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.094e-06/8.804, allocations: 0 / 4.46 GB, free: 321.3 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01688/8.821, allocations: 6.085 MB / 4.466 GB, free: 320.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00405/8.825, allocations: 1.058 MB / 4.467 GB, free: 320.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001877/8.827, allocations: 13.31 kB / 4.467 GB, free: 320.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005891/8.833, allocations: 294.3 kB / 4.467 GB, free: 320.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006567/8.834, allocations: 155.6 kB / 4.467 GB, free: 320.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008195/8.834, allocations: 140.6 kB / 4.468 GB, free: 320.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.007105/8.842, allocations: 2.364 MB / 4.47 GB, free: 320.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01487/8.857, allocations: 2.372 MB / 4.472 GB, free: 320.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (288): * Single equations (assignments): 278 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.005012/8.862, allocations: 1.648 MB / 4.474 GB, free: 319.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01362/8.875, allocations: 5.516 MB / 4.479 GB, free: 319.6 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.998e-05/8.875, allocations: 8.609 kB / 4.479 GB, free: 319.6 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.004061/8.879, allocations: 1.729 MB / 4.481 GB, free: 319.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01128/8.891, allocations: 1.681 MB / 4.483 GB, free: 319.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02873/8.92, allocations: 7.979 MB / 4.49 GB, free: 318.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009215/8.929, allocations: 3.604 MB / 4.494 GB, free: 317.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.503e-06/8.929, allocations: 3.125 kB / 4.494 GB, free: 317.3 MB / 1.151 GB Notification: Performance of Templates: time 0.1804/9.109, allocations: 102.9 MB / 4.594 GB, free: 312.6 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Examples_Tubular.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches