Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.0009217/0.0009218, allocations: 180.9 kB / 17.41 MB, free: 4.297 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.444/1.444, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007831/0.0007831, allocations: 89.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003208, allocations: 12 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2708, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.466/8.737, allocations: 3.612 GB / 3.979 GB, free: 108.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003354/8.738, allocations: 87.97 kB / 3.979 GB, free: 108.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.236/10.97, allocations: 0.5473 GB / 4.527 GB, free: 38.48 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.234e-06/10.97, allocations: 4 kB / 4.527 GB, free: 38.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001643/10.97, allocations: 26.72 kB / 4.527 GB, free: 38.47 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.0146/10.99, allocations: 3.083 MB / 4.53 GB, free: 36.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/10.99, allocations: 9.938 kB / 4.53 GB, free: 36.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00109/10.99, allocations: 125.4 kB / 4.53 GB, free: 36.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/10.99, allocations: 0.737 MB / 4.53 GB, free: 35.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001917/10.99, allocations: 138 kB / 4.531 GB, free: 35.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004481/10.99, allocations: 92.64 kB / 4.531 GB, free: 35.86 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003198/11, allocations: 1.457 MB / 4.532 GB, free: 35.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/11, allocations: 0 / 4.532 GB, free: 35.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002066/11, allocations: 49.23 kB / 4.532 GB, free: 35.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/11, allocations: 57.52 kB / 4.532 GB, free: 35.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002591/11, allocations: 1.454 MB / 4.534 GB, free: 34.69 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.01196/11.01, allocations: 6.043 MB / 4.539 GB, free: 29.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/11.01, allocations: 0.9606 MB / 4.54 GB, free: 28.98 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000905/11.01, allocations: 0.5119 MB / 4.541 GB, free: 28.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001656/11.02, allocations: 2.076 MB / 4.543 GB, free: 26.14 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/11.02, allocations: 51.56 kB / 4.543 GB, free: 26.08 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007668/11.02, allocations: 102.7 kB / 4.543 GB, free: 25.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 6.642e-06/11.02, allocations: 0 / 4.543 GB, free: 25.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.01702/11.03, allocations: 5.162 MB / 4.548 GB, free: 21.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/11.03, allocations: 115.8 kB / 4.548 GB, free: 21.45 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/11.04, allocations: 0.7698 MB / 4.549 GB, free: 20.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002181/11.04, allocations: 49.7 kB / 4.549 GB, free: 20.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003315/11.04, allocations: 448 kB / 4.549 GB, free: 20.33 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003329/11.04, allocations: 343.2 kB / 4.55 GB, free: 20.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/11.04, allocations: 28 kB / 4.55 GB, free: 20 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000171/11.04, allocations: 403 kB / 4.55 GB, free: 19.62 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/11.04, allocations: 0.5977 MB / 4.551 GB, free: 19.12 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/11.04, allocations: 0.9528 MB / 4.552 GB, free: 18.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002543/11.04, allocations: 1.632 MB / 4.553 GB, free: 16.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/11.04, allocations: 7.938 kB / 4.553 GB, free: 16.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003679/11.05, allocations: 1.913 MB / 4.555 GB, free: 14.78 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003087/11.05, allocations: 442.7 kB / 4.556 GB, free: 14.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.693e-05/11.05, allocations: 19.78 kB / 4.556 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/11.05, allocations: 325.3 kB / 4.556 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/11.05, allocations: 276.7 kB / 4.556 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/11.05, allocations: 0.9291 MB / 4.557 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/11.05, allocations: 112.7 kB / 4.557 GB, free: 12.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/11.05, allocations: 77.7 kB / 4.557 GB, free: 12.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/11.05, allocations: 4 kB / 4.557 GB, free: 12.66 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00329/11.05, allocations: 1.795 MB / 4.559 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/11.05, allocations: 12.59 kB / 4.559 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/11.06, allocations: 332.8 kB / 4.559 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/11.06, allocations: 278.3 kB / 4.56 GB, free: 10.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/11.06, allocations: 0.9309 MB / 4.561 GB, free: 9.578 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001288/11.06, allocations: 107.8 kB / 4.561 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001748/11.06, allocations: 75.97 kB / 4.561 GB, free: 9.398 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.0008562/11.06, allocations: 420.6 kB / 4.561 GB, free: 8.977 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003075/11.06, allocations: 98.88 kB / 4.561 GB, free: 8.879 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003664/11.06, allocations: 1.929 MB / 4.563 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/11.06, allocations: 8 kB / 4.563 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/11.06, allocations: 0 / 4.563 GB, free: 6.918 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/11.06, allocations: 3.984 kB / 4.563 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00506/11.07, allocations: 3.004 MB / 4.566 GB, free: 3.863 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/11.07, allocations: 0 / 4.566 GB, free: 3.863 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/11.07, allocations: 183.8 kB / 4.566 GB, free: 3.684 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001755/11.07, allocations: 399.8 kB / 4.567 GB, free: 3.293 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/11.07, allocations: 35.98 kB / 4.567 GB, free: 3.258 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/11.07, allocations: 0.9035 MB / 4.568 GB, free: 2.328 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/11.07, allocations: 3.938 kB / 4.568 GB, free: 2.324 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004053/11.08, allocations: 2.373 MB / 4.57 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008939/11.08, allocations: 335.7 kB / 4.57 GB, free: 15.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003271/11.08, allocations: 28 kB / 4.57 GB, free: 15.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/11.08, allocations: 79.94 kB / 4.57 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/11.08, allocations: 72.83 kB / 4.57 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/11.08, allocations: 59.97 kB / 4.57 GB, free: 15.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009427/11.08, allocations: 0.5458 MB / 4.571 GB, free: 14.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.71e-07/11.08, allocations: 0 / 4.571 GB, free: 14.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005718/11.09, allocations: 1.353 MB / 4.572 GB, free: 13.44 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.006484/11.09, allocations: 2.025 MB / 4.574 GB, free: 11.61 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005954/11.1, allocations: 2.616 MB / 4.577 GB, free: 8.949 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/11.1, allocations: 448 / 4.577 GB, free: 8.949 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001672/11.1, allocations: 0.7207 MB / 4.577 GB, free: 8.227 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003383/11.1, allocations: 0.5054 MB / 4.578 GB, free: 7.734 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006895/11.11, allocations: 2.981 MB / 4.581 GB, free: 4.715 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001222/11.11, allocations: 1.119 MB / 4.582 GB, free: 3.566 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006762/11.11, allocations: 139.4 kB / 4.582 GB, free: 3.43 MB / 458.7 MB Notification: Performance of SimCode: time 1.893e-06/11.11, allocations: 0 / 4.582 GB, free: 3.43 MB / 458.7 MB Notification: Performance of Templates: time 0.3655/11.48, allocations: 36.13 MB / 4.617 GB, free: 48.13 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches