Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001151, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 225.6 MB / 234.8 MB, free: 3.266 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007878/0.000788, allocations: 101.8 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.917e-05/1.92e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1091, allocations: 51.48 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.34/10.45, allocations: 3.545 GB / 3.931 GB, free: 107.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003333/10.45, allocations: 83.52 kB / 3.931 GB, free: 107.5 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.415/12.86, allocations: 0.5233 GB / 4.454 GB, free: 34.96 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.814e-06/12.86, allocations: 0 / 4.454 GB, free: 34.96 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.753e-05/12.86, allocations: 24.16 kB / 4.454 GB, free: 34.96 MB / 458.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.01137/12.87, allocations: 2.892 MB / 4.457 GB, free: 33.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/12.87, allocations: 13.69 kB / 4.457 GB, free: 33.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006152/12.87, allocations: 129.4 kB / 4.457 GB, free: 33.19 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/12.88, allocations: 0.7316 MB / 4.458 GB, free: 32.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/12.88, allocations: 100.9 kB / 4.458 GB, free: 32.82 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/12.88, allocations: 56.98 kB / 4.458 GB, free: 32.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00204/12.88, allocations: 1.282 MB / 4.459 GB, free: 32.82 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/12.88, allocations: 1.289 MB / 4.461 GB, free: 32.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.44e-05/12.88, allocations: 7.25 kB / 4.461 GB, free: 32.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/12.88, allocations: 7.422 kB / 4.461 GB, free: 32.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.69e-05/12.88, allocations: 68.73 kB / 4.461 GB, free: 32.58 MB / 458.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.007605/12.89, allocations: 6.34 MB / 4.467 GB, free: 29.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/12.89, allocations: 0.8529 MB / 4.468 GB, free: 29.02 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006165/12.89, allocations: 459.6 kB / 4.468 GB, free: 29.01 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009401/12.89, allocations: 1.298 MB / 4.469 GB, free: 27.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/12.89, allocations: 51.73 kB / 4.469 GB, free: 27.56 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004824/12.89, allocations: 74.11 kB / 4.47 GB, free: 27.52 MB / 458.7 MB Notification: Performance of pre-optimization done (n=78): time 3.867e-06/12.89, allocations: 0 / 4.47 GB, free: 27.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.01337/12.91, allocations: 4.102 MB / 4.474 GB, free: 27.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/12.91, allocations: 109.8 kB / 4.474 GB, free: 26.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007326/12.91, allocations: 0.547 MB / 4.474 GB, free: 26.79 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/12.91, allocations: 29.52 kB / 4.474 GB, free: 26.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002671/12.91, allocations: 471.1 kB / 4.475 GB, free: 26.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002626/12.91, allocations: 317.2 kB / 4.475 GB, free: 26.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.915e-05/12.91, allocations: 3.938 kB / 4.475 GB, free: 26.28 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001357/12.91, allocations: 395 kB / 4.475 GB, free: 25.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007283/12.91, allocations: 0.529 MB / 4.476 GB, free: 25.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009372/12.91, allocations: 0.8639 MB / 4.477 GB, free: 25.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002928/12.91, allocations: 1.03 MB / 4.478 GB, free: 25.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/12.91, allocations: 0 / 4.478 GB, free: 25.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004492/12.92, allocations: 1.968 MB / 4.48 GB, free: 25.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001068/12.92, allocations: 3.971 MB / 4.484 GB, free: 21.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/12.92, allocations: 10.62 kB / 4.484 GB, free: 21.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/12.92, allocations: 246.6 kB / 4.484 GB, free: 21.24 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/12.92, allocations: 272.9 kB / 4.484 GB, free: 21.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008364/12.92, allocations: 0.8352 MB / 4.485 GB, free: 20.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001308/12.92, allocations: 98.5 kB / 4.485 GB, free: 20.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/12.92, allocations: 66.06 kB / 4.485 GB, free: 20.68 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/12.92, allocations: 10.23 kB / 4.485 GB, free: 20.68 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004456/12.93, allocations: 1.814 MB / 4.487 GB, free: 20.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/12.93, allocations: 9.156 kB / 4.487 GB, free: 20.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009027/12.93, allocations: 239.9 kB / 4.487 GB, free: 20.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/12.93, allocations: 271.8 kB / 4.487 GB, free: 20.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008154/12.93, allocations: 0.8349 MB / 4.488 GB, free: 20.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/12.93, allocations: 85.44 kB / 4.488 GB, free: 20.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/12.93, allocations: 75.39 kB / 4.488 GB, free: 20.03 MB / 458.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.000484/12.93, allocations: 143.5 kB / 4.488 GB, free: 19.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/12.93, allocations: 94.62 kB / 4.488 GB, free: 19.86 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/12.94, allocations: 1.752 MB / 4.49 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.809e-05/12.94, allocations: 13.08 kB / 4.49 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/12.94, allocations: 2.125 kB / 4.49 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/12.94, allocations: 3.375 kB / 4.49 GB, free: 19.72 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007768/12.94, allocations: 3.691 MB / 4.494 GB, free: 18.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/12.94, allocations: 3.953 kB / 4.494 GB, free: 18.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/12.94, allocations: 174.7 kB / 4.494 GB, free: 18.89 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/12.95, allocations: 311.1 kB / 4.494 GB, free: 18.86 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-05/12.95, allocations: 33 kB / 4.494 GB, free: 18.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007534/12.95, allocations: 0.8071 MB / 4.495 GB, free: 18.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.385e-06/12.95, allocations: 7.5 kB / 4.495 GB, free: 18.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004204/12.95, allocations: 2.381 MB / 4.497 GB, free: 17.01 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000691/12.95, allocations: 323.3 kB / 4.498 GB, free: 16.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/12.95, allocations: 11.19 kB / 4.498 GB, free: 16.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008989/12.95, allocations: 64.61 kB / 4.498 GB, free: 16.79 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/12.95, allocations: 74.86 kB / 4.498 GB, free: 16.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/12.95, allocations: 56.83 kB / 4.498 GB, free: 16.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005971/12.95, allocations: 419.2 kB / 4.498 GB, free: 16.57 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/12.95, allocations: 0 / 4.498 GB, free: 16.57 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005506/12.96, allocations: 1.241 MB / 4.5 GB, free: 16.25 MB / 458.7 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.005764/12.96, allocations: 2.064 MB / 4.502 GB, free: 15.77 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004244/12.97, allocations: 2.362 MB / 4.504 GB, free: 14.76 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/12.97, allocations: 448 / 4.504 GB, free: 14.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/12.97, allocations: 0.6378 MB / 4.504 GB, free: 14.52 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002276/12.97, allocations: 394.9 kB / 4.505 GB, free: 14.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004537/12.98, allocations: 1.949 MB / 4.507 GB, free: 13.61 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/12.98, allocations: 1.142 MB / 4.508 GB, free: 12.86 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002271/12.98, allocations: 0.658 MB / 4.509 GB, free: 12.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002977/12.98, allocations: 98.86 kB / 4.509 GB, free: 12.77 MB / 458.7 MB Notification: Performance of SimCode: time 1.382e-06/12.98, allocations: 0 / 4.509 GB, free: 12.77 MB / 458.7 MB Notification: Performance of Templates: time 0.0614/13.04, allocations: 38.42 MB / 4.546 GB, free: 3.016 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches