Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00172/0.00172, allocations: 196.1 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.106/3.106, allocations: 226.5 MB / 245.3 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001098/0.001098, allocations: 101.4 kB / 297.4 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003877/0.0003882, allocations: 12 kB / 357.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4674/0.4678, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 16.34/16.8, allocations: 3.553 GB / 3.952 GB, free: 88.23 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003841/16.8, allocations: 87.95 kB / 3.953 GB, free: 88.14 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.289/21.09, allocations: 0.5254 GB / 4.478 GB, free: 50.32 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.487e-06/21.09, allocations: 0 / 4.478 GB, free: 50.32 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001354/21.09, allocations: 25.55 kB / 4.478 GB, free: 50.31 MB / 474.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.02078/21.11, allocations: 2.963 MB / 4.481 GB, free: 48.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/21.11, allocations: 7.938 kB / 4.481 GB, free: 48.62 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001322/21.12, allocations: 126.3 kB / 4.481 GB, free: 48.56 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003117/21.12, allocations: 0.7407 MB / 4.482 GB, free: 48.25 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000234/21.12, allocations: 136.5 kB / 4.482 GB, free: 48.19 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004018/21.12, allocations: 87.23 kB / 4.482 GB, free: 48.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004531/21.12, allocations: 1.453 MB / 4.483 GB, free: 47.94 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.419e-05/21.12, allocations: 3.438 kB / 4.483 GB, free: 47.94 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002858/21.12, allocations: 41.08 kB / 4.483 GB, free: 47.94 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/21.12, allocations: 71.31 kB / 4.483 GB, free: 47.94 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003346/21.13, allocations: 1.437 MB / 4.485 GB, free: 47.91 MB / 474.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.01574/21.14, allocations: 6.012 MB / 4.491 GB, free: 44.88 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002959/21.15, allocations: 0.9749 MB / 4.492 GB, free: 44.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001292/21.15, allocations: 0.5106 MB / 4.492 GB, free: 44.83 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002175/21.15, allocations: 1.811 MB / 4.494 GB, free: 42.86 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.713e-05/21.15, allocations: 46.03 kB / 4.494 GB, free: 42.82 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001196/21.15, allocations: 108.8 kB / 4.494 GB, free: 42.77 MB / 474.7 MB Notification: Performance of pre-optimization done (n=84): time 5.871e-06/21.15, allocations: 3.969 kB / 4.494 GB, free: 42.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=96): time 0.02534/21.18, allocations: 5.134 MB / 4.499 GB, free: 42.16 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/21.18, allocations: 110.5 kB / 4.499 GB, free: 42.04 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001657/21.18, allocations: 0.7762 MB / 4.5 GB, free: 41.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003092/21.18, allocations: 45.8 kB / 4.5 GB, free: 41.87 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004878/21.18, allocations: 452.1 kB / 4.5 GB, free: 41.64 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005413/21.18, allocations: 336 kB / 4.501 GB, free: 41.43 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001553/21.18, allocations: 26.62 kB / 4.501 GB, free: 41.43 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002472/21.18, allocations: 402.4 kB / 4.501 GB, free: 41.11 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002169/21.18, allocations: 0.6104 MB / 4.502 GB, free: 41.11 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002546/21.19, allocations: 0.9443 MB / 4.503 GB, free: 40.72 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003978/21.19, allocations: 1.634 MB / 4.504 GB, free: 40.24 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/21.19, allocations: 3.219 kB / 4.504 GB, free: 40.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.0068/21.2, allocations: 1.912 MB / 4.506 GB, free: 39.77 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005715/21.2, allocations: 445 kB / 4.507 GB, free: 39.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.073e-05/21.2, allocations: 10.59 kB / 4.507 GB, free: 39.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002081/21.2, allocations: 332.5 kB / 4.507 GB, free: 39.17 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/21.2, allocations: 266.8 kB / 4.507 GB, free: 39.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/21.2, allocations: 0.9288 MB / 4.508 GB, free: 38.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002989/21.21, allocations: 114.8 kB / 4.508 GB, free: 38.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004156/21.21, allocations: 72.95 kB / 4.508 GB, free: 38.46 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/21.21, allocations: 3.156 kB / 4.508 GB, free: 38.46 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006643/21.21, allocations: 1.792 MB / 4.51 GB, free: 37.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.632e-05/21.21, allocations: 11.19 kB / 4.51 GB, free: 37.76 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002206/21.22, allocations: 333 kB / 4.51 GB, free: 37.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/21.22, allocations: 269 kB / 4.511 GB, free: 37.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00281/21.22, allocations: 0.9326 MB / 4.511 GB, free: 37.02 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002963/21.22, allocations: 106.5 kB / 4.512 GB, free: 37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005963/21.23, allocations: 72.44 kB / 4.512 GB, free: 36.98 MB / 474.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.002092/21.23, allocations: 421.8 kB / 4.512 GB, free: 36.68 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005913/21.23, allocations: 100.2 kB / 4.512 GB, free: 36.64 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007225/21.24, allocations: 1.949 MB / 4.514 GB, free: 35.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-05/21.24, allocations: 28.88 kB / 4.514 GB, free: 35.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.197e-05/21.24, allocations: 0 / 4.514 GB, free: 35.89 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/21.24, allocations: 3.891 kB / 4.514 GB, free: 35.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/21.25, allocations: 3.087 MB / 4.517 GB, free: 34.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.935e-05/21.25, allocations: 0 / 4.517 GB, free: 34.48 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/21.25, allocations: 185.7 kB / 4.517 GB, free: 34.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002556/21.25, allocations: 399.3 kB / 4.518 GB, free: 34.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002512/21.25, allocations: 38.28 kB / 4.518 GB, free: 34.38 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001881/21.25, allocations: 0.8959 MB / 4.519 GB, free: 33.74 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/21.25, allocations: 7.062 kB / 4.519 GB, free: 33.74 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008605/21.26, allocations: 2.38 MB / 4.521 GB, free: 32.72 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002025/21.26, allocations: 329.8 kB / 4.521 GB, free: 32.51 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005562/21.26, allocations: 27.59 kB / 4.521 GB, free: 32.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/21.27, allocations: 82.55 kB / 4.521 GB, free: 32.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002817/21.27, allocations: 66.8 kB / 4.521 GB, free: 32.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002786/21.27, allocations: 58.94 kB / 4.521 GB, free: 32.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001619/21.27, allocations: 0.5474 MB / 4.522 GB, free: 32.22 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.91e-07/21.27, allocations: 0 / 4.522 GB, free: 32.22 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01192/21.28, allocations: 1.329 MB / 4.523 GB, free: 31.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.01167/21.29, allocations: 1.917 MB / 4.525 GB, free: 29.76 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008409/21.3, allocations: 2.6 MB / 4.528 GB, free: 27.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.224e-05/21.3, allocations: 12.31 kB / 4.528 GB, free: 27.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002669/21.3, allocations: 0.7171 MB / 4.528 GB, free: 26.83 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005857/21.31, allocations: 0.5113 MB / 4.529 GB, free: 26.46 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/21.32, allocations: 2.99 MB / 4.532 GB, free: 23.81 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/21.32, allocations: 1.123 MB / 4.533 GB, free: 22.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/21.32, allocations: 125 kB / 4.533 GB, free: 22.69 MB / 474.7 MB Notification: Performance of SimCode: time 2.094e-06/21.32, allocations: 0 / 4.533 GB, free: 22.69 MB / 474.7 MB Notification: Performance of Templates: time 0.1148/21.44, allocations: 35.7 MB / 4.568 GB, free: 9.785 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches