Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 173.2 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 241.4 MB, free: 11.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008734/0.0008734, allocations: 104.2 kB / 292.6 MB, free: 10.75 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.0003302, allocations: 11.94 kB / 352.3 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2516, allocations: 50.4 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.494/7.746, allocations: 3.574 GB / 3.968 GB, free: 158 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/7.746, allocations: 93.89 kB / 3.968 GB, free: 157.9 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.915/10.66, allocations: 0.8787 GB / 4.847 GB, free: 10.03 MB / 0.4948 GB Notification: Performance of FrontEnd: time 5.68e-06/10.66, allocations: 4 kB / 4.847 GB, free: 10.02 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005743/10.66, allocations: 83.92 kB / 4.847 GB, free: 9.941 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.02432/10.69, allocations: 6.064 MB / 4.853 GB, free: 3.781 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/10.69, allocations: 16.03 kB / 4.853 GB, free: 3.766 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003005/10.69, allocations: 412.5 kB / 4.853 GB, free: 3.359 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3323/11.02, allocations: 4.24 MB / 4.857 GB, free: 33.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004938/11.02, allocations: 361.1 kB / 4.857 GB, free: 32.94 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001572/11.02, allocations: 308.1 kB / 4.858 GB, free: 32.94 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01026/11.03, allocations: 5.343 MB / 4.863 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.031e-05/11.03, allocations: 15.44 kB / 4.863 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004837/11.03, allocations: 132.3 kB / 4.863 GB, free: 32.35 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002448/11.03, allocations: 260.3 kB / 4.863 GB, free: 32.34 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009125/11.04, allocations: 5.624 MB / 4.869 GB, free: 32.31 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.03137/11.08, allocations: 20.48 MB / 4.889 GB, free: 23.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00658/11.08, allocations: 3.653 MB / 4.892 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003264/11.09, allocations: 2.286 MB / 4.895 GB, free: 23.53 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002062/11.09, allocations: 3.239 MB / 4.898 GB, free: 20.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00494/11.09, allocations: 2.668 MB / 4.9 GB, free: 19.83 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001864/11.09, allocations: 290.4 kB / 4.901 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 1.322e-05/11.09, allocations: 0 / 4.901 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.1137/11.21, allocations: 34.15 MB / 4.934 GB, free: 18.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001665/11.21, allocations: 484 kB / 4.934 GB, free: 17.51 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004026/11.21, allocations: 2.148 MB / 4.937 GB, free: 17.27 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001333/11.21, allocations: 101.7 kB / 4.937 GB, free: 17.23 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001211/11.21, allocations: 1.298 MB / 4.938 GB, free: 16.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001947/11.22, allocations: 1.315 MB / 4.939 GB, free: 16.14 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008732/11.22, allocations: 87.94 kB / 4.939 GB, free: 16.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003323/11.22, allocations: 482.7 kB / 4.94 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005672/11.22, allocations: 2.928 MB / 4.943 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006082/11.23, allocations: 3.924 MB / 4.946 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/11.24, allocations: 6.995 MB / 4.953 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-05/11.24, allocations: 7.75 kB / 4.953 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.0192/11.26, allocations: 9.176 MB / 4.962 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004897/11.26, allocations: 0.9176 MB / 4.963 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.207e-05/11.26, allocations: 23.59 kB / 4.963 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009276/11.27, allocations: 2.759 MB / 4.966 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004586/11.27, allocations: 0.9302 MB / 4.967 GB, free: 12.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009181/11.28, allocations: 6.746 MB / 4.973 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005719/11.29, allocations: 0.5374 MB / 4.974 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/11.29, allocations: 230.8 kB / 4.974 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/11.29, allocations: 7.125 kB / 4.974 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02125/11.31, allocations: 9.367 MB / 4.983 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-05/11.31, allocations: 24.91 kB / 4.983 GB, free: 23.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008119/11.32, allocations: 2.581 MB / 4.986 GB, free: 23.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004544/11.33, allocations: 0.9333 MB / 4.987 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008503/11.33, allocations: 6.591 MB / 4.993 GB, free: 19.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005146/11.34, allocations: 0.525 MB / 4.994 GB, free: 19.05 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001149/11.34, allocations: 221.5 kB / 4.994 GB, free: 19.02 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.003674/11.34, allocations: 1.099 MB / 4.995 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/11.34, allocations: 309.7 kB / 4.995 GB, free: 18.33 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/11.36, allocations: 8.835 MB / 5.004 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.823e-05/11.36, allocations: 38.72 kB / 5.004 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.72e-05/11.36, allocations: 3.25 kB / 5.004 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01281/11.38, allocations: 6.858 MB / 5.011 GB, free: 12.12 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02726/11.4, allocations: 13.16 MB / 5.023 GB, free: 1.664 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.721e-05/11.4, allocations: 0 / 5.023 GB, free: 1.664 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003991/11.41, allocations: 0.7132 MB / 5.024 GB, free: 1.098 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01268/11.42, allocations: 3.189 MB / 5.027 GB, free: 15.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001219/11.42, allocations: 177.7 kB / 5.027 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008247/11.43, allocations: 6.36 MB / 5.034 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/11.43, allocations: 1.406 kB / 5.034 GB, free: 9.301 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02256/11.45, allocations: 11.02 MB / 5.044 GB, free: 8 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3549/11.81, allocations: 1.047 MB / 5.045 GB, free: 61.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/11.81, allocations: 137.7 kB / 5.046 GB, free: 61.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004043/11.81, allocations: 422 kB / 5.046 GB, free: 61.32 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005249/11.81, allocations: 260.7 kB / 5.046 GB, free: 61.31 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004088/11.81, allocations: 172.7 kB / 5.046 GB, free: 61.31 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002056/11.81, allocations: 1.453 MB / 5.048 GB, free: 61.17 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.81e-07/11.81, allocations: 0 / 5.048 GB, free: 61.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01061/11.83, allocations: 3.179 MB / 5.051 GB, free: 61.17 MB / 0.5261 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.007802/11.83, allocations: 3.13 MB / 5.054 GB, free: 60.93 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02259/11.86, allocations: 11.31 MB / 5.065 GB, free: 60.45 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/11.86, allocations: 7.047 kB / 5.065 GB, free: 60.45 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006731/11.86, allocations: 3.484 MB / 5.068 GB, free: 60.43 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008577/11.87, allocations: 1.459 MB / 5.07 GB, free: 60.39 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01986/11.89, allocations: 11.56 MB / 5.081 GB, free: 57.21 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001902/11.89, allocations: 2.406 MB / 5.083 GB, free: 56.44 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.008147/11.9, allocations: 2.677 MB / 5.086 GB, free: 56.35 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/11.9, allocations: 334 kB / 5.086 GB, free: 56.35 MB / 0.5261 GB Notification: Performance of SimCode: time 8.61e-07/11.9, allocations: 0 / 5.086 GB, free: 56.35 MB / 0.5261 GB Notification: Performance of Templates: time 0.1636/12.07, allocations: 125.6 MB / 5.209 GB, free: 19.12 MB / 0.5261 GB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches