Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json 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) 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.000971/0.0009709, allocations: 184.1 kB / 8.138 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009951/0.0009951, allocations: 88.84 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.722e-06, allocations: 0 / 336.5 MB, free: 9.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2135, allocations: 50.4 MB / 386.9 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.785/6.999, allocations: 3.552 GB / 3.93 GB, free: 145.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003644/6.999, allocations: 93.64 kB / 3.93 GB, free: 145.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.29/9.289, allocations: 0.5347 GB / 4.464 GB, free: 42.54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001005/9.289, allocations: 28.69 kB / 4.464 GB, free: 42.54 MB / 458.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.01435/9.304, allocations: 2.87 MB / 4.467 GB, free: 41.13 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.048e-05/9.304, allocations: 10.53 kB / 4.467 GB, free: 41.13 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009457/9.305, allocations: 129 kB / 4.467 GB, free: 41.08 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/9.307, allocations: 0.7298 MB / 4.468 GB, free: 40.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/9.307, allocations: 100.8 kB / 4.468 GB, free: 40.73 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/9.307, allocations: 51.84 kB / 4.468 GB, free: 40.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002389/9.309, allocations: 1.311 MB / 4.469 GB, free: 40.73 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/9.311, allocations: 1.328 MB / 4.471 GB, free: 40.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.683e-05/9.312, allocations: 1.688 kB / 4.471 GB, free: 40.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001178/9.312, allocations: 6.234 kB / 4.471 GB, free: 40.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.801e-05/9.312, allocations: 71.41 kB / 4.471 GB, free: 40.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0104/9.322, allocations: 6.414 MB / 4.477 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/9.323, allocations: 0.6439 MB / 4.478 GB, free: 36.96 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006264/9.324, allocations: 470.7 kB / 4.478 GB, free: 36.96 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009955/9.325, allocations: 1.304 MB / 4.479 GB, free: 35.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/9.325, allocations: 45.25 kB / 4.479 GB, free: 35.51 MB / 458.7 MB Notification: Performance of pre-optimization done (n=78): time 3.066e-06/9.325, allocations: 0 / 4.479 GB, free: 35.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01639/9.341, allocations: 4.152 MB / 4.483 GB, free: 35.02 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.727e-05/9.342, allocations: 115.4 kB / 4.484 GB, free: 34.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001061/9.343, allocations: 0.5514 MB / 4.484 GB, free: 34.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001545/9.343, allocations: 33.14 kB / 4.484 GB, free: 34.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/9.343, allocations: 411.2 kB / 4.485 GB, free: 34.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003281/9.343, allocations: 313.1 kB / 4.485 GB, free: 34.26 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/9.344, allocations: 3.812 kB / 4.485 GB, free: 34.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/9.344, allocations: 393.8 kB / 4.485 GB, free: 33.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/9.345, allocations: 0.5495 MB / 4.486 GB, free: 33.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/9.346, allocations: 0.8713 MB / 4.487 GB, free: 33.56 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003016/9.349, allocations: 0.9895 MB / 4.488 GB, free: 33.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/9.349, allocations: 3.531 kB / 4.488 GB, free: 33.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004408/9.353, allocations: 1.93 MB / 4.489 GB, free: 33.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001127/9.355, allocations: 3.912 MB / 4.493 GB, free: 29.37 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.738e-05/9.355, allocations: 13.28 kB / 4.493 GB, free: 29.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/9.356, allocations: 246.3 kB / 4.494 GB, free: 29.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/9.357, allocations: 271.2 kB / 4.494 GB, free: 29.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001049/9.358, allocations: 0.8689 MB / 4.495 GB, free: 28.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/9.36, allocations: 85.25 kB / 4.495 GB, free: 28.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002022/9.36, allocations: 73.12 kB / 4.495 GB, free: 28.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/9.36, allocations: 5.094 kB / 4.495 GB, free: 28.84 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004247/9.364, allocations: 1.765 MB / 4.497 GB, free: 28.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/9.364, allocations: 13.88 kB / 4.497 GB, free: 28.81 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/9.365, allocations: 250.6 kB / 4.497 GB, free: 28.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/9.366, allocations: 268.5 kB / 4.497 GB, free: 28.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00101/9.367, allocations: 0.866 MB / 4.498 GB, free: 28.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/9.369, allocations: 79.2 kB / 4.498 GB, free: 28.27 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001862/9.369, allocations: 76.41 kB / 4.498 GB, free: 28.27 MB / 458.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.0004698/9.369, allocations: 148.2 kB / 4.498 GB, free: 28.16 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003451/9.37, allocations: 84.28 kB / 4.498 GB, free: 28.12 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004668/9.374, allocations: 1.912 MB / 4.5 GB, free: 27.99 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.015e-05/9.374, allocations: 18.66 kB / 4.5 GB, free: 27.99 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/9.374, allocations: 0 / 4.5 GB, free: 27.99 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/9.374, allocations: 3.797 kB / 4.5 GB, free: 27.99 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009655/9.384, allocations: 3.827 MB / 4.504 GB, free: 27.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/9.384, allocations: 2.906 kB / 4.504 GB, free: 27.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008629/9.385, allocations: 174.7 kB / 4.504 GB, free: 27.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00138/9.386, allocations: 325.1 kB / 4.504 GB, free: 27.18 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/9.387, allocations: 26.38 kB / 4.504 GB, free: 27.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008835/9.387, allocations: 0.8369 MB / 4.505 GB, free: 26.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/9.388, allocations: 11.28 kB / 4.505 GB, free: 26.64 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00461/9.392, allocations: 2.478 MB / 4.508 GB, free: 26.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008846/9.393, allocations: 322.3 kB / 4.508 GB, free: 25.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000337/9.393, allocations: 14.22 kB / 4.508 GB, free: 25.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/9.395, allocations: 70.58 kB / 4.508 GB, free: 25.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/9.395, allocations: 61.25 kB / 4.508 GB, free: 25.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/9.395, allocations: 55.06 kB / 4.508 GB, free: 25.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0007057/9.396, allocations: 428.8 kB / 4.509 GB, free: 25.86 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00571/9.401, allocations: 1.212 MB / 4.51 GB, free: 25.65 MB / 458.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.00652/9.408, allocations: 2.085 MB / 4.512 GB, free: 25.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005383/9.413, allocations: 2.304 MB / 4.514 GB, free: 25 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/9.413, allocations: 6.312 kB / 4.514 GB, free: 25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/9.415, allocations: 0.6624 MB / 4.515 GB, free: 24.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/9.417, allocations: 369.7 kB / 4.515 GB, free: 24.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006243/9.423, allocations: 2.055 MB / 4.517 GB, free: 24.51 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/9.425, allocations: 1.272 MB / 4.518 GB, free: 23.79 MB / 458.7 MB Notification: Performance of SimCode: time 1.022e-06/9.425, allocations: 0 / 4.518 GB, free: 23.79 MB / 458.7 MB Notification: Performance of Templates: time 0.07271/9.498, allocations: 45.33 MB / 4.563 GB, free: 3.305 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches