Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.I.y|ductIn.mediums.1..T|ductIn.mediums.1..Xi.1.|ductIn.mediums.1..p|ductIn.mediums.2..T|ductIn.mediums.2..Xi.1.|ductIn.mediums.2..p|ductOut.mediums.1..T|ductOut.mediums.1..Xi.1.|ductOut.mediums.1..p|ductOut.mediums.2..T|ductOut.mediums.2..Xi.1.|ductOut.mediums.2..p|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002049/0.002048, allocations: 199.4 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.964/2.964, 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.002055/0.002055, allocations: 106.1 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004393, allocations: 11.98 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5674/0.5679, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 16.93/17.5, allocations: 3.575 GB / 3.974 GB, free: 60.5 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004746/17.5, allocations: 96.95 kB / 3.974 GB, free: 60.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.343/23.84, allocations: 0.8693 GB / 4.844 GB, free: 33.38 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.627e-06/23.84, allocations: 0.5 kB / 4.844 GB, free: 33.38 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006073/23.84, allocations: 84.41 kB / 4.844 GB, free: 33.37 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.04392/23.89, allocations: 6.092 MB / 4.85 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 8.72e-05/23.89, allocations: 7.406 kB / 4.85 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005693/23.89, allocations: 413.8 kB / 4.85 GB, free: 30.22 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02073/23.91, allocations: 4.336 MB / 4.854 GB, free: 29.64 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001042/23.91, allocations: 363.5 kB / 4.855 GB, free: 29.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002704/23.92, allocations: 300.2 kB / 4.855 GB, free: 29.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02589/23.94, allocations: 5.359 MB / 4.86 GB, free: 28.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000396/23.94, allocations: 17.03 kB / 4.86 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007207/23.95, allocations: 128.6 kB / 4.86 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005882/23.95, allocations: 262.6 kB / 4.861 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02187/23.97, allocations: 5.621 MB / 4.866 GB, free: 28.86 MB / 0.4948 GB 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.07404/24.05, allocations: 20.48 MB / 4.886 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.014/24.06, allocations: 3.664 MB / 4.89 GB, free: 19.79 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007671/24.07, allocations: 2.283 MB / 4.892 GB, free: 19.76 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004189/24.07, allocations: 3.235 MB / 4.895 GB, free: 16.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.015/24.09, allocations: 2.686 MB / 4.898 GB, free: 16.05 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004106/24.09, allocations: 282.7 kB / 4.898 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 2.615e-05/24.09, allocations: 0 / 4.898 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.2178/24.31, allocations: 34.15 MB / 4.931 GB, free: 8.227 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002605/24.31, allocations: 479.9 kB / 4.932 GB, free: 7.652 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00692/24.32, allocations: 2.166 MB / 4.934 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002084/24.32, allocations: 97.7 kB / 4.934 GB, free: 5.707 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00225/24.32, allocations: 1.299 MB / 4.935 GB, free: 4.527 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003754/24.33, allocations: 1.32 MB / 4.937 GB, free: 3.34 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001844/24.33, allocations: 84 kB / 4.937 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006276/24.33, allocations: 488.3 kB / 4.937 GB, free: 2.824 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01091/24.34, allocations: 2.926 MB / 4.94 GB, free: 436 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02914/24.37, allocations: 4.723 MB / 4.945 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02943/24.4, allocations: 7.001 MB / 4.951 GB, free: 8.16 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.898e-05/24.4, allocations: 8 kB / 4.951 GB, free: 8.152 MB / 0.5105 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.04677/24.45, allocations: 9.169 MB / 4.96 GB, free: 0.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.773/25.22, allocations: 0.9089 MB / 4.961 GB, free: 46.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002227/25.22, allocations: 26.06 kB / 4.961 GB, free: 46.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01742/25.24, allocations: 2.764 MB / 4.964 GB, free: 46.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009099/25.25, allocations: 0.934 MB / 4.965 GB, free: 46.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02154/25.27, allocations: 6.734 MB / 4.972 GB, free: 43.26 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01523/25.28, allocations: 0.535 MB / 4.972 GB, free: 43.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003707/25.29, allocations: 238.4 kB / 4.972 GB, free: 43.26 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/25.29, allocations: 4.656 kB / 4.972 GB, free: 43.26 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.06031/25.35, allocations: 9.373 MB / 4.981 GB, free: 43.03 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003634/25.35, allocations: 24.66 kB / 4.981 GB, free: 43.03 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01894/25.37, allocations: 2.566 MB / 4.984 GB, free: 42.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01273/25.38, allocations: 0.945 MB / 4.985 GB, free: 42.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01641/25.4, allocations: 6.579 MB / 4.991 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009906/25.41, allocations: 0.5268 MB / 4.992 GB, free: 39.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002819/25.41, allocations: 222.2 kB / 4.992 GB, free: 39.88 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * Number of states: 0 () * Number of discrete variables: 17 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,$whenCondition1,$PRE.numberOfPeople.nextTimeEvent,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],numberOfPeople.nextTimeEvent,$PRE.numberOfPeople.nextTimeEventScaled,numberOfPeople.nextTimeEventScaled,PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 485 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 6,2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.01331/25.42, allocations: 1.099 MB / 4.993 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003888/25.43, allocations: 309.5 kB / 4.993 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04534/25.47, allocations: 8.836 MB / 5.002 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002058/25.47, allocations: 40.28 kB / 5.002 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001061/25.47, allocations: 8.156 kB / 5.002 GB, free: 39.41 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03468/25.51, allocations: 6.852 MB / 5.009 GB, free: 39.02 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07464/25.58, allocations: 13.17 MB / 5.022 GB, free: 38.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.553e-05/25.58, allocations: 0 / 5.022 GB, free: 38.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01142/25.59, allocations: 0.7053 MB / 5.022 GB, free: 38.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01765/25.61, allocations: 3.156 MB / 5.025 GB, free: 38.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002106/25.61, allocations: 178.2 kB / 5.026 GB, free: 38.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0136/25.63, allocations: 6.37 MB / 5.032 GB, free: 35.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/25.63, allocations: 0.5625 kB / 5.032 GB, free: 35.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04642/25.67, allocations: 11.02 MB / 5.043 GB, free: 34.73 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007043/25.68, allocations: 1.054 MB / 5.044 GB, free: 34.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003377/25.68, allocations: 134.4 kB / 5.044 GB, free: 34.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008749/25.69, allocations: 427.9 kB / 5.044 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00256/25.7, allocations: 258.2 kB / 5.044 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002301/25.7, allocations: 174 kB / 5.045 GB, free: 34.52 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005629/25.7, allocations: 1.459 MB / 5.046 GB, free: 34.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.997e-06/25.7, allocations: 2 kB / 5.046 GB, free: 34.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02905/25.73, allocations: 3.207 MB / 5.049 GB, free: 34.38 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 21 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1],ductOut.mCs_scaled[1,1],ductOut.mCs_scaled[2,1],ductOut.mediums[1].p,ductOut.mediums[1].Xi[1],ductOut.mediums[1].T,ductOut.mediums[2].p,ductOut.mediums[2].Xi[1],ductOut.mediums[2].T,PID.I.y,ductIn.mCs_scaled[1,1],ductIn.mCs_scaled[2,1],ductIn.mediums[1].p,ductIn.mediums[1].Xi[1],ductIn.mediums[1].T,ductIn.mediums[2].p,ductIn.mediums[2].Xi[1],ductIn.mediums[2].T) * Number of discrete variables: 3 ($whenCondition1,numberOfPeople.nextTimeEvent,numberOfPeople.nextTimeEventScaled) * Number of discrete states: 2 (numberOfPeople.nextTimeEvent,numberOfPeople.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (374): * Single equations (assignments): 362 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 6,2 6,1 7,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.02148/25.75, allocations: 3.158 MB / 5.052 GB, free: 34.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.04454/25.8, allocations: 11.31 MB / 5.063 GB, free: 33.61 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.932e-05/25.8, allocations: 4.328 kB / 5.063 GB, free: 33.61 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01589/25.81, allocations: 3.49 MB / 5.067 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01928/25.83, allocations: 1.472 MB / 5.068 GB, free: 33.54 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04584/25.88, allocations: 11.76 MB / 5.08 GB, free: 30.21 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004939/25.89, allocations: 2.393 MB / 5.082 GB, free: 29.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00867/25.89, allocations: 392.8 kB / 5.082 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of SimCode: time 2.134e-06/25.89, allocations: 0 / 5.082 GB, free: 29.36 MB / 0.5105 GB Notification: Performance of Templates: time 1.073/26.97, allocations: 159.2 MB / 5.238 GB, free: 56.08 MB / 0.5261 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2WithControls/RoomCO2WithControls.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches