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.001522/0.001522, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.331/1.331, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0008992/0.0008992, allocations: 92.23 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.96e-05/1.963e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09661/0.09665, allocations: 50.42 MB / 387.5 MB, free: 7.586 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.875/9.972, allocations: 3.552 GB / 3.93 GB, free: 69.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/9.972, allocations: 83.95 kB / 3.93 GB, free: 69.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.402/12.37, allocations: 0.5299 GB / 4.46 GB, free: 43.58 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.713e-06/12.37, allocations: 0 / 4.46 GB, free: 43.58 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.732e-05/12.37, allocations: 28.22 kB / 4.46 GB, free: 43.57 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.01488/12.39, allocations: 2.86 MB / 4.463 GB, free: 41.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.85e-05/12.39, allocations: 11.42 kB / 4.463 GB, free: 41.71 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009714/12.39, allocations: 134 kB / 4.463 GB, free: 41.65 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001816/12.39, allocations: 0.7296 MB / 4.464 GB, free: 41.21 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/12.39, allocations: 96.66 kB / 4.464 GB, free: 41.14 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001773/12.39, allocations: 53.78 kB / 4.464 GB, free: 41.14 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002242/12.39, allocations: 1.285 MB / 4.465 GB, free: 40.71 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/12.4, allocations: 1.295 MB / 4.466 GB, free: 40.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/12.4, allocations: 0 / 4.466 GB, free: 40.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/12.4, allocations: 15.11 kB / 4.466 GB, free: 40.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001019/12.4, allocations: 66.83 kB / 4.467 GB, free: 40.11 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or 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.008086/12.41, allocations: 6.351 MB / 4.473 GB, free: 35.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/12.41, allocations: 0.8473 MB / 4.474 GB, free: 35.23 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/12.41, allocations: 459.8 kB / 4.474 GB, free: 35.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009166/12.41, allocations: 1.305 MB / 4.475 GB, free: 33.62 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/12.41, allocations: 48.84 kB / 4.475 GB, free: 33.57 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005296/12.41, allocations: 75.19 kB / 4.475 GB, free: 33.53 MB / 458.7 MB Notification: Performance of pre-optimization done (n=78): time 2.916e-06/12.41, allocations: 0 / 4.475 GB, free: 33.53 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01329/12.42, allocations: 4.111 MB / 4.479 GB, free: 30.48 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.94e-05/12.42, allocations: 111.6 kB / 4.48 GB, free: 30.35 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007692/12.42, allocations: 0.5442 MB / 4.48 GB, free: 29.85 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.159e-05/12.42, allocations: 25.7 kB / 4.48 GB, free: 29.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002813/12.42, allocations: 480.4 kB / 4.481 GB, free: 29.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002264/12.42, allocations: 306.6 kB / 4.481 GB, free: 29.11 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.961e-05/12.42, allocations: 4 kB / 4.481 GB, free: 29.11 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/12.42, allocations: 397.4 kB / 4.481 GB, free: 28.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006887/12.42, allocations: 0.5315 MB / 4.482 GB, free: 28.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008355/12.43, allocations: 0.857 MB / 4.483 GB, free: 27.32 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002402/12.43, allocations: 0.9735 MB / 4.484 GB, free: 26.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/12.43, allocations: 4 kB / 4.484 GB, free: 26.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003763/12.43, allocations: 1.91 MB / 4.485 GB, free: 24.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009856/12.43, allocations: 3.985 MB / 4.489 GB, free: 20.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/12.43, allocations: 8 kB / 4.489 GB, free: 20.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009842/12.43, allocations: 244.7 kB / 4.49 GB, free: 20.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/12.43, allocations: 265.2 kB / 4.49 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007874/12.44, allocations: 0.8392 MB / 4.491 GB, free: 19.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001185/12.44, allocations: 88.02 kB / 4.491 GB, free: 19.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001405/12.44, allocations: 75.45 kB / 4.491 GB, free: 19.26 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.115e-05/12.44, allocations: 8.562 kB / 4.491 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003562/12.44, allocations: 1.766 MB / 4.492 GB, free: 17.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/12.44, allocations: 8 kB / 4.492 GB, free: 17.76 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008604/12.44, allocations: 254.6 kB / 4.493 GB, free: 17.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009457/12.44, allocations: 261.8 kB / 4.493 GB, free: 17.35 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007018/12.44, allocations: 0.8378 MB / 4.494 GB, free: 16.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00106/12.44, allocations: 82.33 kB / 4.494 GB, free: 16.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/12.44, allocations: 70.89 kB / 4.494 GB, free: 16.4 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.0003662/12.44, allocations: 140.6 kB / 4.494 GB, free: 16.26 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/12.44, allocations: 86.97 kB / 4.494 GB, free: 16.17 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003492/12.45, allocations: 1.755 MB / 4.496 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/12.45, allocations: 8 kB / 4.496 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/12.45, allocations: 0 / 4.496 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/12.45, allocations: 3.984 kB / 4.496 GB, free: 14.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007183/12.46, allocations: 3.699 MB / 4.499 GB, free: 10.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/12.46, allocations: 7.953 kB / 4.5 GB, free: 10.71 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007381/12.46, allocations: 171.8 kB / 4.5 GB, free: 10.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/12.46, allocations: 314.6 kB / 4.5 GB, free: 10.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.663e-05/12.46, allocations: 31.97 kB / 4.5 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006825/12.46, allocations: 0.8043 MB / 4.501 GB, free: 9.379 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/12.46, allocations: 8 kB / 4.501 GB, free: 9.371 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003702/12.46, allocations: 2.384 MB / 4.503 GB, free: 6.863 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005866/12.46, allocations: 331.7 kB / 4.503 GB, free: 6.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/12.46, allocations: 11.98 kB / 4.503 GB, free: 6.508 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008732/12.46, allocations: 63.88 kB / 4.504 GB, free: 6.445 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.686e-05/12.46, allocations: 68.64 kB / 4.504 GB, free: 6.379 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/12.46, allocations: 55.95 kB / 4.504 GB, free: 6.324 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004936/12.46, allocations: 423.1 kB / 4.504 GB, free: 5.918 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/12.46, allocations: 0 / 4.504 GB, free: 5.918 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004721/12.47, allocations: 1.21 MB / 4.505 GB, free: 4.707 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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.004461/12.47, allocations: 2.054 MB / 4.507 GB, free: 2.887 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00341/12.48, allocations: 2.354 MB / 4.51 GB, free: 496 kB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/12.48, allocations: 6.062 kB / 4.51 GB, free: 488 kB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009846/12.48, allocations: 0.6359 MB / 4.51 GB, free: 15.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/12.48, allocations: 385.5 kB / 4.511 GB, free: 15.48 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/12.49, allocations: 1.945 MB / 4.512 GB, free: 13.48 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007451/12.49, allocations: 1.139 MB / 4.514 GB, free: 12.32 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00231/12.49, allocations: 0.6508 MB / 4.514 GB, free: 11.68 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003245/12.49, allocations: 103.4 kB / 4.514 GB, free: 11.59 MB / 474.7 MB Notification: Performance of SimCode: time 1.082e-06/12.49, allocations: 0 / 4.514 GB, free: 11.59 MB / 474.7 MB Notification: Performance of Templates: time 0.4438/12.93, allocations: 38.25 MB / 4.552 GB, free: 57.91 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/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