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.007074/0.007074, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001249/0.001249, allocations: 88.55 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.035e-05/2.045e-05, allocations: 0 / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.355, allocations: 47.56 MB / 362.3 MB, free: 45.79 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.35/10.7, allocations: 3.611 GB / 3.965 GB, free: 117.2 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/10.7, allocations: 87.64 kB / 3.965 GB, free: 117.2 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.303/14.01, allocations: 0.5464 GB / 4.512 GB, free: 39.54 MB / 443.1 MB Notification: Performance of FrontEnd: time 1.954e-06/14.01, allocations: 0 / 4.512 GB, free: 39.54 MB / 443.1 MB Notification: Performance of Transformations before backend: time 9.953e-05/14.01, allocations: 28.91 kB / 4.512 GB, free: 39.53 MB / 443.1 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.01325/14.02, allocations: 2.989 MB / 4.515 GB, free: 37.99 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/14.02, allocations: 7.062 kB / 4.515 GB, free: 37.99 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000905/14.02, allocations: 125.3 kB / 4.515 GB, free: 37.93 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00232/14.02, allocations: 0.7301 MB / 4.515 GB, free: 37.65 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/14.03, allocations: 100.1 kB / 4.515 GB, free: 37.59 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002359/14.03, allocations: 55.55 kB / 4.515 GB, free: 37.58 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003148/14.03, allocations: 1.287 MB / 4.517 GB, free: 37.58 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/14.03, allocations: 1.307 MB / 4.518 GB, free: 37.35 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.451e-05/14.03, allocations: 9.359 kB / 4.518 GB, free: 37.35 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/14.03, allocations: 3.219 kB / 4.518 GB, free: 37.35 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001267/14.03, allocations: 69.59 kB / 4.518 GB, free: 37.34 MB / 443.1 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.01308/14.04, allocations: 6.357 MB / 4.524 GB, free: 33.84 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/14.05, allocations: 0.8589 MB / 4.525 GB, free: 33.81 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009421/14.05, allocations: 461.9 kB / 4.526 GB, free: 33.8 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001266/14.05, allocations: 1.242 MB / 4.527 GB, free: 32.49 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/14.05, allocations: 44.66 kB / 4.527 GB, free: 32.45 MB / 443.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007787/14.05, allocations: 77.28 kB / 4.527 GB, free: 32.41 MB / 443.1 MB Notification: Performance of pre-optimization done (n=78): time 4.309e-06/14.05, allocations: 0 / 4.527 GB, free: 32.41 MB / 443.1 MB Notification: Performance of matching and sorting (n=90): time 0.02472/14.08, allocations: 4.254 MB / 4.531 GB, free: 31.94 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/14.08, allocations: 113.4 kB / 4.531 GB, free: 31.82 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/14.08, allocations: 0.5441 MB / 4.532 GB, free: 31.68 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002178/14.08, allocations: 29.17 kB / 4.532 GB, free: 31.65 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/14.08, allocations: 0.4987 MB / 4.532 GB, free: 31.32 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003416/14.08, allocations: 313.2 kB / 4.533 GB, free: 31.11 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/14.08, allocations: 0 / 4.533 GB, free: 31.11 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/14.08, allocations: 366.7 kB / 4.533 GB, free: 30.8 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/14.08, allocations: 0.5345 MB / 4.533 GB, free: 30.8 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/14.08, allocations: 0.8601 MB / 4.534 GB, free: 30.41 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008235/14.09, allocations: 1.341 MB / 4.536 GB, free: 30.4 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.671e-05/14.09, allocations: 6.969 kB / 4.536 GB, free: 30.4 MB / 443.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.01093/14.1, allocations: 2.25 MB / 4.538 GB, free: 30.31 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009708/14.1, allocations: 3.981 MB / 4.542 GB, free: 26.16 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.22e-05/14.1, allocations: 11.03 kB / 4.542 GB, free: 26.16 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001615/14.1, allocations: 248.5 kB / 4.542 GB, free: 26.16 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002267/14.1, allocations: 274.9 kB / 4.542 GB, free: 26.16 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/14.11, allocations: 0.8348 MB / 4.543 GB, free: 25.63 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/14.11, allocations: 84.16 kB / 4.543 GB, free: 25.62 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002358/14.11, allocations: 83.23 kB / 4.543 GB, free: 25.62 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/14.11, allocations: 3.688 kB / 4.543 GB, free: 25.62 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01042/14.12, allocations: 2.14 MB / 4.545 GB, free: 25.56 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/14.12, allocations: 10.28 kB / 4.545 GB, free: 25.56 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001511/14.12, allocations: 243.4 kB / 4.545 GB, free: 25.55 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002078/14.12, allocations: 274.5 kB / 4.546 GB, free: 25.53 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/14.12, allocations: 0.8388 MB / 4.547 GB, free: 25 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/14.13, allocations: 85.73 kB / 4.547 GB, free: 24.99 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002153/14.13, allocations: 80.64 kB / 4.547 GB, free: 24.99 MB / 443.1 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.0005042/14.13, allocations: 145.1 kB / 4.547 GB, free: 24.86 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/14.13, allocations: 80.16 kB / 4.547 GB, free: 24.82 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006094/14.13, allocations: 1.754 MB / 4.549 GB, free: 24.68 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/14.13, allocations: 14.41 kB / 4.549 GB, free: 24.68 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/14.13, allocations: 0 / 4.549 GB, free: 24.68 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/14.13, allocations: 6.797 kB / 4.549 GB, free: 24.68 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/14.15, allocations: 3.735 MB / 4.552 GB, free: 23.87 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/14.15, allocations: 2.281 kB / 4.552 GB, free: 23.87 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001545/14.15, allocations: 173.6 kB / 4.552 GB, free: 23.86 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002149/14.15, allocations: 316 kB / 4.553 GB, free: 23.85 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/14.15, allocations: 25.16 kB / 4.553 GB, free: 23.85 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/14.15, allocations: 0.8107 MB / 4.554 GB, free: 23.32 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/14.15, allocations: 9.406 kB / 4.554 GB, free: 23.32 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006385/14.16, allocations: 2.426 MB / 4.556 GB, free: 22.79 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009398/14.16, allocations: 323.4 kB / 4.556 GB, free: 22.65 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002409/14.16, allocations: 15.41 kB / 4.556 GB, free: 22.65 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001635/14.16, allocations: 61.75 kB / 4.556 GB, free: 22.65 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/14.16, allocations: 72.41 kB / 4.556 GB, free: 22.64 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/14.16, allocations: 62.39 kB / 4.556 GB, free: 22.64 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0007233/14.16, allocations: 419.2 kB / 4.557 GB, free: 22.55 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.533e-06/14.16, allocations: 0 / 4.557 GB, free: 22.55 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.006202/14.17, allocations: 1.275 MB / 4.558 GB, free: 22.32 MB / 443.1 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.006939/14.17, allocations: 2.186 MB / 4.56 GB, free: 21.84 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.0057/14.18, allocations: 2.351 MB / 4.563 GB, free: 21.24 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/14.18, allocations: 3.531 kB / 4.563 GB, free: 21.24 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/14.18, allocations: 0.6281 MB / 4.563 GB, free: 21.02 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003462/14.18, allocations: 389.2 kB / 4.564 GB, free: 20.95 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006649/14.19, allocations: 2.021 MB / 4.566 GB, free: 20.14 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007868/14.19, allocations: 1.134 MB / 4.567 GB, free: 19.39 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009094/14.19, allocations: 128.9 kB / 4.567 GB, free: 19.37 MB / 443.1 MB Notification: Performance of SimCode: time 1.032e-06/14.19, allocations: 0 / 4.567 GB, free: 19.37 MB / 443.1 MB Notification: Performance of Templates: time 0.07299/14.27, allocations: 35.6 MB / 4.602 GB, free: 14.67 MB / 459.1 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