Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.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.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.658/1.658, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009501/0.0009502, allocations: 96.14 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002909/0.0002908, allocations: 4 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2993, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.07/10.37, allocations: 3.633 GB / 4 GB, free: 83.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/10.37, allocations: 91.95 kB / 4 GB, free: 83.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.671/14.04, allocations: 0.9038 GB / 4.904 GB, free: 27.6 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.797e-06/14.04, allocations: 0 / 4.904 GB, free: 27.6 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003689/14.04, allocations: 83.27 kB / 4.904 GB, free: 27.59 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: 829 * Number of variables: 829 Notification: Performance of Generate backend data structure: time 0.03138/14.07, allocations: 6.301 MB / 4.91 GB, free: 24.34 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/14.07, allocations: 10.22 kB / 4.91 GB, free: 24.34 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003388/14.08, allocations: 419.1 kB / 4.911 GB, free: 24.15 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008295/14.08, allocations: 2.422 MB / 4.913 GB, free: 23.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004044/14.08, allocations: 358.2 kB / 4.913 GB, free: 23.43 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001691/14.09, allocations: 304.7 kB / 4.914 GB, free: 23.43 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/14.1, allocations: 5.341 MB / 4.919 GB, free: 20.08 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/14.1, allocations: 11.84 kB / 4.919 GB, free: 20.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007078/14.1, allocations: 131.2 kB / 4.919 GB, free: 19.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003184/14.1, allocations: 264.5 kB / 4.919 GB, free: 19.72 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01062/14.11, allocations: 5.633 MB / 4.925 GB, free: 14.84 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.04673/14.16, allocations: 20.64 MB / 4.945 GB, free: 9.121 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008799/14.16, allocations: 3.67 MB / 4.949 GB, free: 5.477 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00363/14.17, allocations: 3.194 MB / 4.952 GB, free: 1.617 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3522/14.52, allocations: 2.665 MB / 4.954 GB, free: 43.92 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00227/14.52, allocations: 283.7 kB / 4.955 GB, free: 43.92 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 7.874e-06/14.52, allocations: 0.75 kB / 4.955 GB, free: 43.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.119/14.64, allocations: 34.18 MB / 4.988 GB, free: 42.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000173/14.64, allocations: 483.3 kB / 4.988 GB, free: 41.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/14.65, allocations: 1.983 MB / 4.99 GB, free: 41.63 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001527/14.65, allocations: 102.6 kB / 4.99 GB, free: 41.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/14.65, allocations: 1.314 MB / 4.992 GB, free: 41.16 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002298/14.65, allocations: 1.317 MB / 4.993 GB, free: 40.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004326/14.65, allocations: 86.53 kB / 4.993 GB, free: 40.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002873/14.65, allocations: 478.2 kB / 4.994 GB, free: 40.19 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005814/14.66, allocations: 2.932 MB / 4.996 GB, free: 40.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007128/14.66, allocations: 3.921 MB / 5 GB, free: 39.14 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007221/14.67, allocations: 3.452 MB / 5.004 GB, free: 39 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.088e-05/14.67, allocations: 6.219 kB / 5.004 GB, free: 39 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02559/14.7, allocations: 9.19 MB / 5.013 GB, free: 38.58 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002556/14.7, allocations: 10.29 MB / 5.023 GB, free: 27.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.54e-05/14.7, allocations: 25.12 kB / 5.023 GB, free: 27.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0108/14.71, allocations: 2.784 MB / 5.025 GB, free: 27.83 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005416/14.72, allocations: 0.9283 MB / 5.026 GB, free: 27.83 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/14.73, allocations: 6.749 MB / 5.033 GB, free: 24.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006962/14.73, allocations: 0.5437 MB / 5.033 GB, free: 24.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001906/14.74, allocations: 241.9 kB / 5.034 GB, free: 24.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/14.74, allocations: 5.391 kB / 5.034 GB, free: 24.7 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02619/14.76, allocations: 9.393 MB / 5.043 GB, free: 24.46 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001044/14.76, allocations: 25.91 kB / 5.043 GB, free: 24.46 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008913/14.77, allocations: 2.58 MB / 5.045 GB, free: 24.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004843/14.78, allocations: 0.9438 MB / 5.046 GB, free: 24.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008335/14.78, allocations: 6.587 MB / 5.053 GB, free: 21.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005656/14.79, allocations: 0.5259 MB / 5.053 GB, free: 21.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001357/14.79, allocations: 238.3 kB / 5.053 GB, free: 21.29 MB / 490.7 MB 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.003842/14.8, allocations: 1.114 MB / 5.055 GB, free: 21.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/14.8, allocations: 308.8 kB / 5.055 GB, free: 20.94 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01805/14.82, allocations: 8.786 MB / 5.063 GB, free: 20.61 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.073e-05/14.82, allocations: 42.38 kB / 5.063 GB, free: 20.61 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.015e-05/14.82, allocations: 3.531 kB / 5.063 GB, free: 20.61 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01437/14.83, allocations: 6.86 MB / 5.07 GB, free: 20.22 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02701/14.86, allocations: 13.15 MB / 5.083 GB, free: 16.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.785e-05/14.86, allocations: 0 / 5.083 GB, free: 16.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003606/14.86, allocations: 0.7124 MB / 5.084 GB, free: 16.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01205/14.87, allocations: 3.154 MB / 5.087 GB, free: 16.53 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001435/14.87, allocations: 176.1 kB / 5.087 GB, free: 16.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007752/14.88, allocations: 6.372 MB / 5.093 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/14.88, allocations: 4.984 kB / 5.093 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02327/14.9, allocations: 11.14 MB / 5.104 GB, free: 3.371 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004092/14.91, allocations: 1.086 MB / 5.105 GB, free: 2.445 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001567/14.91, allocations: 137.6 kB / 5.105 GB, free: 2.332 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004645/14.92, allocations: 431.2 kB / 5.106 GB, free: 2.027 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009089/14.92, allocations: 265.9 kB / 5.106 GB, free: 1.867 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008389/14.92, allocations: 184.4 kB / 5.106 GB, free: 1.719 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002839/14.92, allocations: 1.511 MB / 5.108 GB, free: 456 kB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/14.92, allocations: 0 / 5.108 GB, free: 456 kB / 490.7 MB Notification: Performance of remove unused functions: time 0.03111/14.95, allocations: 4.392 MB / 5.112 GB, free: 0 / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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.01317/14.96, allocations: 3.359 MB / 5.115 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03028/14.99, allocations: 11.34 MB / 5.126 GB, free: 4.352 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/14.99, allocations: 0.9844 kB / 5.126 GB, free: 4.352 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009968/15, allocations: 3.498 MB / 5.13 GB, free: 1.441 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009712/15.01, allocations: 1.418 MB / 5.131 GB, free: 412 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03259/15.05, allocations: 11.79 MB / 5.142 GB, free: 6.852 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003954/15.05, allocations: 2.478 MB / 5.145 GB, free: 4.918 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01223/15.06, allocations: 2.544 MB / 5.147 GB, free: 3.191 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002603/15.07, allocations: 357.5 kB / 5.148 GB, free: 2.883 MB / 0.5105 GB Notification: Performance of SimCode: time 2.104e-06/15.07, allocations: 0 / 5.148 GB, free: 2.883 MB / 0.5105 GB Notification: Performance of Templates: time 0.5109/15.58, allocations: 126.2 MB / 5.271 GB, free: 50.95 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/TraceSubstances/RoomCO2WithControls/RoomCO2WithControls.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches