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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 177.2 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.3 MB / 241.4 MB, free: 11.7 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008026/0.0008026, allocations: 96.58 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003502, allocations: 11.98 kB / 352.3 MB, free: 15.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.2363, allocations: 50.4 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.355/7.591, allocations: 3.553 GB / 3.946 GB, free: 166.8 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/7.592, allocations: 89 kB / 3.946 GB, free: 166.8 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.76/9.352, allocations: 0.5315 GB / 4.478 GB, free: 2.84 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.583e-06/9.352, allocations: 0 / 4.478 GB, free: 2.84 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.396e-05/9.352, allocations: 27.98 kB / 4.478 GB, free: 2.812 MB / 474.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.2654/9.617, allocations: 2.94 MB / 4.481 GB, free: 47.4 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.661e-05/9.617, allocations: 9.609 kB / 4.481 GB, free: 47.4 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008979/9.618, allocations: 129.2 kB / 4.481 GB, free: 47.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/9.62, allocations: 0.743 MB / 4.481 GB, free: 47.1 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001337/9.62, allocations: 132.6 kB / 4.482 GB, free: 47.04 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001787/9.62, allocations: 88.83 kB / 4.482 GB, free: 47.04 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002194/9.622, allocations: 1.451 MB / 4.483 GB, free: 46.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.165e-05/9.622, allocations: 6.906 kB / 4.483 GB, free: 46.8 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/9.622, allocations: 42.56 kB / 4.483 GB, free: 46.8 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.824e-05/9.622, allocations: 64.38 kB / 4.483 GB, free: 46.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/9.624, allocations: 1.441 MB / 4.485 GB, free: 46.79 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006751/9.631, allocations: 6.013 MB / 4.49 GB, free: 43.85 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001476/9.633, allocations: 0.9763 MB / 4.491 GB, free: 43.82 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006548/9.633, allocations: 0.5126 MB / 4.492 GB, free: 43.81 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001016/9.634, allocations: 1.807 MB / 4.494 GB, free: 41.84 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/9.634, allocations: 46.03 kB / 4.494 GB, free: 41.8 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004899/9.635, allocations: 106.1 kB / 4.494 GB, free: 41.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=84): time 3.396e-06/9.635, allocations: 2.875 kB / 4.494 GB, free: 41.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=96): time 0.0144/9.649, allocations: 5.134 MB / 4.499 GB, free: 41.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/9.649, allocations: 114.7 kB / 4.499 GB, free: 41.07 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008699/9.65, allocations: 0.7767 MB / 4.5 GB, free: 40.93 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.852e-05/9.65, allocations: 47.52 kB / 4.5 GB, free: 40.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/9.651, allocations: 451.1 kB / 4.5 GB, free: 40.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/9.651, allocations: 339.2 kB / 4.5 GB, free: 40.54 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-05/9.651, allocations: 25.47 kB / 4.5 GB, free: 40.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/9.651, allocations: 408.7 kB / 4.501 GB, free: 40.23 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001082/9.652, allocations: 0.596 MB / 4.501 GB, free: 40.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/9.653, allocations: 0.9484 MB / 4.502 GB, free: 39.85 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/9.656, allocations: 1.637 MB / 4.504 GB, free: 39.41 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/9.656, allocations: 3.562 kB / 4.504 GB, free: 39.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003437/9.659, allocations: 1.91 MB / 4.506 GB, free: 39.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001818/9.659, allocations: 439.5 kB / 4.506 GB, free: 38.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/9.659, allocations: 15.34 kB / 4.506 GB, free: 38.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/9.661, allocations: 331.8 kB / 4.507 GB, free: 38.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/9.662, allocations: 271 kB / 4.507 GB, free: 38.73 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/9.663, allocations: 0.9243 MB / 4.508 GB, free: 38.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/9.664, allocations: 109.3 kB / 4.508 GB, free: 38.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/9.664, allocations: 70.52 kB / 4.508 GB, free: 38.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/9.664, allocations: 3.625 kB / 4.508 GB, free: 38.2 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003047/9.668, allocations: 1.793 MB / 4.51 GB, free: 38.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/9.668, allocations: 10.97 kB / 4.51 GB, free: 38.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/9.669, allocations: 340.2 kB / 4.51 GB, free: 38.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009678/9.67, allocations: 272.4 kB / 4.51 GB, free: 38.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/9.671, allocations: 0.9254 MB / 4.511 GB, free: 37.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/9.672, allocations: 103.7 kB / 4.511 GB, free: 37.58 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/9.672, allocations: 69.44 kB / 4.511 GB, free: 37.58 MB / 474.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 () * Number of clocked 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.0006304/9.673, allocations: 424.4 kB / 4.512 GB, free: 37.39 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/9.673, allocations: 100.9 kB / 4.512 GB, free: 37.34 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003208/9.676, allocations: 1.957 MB / 4.514 GB, free: 37.22 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/9.676, allocations: 14.31 kB / 4.514 GB, free: 37.22 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/9.676, allocations: 0 / 4.514 GB, free: 37.22 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/9.676, allocations: 7.594 kB / 4.514 GB, free: 37.22 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004427/9.681, allocations: 3.093 MB / 4.517 GB, free: 36.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/9.681, allocations: 3.656 kB / 4.517 GB, free: 36.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007835/9.682, allocations: 181.8 kB / 4.517 GB, free: 36.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/9.683, allocations: 403.2 kB / 4.517 GB, free: 36.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.334e-05/9.683, allocations: 41.33 kB / 4.517 GB, free: 36.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/9.685, allocations: 0.8911 MB / 4.518 GB, free: 36.19 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/9.685, allocations: 3.656 kB / 4.518 GB, free: 36.19 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/9.688, allocations: 2.378 MB / 4.521 GB, free: 35.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005611/9.689, allocations: 333.1 kB / 4.521 GB, free: 35.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/9.689, allocations: 26.03 kB / 4.521 GB, free: 35.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008843/9.69, allocations: 83.41 kB / 4.521 GB, free: 35.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/9.69, allocations: 69.33 kB / 4.521 GB, free: 35.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/9.69, allocations: 52.83 kB / 4.521 GB, free: 35.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00061/9.691, allocations: 0.55 MB / 4.522 GB, free: 35.66 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.91e-07/9.691, allocations: 0 / 4.522 GB, free: 35.66 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003671/9.694, allocations: 1.304 MB / 4.523 GB, free: 35.65 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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.003325/9.698, allocations: 1.892 MB / 4.525 GB, free: 35.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004124/9.702, allocations: 2.602 MB / 4.527 GB, free: 35.19 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/9.702, allocations: 4.344 kB / 4.527 GB, free: 35.18 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001124/9.703, allocations: 0.7217 MB / 4.528 GB, free: 35.18 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/9.705, allocations: 0.4911 MB / 4.529 GB, free: 35.17 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004362/9.71, allocations: 2.926 MB / 4.531 GB, free: 34.17 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/9.71, allocations: 1.118 MB / 4.532 GB, free: 33.46 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001923/9.712, allocations: 0.7004 MB / 4.533 GB, free: 33.44 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/9.712, allocations: 111.8 kB / 4.533 GB, free: 33.43 MB / 474.7 MB Notification: Performance of SimCode: time 8.82e-07/9.712, allocations: 0 / 4.533 GB, free: 33.43 MB / 474.7 MB Notification: Performance of Templates: time 0.05976/9.772, allocations: 48.63 MB / 4.581 GB, free: 31.57 MB / 474.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/jenkins1/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