Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json 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) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") [: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/Complex 3.2.3+maint.om/package.mo): time 0.001163/0.001164, allocations: 185.8 kB / 8.481 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.2 MB / 214.1 MB, free: 5.156 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001091/0.001091, allocations: 83.34 kB / 262.1 MB, free: 5.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.532e-06/6.553e-06, allocations: 4 kB / 315 MB, free: 41.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08399/0.08401, allocations: 47.58 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.269/6.353, allocations: 3.611 GB / 3.965 GB, free: 149.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/6.354, allocations: 86.3 kB / 3.965 GB, free: 149.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.253/8.606, allocations: 0.5511 GB / 4.516 GB, free: 40.14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.051e-05/8.607, allocations: 28.72 kB / 4.516 GB, free: 40.13 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.01412/8.621, allocations: 3.002 MB / 4.519 GB, free: 38.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.053e-05/8.621, allocations: 9.406 kB / 4.519 GB, free: 38.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008288/8.622, allocations: 133.2 kB / 4.519 GB, free: 38.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/8.623, allocations: 0.7265 MB / 4.52 GB, free: 38.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/8.624, allocations: 107.8 kB / 4.52 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/8.624, allocations: 52.91 kB / 4.52 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002254/8.626, allocations: 1.315 MB / 4.522 GB, free: 38.26 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/8.628, allocations: 1.329 MB / 4.523 GB, free: 38.03 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.618e-05/8.628, allocations: 7.594 kB / 4.523 GB, free: 38.03 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/8.628, allocations: 2.656 kB / 4.523 GB, free: 38.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.122e-05/8.628, allocations: 68.55 kB / 4.523 GB, free: 38.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009492/8.638, allocations: 6.442 MB / 4.529 GB, free: 34.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/8.639, allocations: 0.6236 MB / 4.53 GB, free: 34.49 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007094/8.64, allocations: 476.6 kB / 4.53 GB, free: 34.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001161/8.641, allocations: 1.24 MB / 4.532 GB, free: 33.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.069e-05/8.641, allocations: 44.19 kB / 4.532 GB, free: 33.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 5.16e-06/8.641, allocations: 6.859 kB / 4.532 GB, free: 33.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.01696/8.658, allocations: 4.247 MB / 4.536 GB, free: 32.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.252e-05/8.658, allocations: 119.9 kB / 4.536 GB, free: 32.52 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/8.659, allocations: 0.5484 MB / 4.536 GB, free: 32.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001373/8.66, allocations: 31.94 kB / 4.536 GB, free: 32.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002767/8.66, allocations: 414.9 kB / 4.537 GB, free: 32.08 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/8.66, allocations: 305.5 kB / 4.537 GB, free: 31.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.285e-05/8.66, allocations: 0 / 4.537 GB, free: 31.88 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001866/8.66, allocations: 390.5 kB / 4.537 GB, free: 31.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008491/8.661, allocations: 0.5527 MB / 4.538 GB, free: 31.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/8.662, allocations: 0.8846 MB / 4.539 GB, free: 31.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005399/8.668, allocations: 1.351 MB / 4.54 GB, free: 31.17 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/8.668, allocations: 3.75 kB / 4.54 GB, free: 31.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.007479/8.675, allocations: 2.304 MB / 4.542 GB, free: 31.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001395/8.677, allocations: 3.914 MB / 4.546 GB, free: 27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.337e-05/8.677, allocations: 9.688 kB / 4.546 GB, free: 27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001174/8.678, allocations: 255 kB / 4.547 GB, free: 26.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/8.679, allocations: 272.4 kB / 4.547 GB, free: 26.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/8.68, allocations: 0.8658 MB / 4.548 GB, free: 26.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/8.682, allocations: 87.3 kB / 4.548 GB, free: 26.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002617/8.682, allocations: 79.08 kB / 4.548 GB, free: 26.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/8.682, allocations: 6.844 kB / 4.548 GB, free: 26.45 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00738/8.69, allocations: 2.147 MB / 4.55 GB, free: 26.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.976e-05/8.69, allocations: 11.16 kB / 4.55 GB, free: 26.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/8.691, allocations: 249 kB / 4.55 GB, free: 26.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/8.692, allocations: 268.5 kB / 4.55 GB, free: 26.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/8.693, allocations: 0.867 MB / 4.551 GB, free: 25.89 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/8.695, allocations: 82.72 kB / 4.551 GB, free: 25.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002639/8.695, allocations: 81.09 kB / 4.551 GB, free: 25.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006872/8.696, allocations: 148.2 kB / 4.552 GB, free: 25.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005546/8.697, allocations: 84.44 kB / 4.552 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005722/8.702, allocations: 1.876 MB / 4.553 GB, free: 25.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/8.702, allocations: 10.25 kB / 4.553 GB, free: 25.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/8.702, allocations: 0 / 4.553 GB, free: 25.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.818e-05/8.702, allocations: 5.391 kB / 4.553 GB, free: 25.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/8.713, allocations: 3.879 MB / 4.557 GB, free: 24.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.96e-05/8.713, allocations: 11.47 kB / 4.557 GB, free: 24.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009608/8.714, allocations: 172.8 kB / 4.557 GB, free: 24.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001469/8.716, allocations: 324.3 kB / 4.558 GB, free: 24.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/8.716, allocations: 34.8 kB / 4.558 GB, free: 24.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/8.717, allocations: 0.8343 MB / 4.559 GB, free: 24.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/8.717, allocations: 5.781 kB / 4.559 GB, free: 24.23 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005846/8.723, allocations: 2.517 MB / 4.561 GB, free: 23.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/8.724, allocations: 324.8 kB / 4.561 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000428/8.724, allocations: 13.42 kB / 4.561 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001492/8.726, allocations: 57.95 kB / 4.561 GB, free: 23.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/8.726, allocations: 72.08 kB / 4.562 GB, free: 23.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002224/8.726, allocations: 58.72 kB / 4.562 GB, free: 23.54 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009665/8.727, allocations: 429.5 kB / 4.562 GB, free: 23.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007852/8.735, allocations: 1.278 MB / 4.563 GB, free: 23.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01076/8.746, allocations: 2.228 MB / 4.565 GB, free: 22.74 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00663/8.753, allocations: 2.322 MB / 4.568 GB, free: 22.53 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.018e-05/8.753, allocations: 3.844 kB / 4.568 GB, free: 22.53 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/8.754, allocations: 0.6528 MB / 4.568 GB, free: 22.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002807/8.757, allocations: 378.8 kB / 4.569 GB, free: 22.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007068/8.764, allocations: 2.056 MB / 4.571 GB, free: 22.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/8.766, allocations: 1.296 MB / 4.572 GB, free: 21.31 MB / 442.7 MB Notification: Performance of SimCode: time 2.053e-06/8.766, allocations: 0 / 4.572 GB, free: 21.31 MB / 442.7 MB Notification: Performance of Templates: time 0.08918/8.855, allocations: 46.51 MB / 4.617 GB, free: 11.17 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches