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.0009379/0.000938, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008289/0.0008288, allocations: 86.38 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.959e-05/1.962e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1009, allocations: 47.58 MB / 363.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.649/8.75, allocations: 3.633 GB / 3.987 GB, free: 34.32 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/8.75, allocations: 87.89 kB / 3.987 GB, free: 34.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.322/13.07, allocations: 0.894 GB / 4.881 GB, free: 29.34 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.806e-06/13.07, allocations: 0 / 4.881 GB, free: 29.34 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002997/13.07, allocations: 77.67 kB / 4.881 GB, free: 29.34 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.03182/13.1, allocations: 6.001 MB / 4.887 GB, free: 26.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/13.1, allocations: 10.66 kB / 4.887 GB, free: 26.75 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004276/13.11, allocations: 414.2 kB / 4.888 GB, free: 26.57 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009087/13.12, allocations: 2.407 MB / 4.89 GB, free: 26.07 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00037/13.12, allocations: 254.7 kB / 4.89 GB, free: 25.94 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001691/13.12, allocations: 192.8 kB / 4.89 GB, free: 25.93 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01212/13.13, allocations: 5.128 MB / 4.895 GB, free: 25.92 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/13.14, allocations: 4.833 MB / 4.9 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/13.14, allocations: 9 kB / 4.9 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006221/13.15, allocations: 10.09 kB / 4.9 GB, free: 25.34 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003409/13.15, allocations: 258.3 kB / 4.9 GB, free: 25.34 MB / 474.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.03361/13.18, allocations: 20.46 MB / 4.92 GB, free: 15.87 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005588/13.19, allocations: 3.41 MB / 4.924 GB, free: 15.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003027/13.19, allocations: 2.147 MB / 4.926 GB, free: 15.81 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002012/13.19, allocations: 2.689 MB / 4.928 GB, free: 12.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003631/13.19, allocations: 2.519 MB / 4.931 GB, free: 12.74 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001706/13.2, allocations: 193.5 kB / 4.931 GB, free: 12.61 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 6.382e-06/13.2, allocations: 0 / 4.931 GB, free: 12.61 MB / 474.7 MB Notification: Performance of matching and sorting (n=371): time 0.08328/13.28, allocations: 24 MB / 4.955 GB, free: 10.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001843/13.28, allocations: 0.6045 MB / 4.955 GB, free: 9.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003286/13.28, allocations: 1.467 MB / 4.957 GB, free: 9.453 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001371/13.28, allocations: 29.39 kB / 4.957 GB, free: 9.422 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/13.29, allocations: 1.342 MB / 4.958 GB, free: 8.766 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002177/13.29, allocations: 1.256 MB / 4.959 GB, free: 7.945 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001106/13.29, allocations: 2.5 kB / 4.959 GB, free: 7.945 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004142/13.29, allocations: 479.9 kB / 4.96 GB, free: 7.633 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005019/13.29, allocations: 2.557 MB / 4.962 GB, free: 7.617 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005757/13.3, allocations: 3.52 MB / 4.966 GB, free: 6.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01436/13.31, allocations: 4.546 MB / 4.97 GB, free: 6.543 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-05/13.31, allocations: 12.31 kB / 4.97 GB, free: 6.543 MB / 474.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02953/13.34, allocations: 9.429 MB / 4.979 GB, free: 6.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.004275/13.35, allocations: 10.05 MB / 4.989 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/13.35, allocations: 24.5 kB / 4.989 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00617/13.35, allocations: 2.003 MB / 4.991 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005728/13.36, allocations: 0.9335 MB / 4.992 GB, free: 11.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007726/13.37, allocations: 6.167 MB / 4.998 GB, free: 8.793 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006512/13.37, allocations: 471.8 kB / 4.998 GB, free: 8.766 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001768/13.38, allocations: 250.6 kB / 4.999 GB, free: 8.766 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/13.38, allocations: 5.938 kB / 4.999 GB, free: 8.766 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0287/13.41, allocations: 8.796 MB / 5.007 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001344/13.41, allocations: 24.91 kB / 5.007 GB, free: 8.625 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005631/13.41, allocations: 1.926 MB / 5.009 GB, free: 8.578 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005631/13.42, allocations: 0.9487 MB / 5.01 GB, free: 8.578 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007023/13.42, allocations: 5.95 MB / 5.016 GB, free: 5.453 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006612/13.43, allocations: 445.4 kB / 5.016 GB, free: 5.434 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002145/13.43, allocations: 245 kB / 5.017 GB, free: 5.434 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 () * 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.003477/13.44, allocations: 217.6 kB / 5.017 GB, free: 5.305 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002093/13.44, allocations: 282.1 kB / 5.017 GB, free: 5.168 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02336/13.46, allocations: 7.854 MB / 5.025 GB, free: 2.734 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.938e-05/13.46, allocations: 43.98 kB / 5.025 GB, free: 2.734 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.699e-05/13.46, allocations: 0 / 5.025 GB, free: 2.734 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01682/13.48, allocations: 6.179 MB / 5.031 GB, free: 104 kB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04329/13.52, allocations: 14 MB / 5.044 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.846e-05/13.52, allocations: 3.688 kB / 5.044 GB, free: 5.336 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004487/13.53, allocations: 0.6937 MB / 5.045 GB, free: 4.785 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008333/13.53, allocations: 2.403 MB / 5.047 GB, free: 3.168 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00146/13.54, allocations: 130.9 kB / 5.048 GB, free: 3.078 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4493/13.99, allocations: 5.868 MB / 5.053 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/13.99, allocations: 3.422 kB / 5.053 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03083/14.02, allocations: 11.77 MB / 5.065 GB, free: 53.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003349/14.02, allocations: 1.037 MB / 5.066 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/14.02, allocations: 69.44 kB / 5.066 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004026/14.03, allocations: 352.2 kB / 5.066 GB, free: 53.81 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005292/14.03, allocations: 264.2 kB / 5.066 GB, free: 53.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004873/14.03, allocations: 182.9 kB / 5.067 GB, free: 53.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001885/14.03, allocations: 1.091 MB / 5.068 GB, free: 53.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.6e-07/14.03, allocations: 0 / 5.068 GB, free: 53.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01306/14.04, allocations: 3.004 MB / 5.071 GB, free: 53.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (366): * Single equations (assignments): 354 * 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,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01066/14.05, allocations: 3.45 MB / 5.074 GB, free: 53.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01855/14.07, allocations: 10.11 MB / 5.084 GB, free: 52.9 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/14.07, allocations: 2.953 kB / 5.084 GB, free: 52.9 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005396/14.08, allocations: 3.064 MB / 5.087 GB, free: 52.89 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007192/14.08, allocations: 1.171 MB / 5.088 GB, free: 52.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02167/14.1, allocations: 8.56 MB / 5.096 GB, free: 51.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003473/14.11, allocations: 2.487 MB / 5.099 GB, free: 50.92 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01143/14.12, allocations: 2.601 MB / 5.101 GB, free: 50.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002091/14.12, allocations: 314.4 kB / 5.102 GB, free: 50.82 MB / 0.4948 GB Notification: Performance of SimCode: time 1.192e-06/14.12, allocations: 0 / 5.102 GB, free: 50.82 MB / 0.4948 GB Notification: Performance of Templates: time 0.1716/14.29, allocations: 111.8 MB / 5.211 GB, free: 13.87 MB / 0.4948 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