Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.057/2.057, allocations: 387.2 MB / 394.5 MB, free: 13.6 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.001028/0.001028, allocations: 177.2 kB / 487 MB, free: 5.297 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.448/1.448, allocations: 221.3 MB / 0.7819 GB, free: 1.297 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.001043/0.001043, allocations: 95 kB / 0.9213 GB, free: 2.551 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.084e-06/7.094e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3321, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.935/5.267, allocations: 2.199 GB / 3.404 GB, free: 111.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002421/5.268, allocations: 99.83 kB / 3.404 GB, free: 111.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.06/8.327, allocations: 0.9426 GB / 4.347 GB, free: 60.89 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0006989/8.328, allocations: 127.9 kB / 4.347 GB, free: 60.77 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.01398/8.342, allocations: 4.387 MB / 4.351 GB, free: 56.31 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/8.342, allocations: 9.031 kB / 4.351 GB, free: 56.3 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009498/8.352, allocations: 1.395 MB / 4.353 GB, free: 54.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01535/8.367, allocations: 5.618 MB / 4.358 GB, free: 49.22 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000285/8.367, allocations: 124 kB / 4.358 GB, free: 49.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00219/8.37, allocations: 220 kB / 4.359 GB, free: 48.88 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01093/8.38, allocations: 4.481 MB / 4.363 GB, free: 44.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009933/8.39, allocations: 4.622 MB / 4.367 GB, free: 39.61 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/8.391, allocations: 7.938 kB / 4.367 GB, free: 39.61 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005175/8.391, allocations: 8 kB / 4.367 GB, free: 39.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/8.391, allocations: 187.2 kB / 4.368 GB, free: 39.41 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03335/8.425, allocations: 19.54 MB / 4.387 GB, free: 19.18 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004418/8.429, allocations: 3.003 MB / 4.39 GB, free: 16.18 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002086/8.431, allocations: 1.649 MB / 4.391 GB, free: 14.53 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001893/8.433, allocations: 1.876 MB / 4.393 GB, free: 12.26 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002568/8.436, allocations: 1.796 MB / 4.395 GB, free: 10.42 MB / 1.151 GB Notification: Performance of pre-optimization done (n=268): time 5.841e-06/8.436, allocations: 0 / 4.395 GB, free: 10.42 MB / 1.151 GB Notification: Performance of matching and sorting (n=268): time 0.01152/8.447, allocations: 3.74 MB / 4.398 GB, free: 6.625 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/8.447, allocations: 283.1 kB / 4.399 GB, free: 6.285 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005464/8.453, allocations: 3.072 MB / 4.402 GB, free: 3.215 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0008857/8.454, allocations: 29.7 kB / 4.402 GB, free: 3.18 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001838/8.456, allocations: 1.407 MB / 4.403 GB, free: 1.75 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.001614/8.457, allocations: 0.8776 MB / 4.404 GB, free: 0.8594 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/8.457, allocations: 0 / 4.404 GB, free: 0.8594 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001701/8.458, allocations: 428.3 kB / 4.404 GB, free: 444 kB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5579/9.016, allocations: 1.331 MB / 4.406 GB, free: 340.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003117/9.019, allocations: 2.006 MB / 4.408 GB, free: 339.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01352/9.032, allocations: 2.892 MB / 4.41 GB, free: 339.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.341e-05/9.032, allocations: 7.906 kB / 4.411 GB, free: 339.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.02031/9.053, allocations: 4.988 MB / 4.415 GB, free: 339.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001706/9.054, allocations: 7.296 MB / 4.422 GB, free: 331.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.972e-05/9.054, allocations: 22 kB / 4.423 GB, free: 331.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000711/9.055, allocations: 113.2 kB / 4.423 GB, free: 331.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004525/9.06, allocations: 0.8204 MB / 4.423 GB, free: 331.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002148/9.062, allocations: 2.104 MB / 4.425 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00563/9.068, allocations: 434.8 kB / 4.426 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007212/9.068, allocations: 148.8 kB / 4.426 GB, free: 330 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/9.068, allocations: 3.594 kB / 4.426 GB, free: 330 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0174/9.086, allocations: 4.611 MB / 4.431 GB, free: 329.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.404e-05/9.086, allocations: 22.12 kB / 4.431 GB, free: 329.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005852/9.086, allocations: 117.3 kB / 4.431 GB, free: 329.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004073/9.09, allocations: 0.8146 MB / 4.431 GB, free: 329.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/9.092, allocations: 1.502 MB / 4.433 GB, free: 328.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005158/9.097, allocations: 400.2 kB / 4.433 GB, free: 328.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005525/9.098, allocations: 145.9 kB / 4.433 GB, free: 328.7 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.001063/9.099, allocations: 181 kB / 4.434 GB, free: 328.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/9.1, allocations: 364.9 kB / 4.434 GB, free: 328.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/9.113, allocations: 4.591 MB / 4.438 GB, free: 328.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.164e-05/9.113, allocations: 26.72 kB / 4.438 GB, free: 328.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/9.113, allocations: 0 / 4.438 GB, free: 328.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009533/9.123, allocations: 3.676 MB / 4.442 GB, free: 327.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02116/9.144, allocations: 8.767 MB / 4.451 GB, free: 327.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/9.144, allocations: 0 / 4.451 GB, free: 327.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003622/9.148, allocations: 0.649 MB / 4.451 GB, free: 327.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005524/9.149, allocations: 90.92 kB / 4.451 GB, free: 327.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002726/9.149, allocations: 58.34 kB / 4.451 GB, free: 327.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001823/9.151, allocations: 2.089 MB / 4.453 GB, free: 325.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/9.151, allocations: 7.594 kB / 4.453 GB, free: 325.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01395/9.165, allocations: 6.072 MB / 4.459 GB, free: 325 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003484/9.168, allocations: 1.062 MB / 4.46 GB, free: 324.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00127/9.169, allocations: 15.22 kB / 4.46 GB, free: 324.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004327/9.174, allocations: 301.9 kB / 4.461 GB, free: 324.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003305/9.174, allocations: 156.2 kB / 4.461 GB, free: 324.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003652/9.174, allocations: 132.5 kB / 4.461 GB, free: 324.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.004099/9.179, allocations: 2.364 MB / 4.463 GB, free: 324.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.009778/9.188, allocations: 2.371 MB / 4.466 GB, free: 324.3 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.004367/9.193, allocations: 1.646 MB / 4.467 GB, free: 324.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01098/9.204, allocations: 5.513 MB / 4.473 GB, free: 323.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-05/9.204, allocations: 4.203 kB / 4.473 GB, free: 323.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.00336/9.207, allocations: 1.745 MB / 4.474 GB, free: 323.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01077/9.218, allocations: 1.668 MB / 4.476 GB, free: 323.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02668/9.245, allocations: 7.975 MB / 4.484 GB, free: 322.3 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008632/9.253, allocations: 3.602 MB / 4.487 GB, free: 321.5 MB / 1.151 GB Notification: Performance of SimCode: time 1.744e-06/9.253, allocations: 3.656 kB / 4.487 GB, free: 321.5 MB / 1.151 GB Notification: Performance of Templates: time 0.1845/9.438, allocations: 102.9 MB / 4.588 GB, free: 316.8 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Examples_Tubular.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Examples.Tubular.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches