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.001578/0.001582, allocations: 180.9 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001195/0.001195, allocations: 93.92 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.418e-05/3.437e-05, allocations: 4 kB / 321.5 MB, free: 17.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 47.58 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.71/10.82, allocations: 3.612 GB / 3.972 GB, free: 116.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/10.82, allocations: 82.97 kB / 3.972 GB, free: 116.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.262/14.08, allocations: 0.5516 GB / 4.524 GB, free: 35.87 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.735e-06/14.08, allocations: 0 / 4.524 GB, free: 35.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001242/14.08, allocations: 25.5 kB / 4.524 GB, free: 35.87 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.0179/14.1, allocations: 2.989 MB / 4.527 GB, free: 34.19 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.585e-05/14.1, allocations: 14.72 kB / 4.527 GB, free: 34.19 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001497/14.1, allocations: 128.6 kB / 4.527 GB, free: 34.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003279/14.1, allocations: 0.7207 MB / 4.528 GB, free: 33.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002215/14.1, allocations: 133.4 kB / 4.528 GB, free: 33.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003631/14.1, allocations: 95.45 kB / 4.528 GB, free: 33.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005011/14.11, allocations: 1.436 MB / 4.529 GB, free: 33.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.415e-05/14.11, allocations: 10.39 kB / 4.529 GB, free: 33.51 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002542/14.11, allocations: 40.34 kB / 4.529 GB, free: 33.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001721/14.11, allocations: 62.22 kB / 4.529 GB, free: 33.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005077/14.11, allocations: 1.418 MB / 4.531 GB, free: 33.48 MB / 442.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.0191/14.13, allocations: 6.054 MB / 4.537 GB, free: 30.47 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005525/14.14, allocations: 0.947 MB / 4.538 GB, free: 30.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002522/14.14, allocations: 0.5137 MB / 4.538 GB, free: 30.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003173/14.14, allocations: 1.742 MB / 4.54 GB, free: 28.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000106/14.14, allocations: 47.78 kB / 4.54 GB, free: 28.51 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001633/14.15, allocations: 109.7 kB / 4.54 GB, free: 28.46 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 9.177e-06/14.15, allocations: 0 / 4.54 GB, free: 28.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.05733/14.2, allocations: 4.421 MB / 4.544 GB, free: 27.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/14.2, allocations: 121.1 kB / 4.544 GB, free: 27.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002075/14.21, allocations: 0.6741 MB / 4.545 GB, free: 27.69 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003607/14.21, allocations: 52.2 kB / 4.545 GB, free: 27.65 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004914/14.21, allocations: 473.8 kB / 4.546 GB, free: 27.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005733/14.21, allocations: 345.5 kB / 4.546 GB, free: 27.14 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002195/14.21, allocations: 23.78 kB / 4.546 GB, free: 27.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/14.21, allocations: 361.9 kB / 4.546 GB, free: 26.83 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002332/14.21, allocations: 0.5546 MB / 4.547 GB, free: 26.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002535/14.21, allocations: 0.8873 MB / 4.548 GB, free: 26.44 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002362/14.21, allocations: 0.7382 MB / 4.548 GB, free: 26.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-05/14.21, allocations: 7.656 kB / 4.548 GB, free: 26.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.007885/14.22, allocations: 1.727 MB / 4.55 GB, free: 26.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001472/14.22, allocations: 3.971 MB / 4.554 GB, free: 22.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.12e-05/14.22, allocations: 13.53 kB / 4.554 GB, free: 22.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002354/14.23, allocations: 245 kB / 4.554 GB, free: 22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/14.23, allocations: 275.4 kB / 4.555 GB, free: 21.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/14.23, allocations: 0.8157 MB / 4.555 GB, free: 21.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/14.23, allocations: 109.6 kB / 4.555 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005008/14.23, allocations: 83.72 kB / 4.556 GB, free: 21.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/14.23, allocations: 3.906 kB / 4.556 GB, free: 21.45 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006654/14.24, allocations: 1.657 MB / 4.557 GB, free: 21.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.614e-05/14.24, allocations: 10.22 kB / 4.557 GB, free: 21.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/14.24, allocations: 244.2 kB / 4.557 GB, free: 21.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00289/14.25, allocations: 276.2 kB / 4.558 GB, free: 21.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/14.25, allocations: 0.8185 MB / 4.558 GB, free: 20.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/14.25, allocations: 101.9 kB / 4.559 GB, free: 20.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002277/14.25, allocations: 79.2 kB / 4.559 GB, free: 20.54 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 () * 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.0005809/14.25, allocations: 190 kB / 4.559 GB, free: 20.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003734/14.25, allocations: 94.06 kB / 4.559 GB, free: 20.32 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008677/14.26, allocations: 1.802 MB / 4.561 GB, free: 19.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.82e-05/14.26, allocations: 17.59 kB / 4.561 GB, free: 19.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/14.26, allocations: 3.094 kB / 4.561 GB, free: 19.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.612e-05/14.26, allocations: 7.75 kB / 4.561 GB, free: 19.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01581/14.28, allocations: 2.861 MB / 4.563 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.31e-05/14.28, allocations: 5.125 kB / 4.563 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00207/14.28, allocations: 186.4 kB / 4.564 GB, free: 18.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002296/14.28, allocations: 316.6 kB / 4.564 GB, free: 18.26 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/14.28, allocations: 42.64 kB / 4.564 GB, free: 18.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/14.28, allocations: 0.7846 MB / 4.565 GB, free: 17.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/14.28, allocations: 0 / 4.565 GB, free: 17.61 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005318/14.29, allocations: 2.269 MB / 4.567 GB, free: 16.54 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/14.29, allocations: 345.5 kB / 4.567 GB, free: 16.31 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/14.29, allocations: 32.66 kB / 4.567 GB, free: 16.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00181/14.29, allocations: 81.78 kB / 4.567 GB, free: 16.27 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/14.29, allocations: 68.47 kB / 4.567 GB, free: 16.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/14.29, allocations: 68.67 kB / 4.568 GB, free: 16.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001073/14.29, allocations: 0.5343 MB / 4.568 GB, free: 16.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/14.29, allocations: 6.375 kB / 4.568 GB, free: 16.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006112/14.3, allocations: 1.343 MB / 4.569 GB, free: 15.65 MB / 442.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 () * 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.006742/14.31, allocations: 2.035 MB / 4.571 GB, free: 15.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006366/14.31, allocations: 2.467 MB / 4.574 GB, free: 12.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/14.31, allocations: 2 kB / 4.574 GB, free: 12.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001805/14.31, allocations: 0.6882 MB / 4.574 GB, free: 12.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004133/14.32, allocations: 494.5 kB / 4.575 GB, free: 11.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006719/14.32, allocations: 2.071 MB / 4.577 GB, free: 10.04 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007618/14.33, allocations: 1.141 MB / 4.578 GB, free: 9.027 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000926/14.33, allocations: 139.3 kB / 4.578 GB, free: 8.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/14.33, allocations: 4 kB / 4.578 GB, free: 8.906 MB / 442.7 MB Notification: Performance of Templates: time 0.4519/14.78, allocations: 37.01 MB / 4.614 GB, free: 44.03 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