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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001863/0.001863, allocations: 180.7 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009494/0.0009493, allocations: 100.1 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002723, allocations: 4 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2825, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.14/10.42, allocations: 3.612 GB / 3.979 GB, free: 110.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002604/10.42, allocations: 89.36 kB / 3.979 GB, free: 110.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254/12.67, allocations: 0.5526 GB / 4.532 GB, free: 36.53 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.593e-06/12.67, allocations: 0 / 4.532 GB, free: 36.53 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001342/12.67, allocations: 27.38 kB / 4.532 GB, free: 36.52 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.0129/12.69, allocations: 3.092 MB / 4.535 GB, free: 34.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/12.69, allocations: 9.406 kB / 4.535 GB, free: 34.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009506/12.69, allocations: 130.6 kB / 4.535 GB, free: 34.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/12.69, allocations: 0.7205 MB / 4.536 GB, free: 34.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/12.69, allocations: 132.5 kB / 4.536 GB, free: 33.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000353/12.69, allocations: 95.5 kB / 4.536 GB, free: 33.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002603/12.69, allocations: 1.446 MB / 4.537 GB, free: 33.28 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/12.69, allocations: 3.375 kB / 4.537 GB, free: 33.28 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000164/12.69, allocations: 36.47 kB / 4.537 GB, free: 33.26 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.599e-05/12.69, allocations: 71.8 kB / 4.537 GB, free: 33.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002249/12.7, allocations: 1.443 MB / 4.539 GB, free: 32.36 MB / 442.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.008253/12.7, allocations: 6.068 MB / 4.545 GB, free: 26.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/12.71, allocations: 0.9641 MB / 4.546 GB, free: 25.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001204/12.71, allocations: 1.743 MB / 4.547 GB, free: 23.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/12.71, allocations: 55.27 kB / 4.547 GB, free: 23.89 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006131/12.71, allocations: 110.5 kB / 4.547 GB, free: 23.78 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 4.339e-06/12.71, allocations: 0 / 4.547 GB, free: 23.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.01666/12.72, allocations: 5.145 MB / 4.552 GB, free: 19.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/12.72, allocations: 111.8 kB / 4.553 GB, free: 19.28 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/12.73, allocations: 0.6922 MB / 4.553 GB, free: 18.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002372/12.73, allocations: 45.7 kB / 4.553 GB, free: 18.63 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003856/12.73, allocations: 452.3 kB / 4.554 GB, free: 18.22 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/12.73, allocations: 343.4 kB / 4.554 GB, free: 17.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/12.73, allocations: 27.94 kB / 4.554 GB, free: 17.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001925/12.73, allocations: 405.5 kB / 4.554 GB, free: 17.52 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/12.73, allocations: 0.6011 MB / 4.555 GB, free: 17.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/12.73, allocations: 0.9413 MB / 4.556 GB, free: 16.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/12.73, allocations: 0.7822 MB / 4.557 GB, free: 15.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/12.73, allocations: 4 kB / 4.557 GB, free: 15.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003778/12.73, allocations: 1.906 MB / 4.559 GB, free: 13.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009523/12.74, allocations: 3.977 MB / 4.562 GB, free: 9.324 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.527e-05/12.74, allocations: 12 kB / 4.562 GB, free: 9.312 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/12.74, allocations: 332.3 kB / 4.563 GB, free: 9.062 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/12.74, allocations: 276.6 kB / 4.563 GB, free: 8.832 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/12.74, allocations: 0.9301 MB / 4.564 GB, free: 7.941 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/12.74, allocations: 112.4 kB / 4.564 GB, free: 7.852 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/12.74, allocations: 84.47 kB / 4.564 GB, free: 7.781 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/12.74, allocations: 7.938 kB / 4.564 GB, free: 7.773 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003149/12.74, allocations: 1.796 MB / 4.566 GB, free: 6.109 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/12.74, allocations: 12 kB / 4.566 GB, free: 6.098 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/12.75, allocations: 327.7 kB / 4.566 GB, free: 5.781 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/12.75, allocations: 275.6 kB / 4.566 GB, free: 5.512 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/12.75, allocations: 0.927 MB / 4.567 GB, free: 4.559 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/12.75, allocations: 103.8 kB / 4.567 GB, free: 4.457 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001636/12.75, allocations: 87.95 kB / 4.568 GB, free: 4.371 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 () * 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.000719/12.75, allocations: 414.5 kB / 4.568 GB, free: 3.957 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/12.75, allocations: 94.88 kB / 4.568 GB, free: 3.863 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003511/12.75, allocations: 1.932 MB / 4.57 GB, free: 1.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/12.75, allocations: 19.89 kB / 4.57 GB, free: 1.891 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/12.75, allocations: 0 / 4.57 GB, free: 1.891 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/12.75, allocations: 7.984 kB / 4.57 GB, free: 1.883 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00521/12.76, allocations: 3.002 MB / 4.573 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/12.76, allocations: 7.984 kB / 4.573 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000879/12.76, allocations: 179.8 kB / 4.573 GB, free: 14.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/12.76, allocations: 399.3 kB / 4.573 GB, free: 14.25 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/12.76, allocations: 39.97 kB / 4.573 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001488/12.76, allocations: 0.8957 MB / 4.574 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/12.76, allocations: 4.031 kB / 4.574 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004871/12.77, allocations: 2.447 MB / 4.577 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/12.77, allocations: 339.7 kB / 4.577 GB, free: 10.42 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003567/12.77, allocations: 27.98 kB / 4.577 GB, free: 10.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/12.77, allocations: 75.94 kB / 4.577 GB, free: 10.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/12.77, allocations: 76.83 kB / 4.577 GB, free: 10.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002043/12.77, allocations: 67.95 kB / 4.577 GB, free: 10.17 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001181/12.77, allocations: 0.5419 MB / 4.578 GB, free: 9.633 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.21e-07/12.77, allocations: 0 / 4.578 GB, free: 9.633 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008974/12.78, allocations: 1.35 MB / 4.579 GB, free: 8.285 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.008499/12.79, allocations: 2.03 MB / 4.581 GB, free: 6.379 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005883/12.8, allocations: 2.631 MB / 4.584 GB, free: 3.707 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/12.8, allocations: 448 / 4.584 GB, free: 3.707 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/12.8, allocations: 0.7291 MB / 4.584 GB, free: 2.977 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/12.8, allocations: 496.5 kB / 4.585 GB, free: 2.504 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3232/13.12, allocations: 2.902 MB / 4.588 GB, free: 51.86 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/13.13, allocations: 1.142 MB / 4.589 GB, free: 51.15 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002562/13.13, allocations: 0.599 MB / 4.589 GB, free: 51.14 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004155/13.13, allocations: 125.4 kB / 4.59 GB, free: 51.14 MB / 458.7 MB Notification: Performance of SimCode: time 1.382e-06/13.13, allocations: 1.531 kB / 4.59 GB, free: 51.14 MB / 458.7 MB Notification: Performance of Templates: time 0.07754/13.21, allocations: 48.97 MB / 4.637 GB, free: 49.44 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