Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.001285/0.001285, allocations: 177.2 kB / 17.41 MB, free: 4.395 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.512/1.512, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0008095/0.0008094, allocations: 88.3 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003424, allocations: 19.98 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.275, allocations: 47.56 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.656/8.931, allocations: 3.633 GB / 4 GB, free: 80.45 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003189/8.931, allocations: 91.75 kB / 4 GB, free: 80.36 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.471/12.4, allocations: 0.8957 GB / 4.896 GB, free: 29.22 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.964e-06/12.4, allocations: 0 / 4.896 GB, free: 29.22 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002054/12.4, allocations: 86.3 kB / 4.896 GB, free: 29.21 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.02258/12.43, allocations: 6.262 MB / 4.902 GB, free: 25.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/12.43, allocations: 10 kB / 4.902 GB, free: 25.93 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002609/12.43, allocations: 421.6 kB / 4.903 GB, free: 25.75 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009367/12.44, allocations: 4.255 MB / 4.907 GB, free: 24.97 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002957/12.44, allocations: 369.6 kB / 4.907 GB, free: 24.82 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009147/12.44, allocations: 299 kB / 4.908 GB, free: 24.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008045/12.45, allocations: 5.362 MB / 4.913 GB, free: 22.13 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.115e-05/12.45, allocations: 15.88 kB / 4.913 GB, free: 22.11 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004354/12.45, allocations: 128 kB / 4.913 GB, free: 21.99 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002462/12.45, allocations: 269 kB / 4.913 GB, free: 21.76 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007774/12.46, allocations: 5.625 MB / 4.919 GB, free: 17.05 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.02624/12.48, allocations: 20.54 MB / 4.939 GB, free: 12.06 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006277/12.49, allocations: 3.658 MB / 4.942 GB, free: 8.434 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003344/12.49, allocations: 2.293 MB / 4.945 GB, free: 6.133 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00349/12.49, allocations: 3.852 MB / 4.948 GB, free: 1.504 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3274/12.82, allocations: 2.675 MB / 4.951 GB, free: 44.36 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002375/12.82, allocations: 284.2 kB / 4.951 GB, free: 44.36 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 1.116e-05/12.82, allocations: 0 / 4.951 GB, free: 44.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.118/12.94, allocations: 34.19 MB / 4.985 GB, free: 42.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000179/12.94, allocations: 483.8 kB / 4.985 GB, free: 42.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003471/12.95, allocations: 2.213 MB / 4.987 GB, free: 42.12 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001409/12.95, allocations: 101.1 kB / 4.987 GB, free: 42.09 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/12.95, allocations: 1.312 MB / 4.989 GB, free: 41.65 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002086/12.95, allocations: 1.324 MB / 4.99 GB, free: 41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003583/12.95, allocations: 83.84 kB / 4.99 GB, free: 41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002813/12.95, allocations: 481.9 kB / 4.99 GB, free: 40.68 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005372/12.96, allocations: 2.926 MB / 4.993 GB, free: 40.67 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006482/12.96, allocations: 3.94 MB / 4.997 GB, free: 39.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01235/12.98, allocations: 7 MB / 5.004 GB, free: 38.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-05/12.98, allocations: 7.812 kB / 5.004 GB, free: 38.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02116/13, allocations: 9.189 MB / 5.013 GB, free: 38.14 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006719/13, allocations: 0.9167 MB / 5.014 GB, free: 37.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.603e-05/13, allocations: 22 kB / 5.014 GB, free: 37.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009682/13.01, allocations: 2.787 MB / 5.017 GB, free: 37.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004891/13.01, allocations: 0.9308 MB / 5.018 GB, free: 37.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009138/13.02, allocations: 6.754 MB / 5.024 GB, free: 33.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00601/13.03, allocations: 0.5465 MB / 5.025 GB, free: 33.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001666/13.03, allocations: 240.2 kB / 5.025 GB, free: 33.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/13.03, allocations: 3.375 kB / 5.025 GB, free: 33.88 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02527/13.05, allocations: 9.388 MB / 5.034 GB, free: 33.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/13.06, allocations: 24.47 kB / 5.034 GB, free: 33.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008988/13.06, allocations: 2.583 MB / 5.037 GB, free: 33.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005108/13.07, allocations: 0.9453 MB / 5.038 GB, free: 33.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00862/13.08, allocations: 6.586 MB / 5.044 GB, free: 30.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005484/13.08, allocations: 0.5249 MB / 5.044 GB, free: 30.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001492/13.08, allocations: 238.2 kB / 5.045 GB, free: 30.47 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.004261/13.09, allocations: 1.104 MB / 5.046 GB, free: 30.28 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001676/13.09, allocations: 315.3 kB / 5.046 GB, free: 30.12 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01765/13.11, allocations: 8.77 MB / 5.055 GB, free: 29.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.765e-05/13.11, allocations: 40.22 kB / 5.055 GB, free: 29.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/13.11, allocations: 0 / 5.055 GB, free: 29.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01171/13.12, allocations: 6.863 MB / 5.061 GB, free: 29.39 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02332/13.14, allocations: 13.1 MB / 5.074 GB, free: 24.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/13.14, allocations: 5.609 kB / 5.074 GB, free: 24.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00323/13.15, allocations: 0.7059 MB / 5.075 GB, free: 24.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01096/13.16, allocations: 3.163 MB / 5.078 GB, free: 24.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001202/13.16, allocations: 180.9 kB / 5.078 GB, free: 24.39 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007202/13.17, allocations: 6.369 MB / 5.084 GB, free: 18.86 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/13.17, allocations: 5.375 kB / 5.084 GB, free: 18.86 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01939/13.19, allocations: 11.05 MB / 5.095 GB, free: 9.492 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003469/13.19, allocations: 1.058 MB / 5.096 GB, free: 8.582 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009268/13.19, allocations: 136.2 kB / 5.096 GB, free: 8.465 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003428/13.19, allocations: 425 kB / 5.097 GB, free: 8.168 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000491/13.19, allocations: 263.3 kB / 5.097 GB, free: 8.008 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004171/13.19, allocations: 185.8 kB / 5.097 GB, free: 7.855 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002142/13.2, allocations: 1.498 MB / 5.099 GB, free: 6.594 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.11e-07/13.2, allocations: 0 / 5.099 GB, free: 6.594 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0124/13.21, allocations: 3.282 MB / 5.102 GB, free: 3.781 MB / 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.009833/13.22, allocations: 3.345 MB / 5.105 GB, free: 1.566 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02734/13.25, allocations: 11.54 MB / 5.116 GB, free: 8.59 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.364e-05/13.25, allocations: 0.9844 kB / 5.116 GB, free: 8.59 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007667/13.25, allocations: 3.493 MB / 5.12 GB, free: 5.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008782/13.26, allocations: 1.464 MB / 5.121 GB, free: 4.598 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/13.28, allocations: 11.83 MB / 5.133 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/13.29, allocations: 2.409 MB / 5.135 GB, free: 8.484 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002285/13.29, allocations: 414.7 kB / 5.135 GB, free: 8.125 MB / 0.5105 GB Notification: Performance of SimCode: time 9.82e-07/13.29, allocations: 0 / 5.135 GB, free: 8.125 MB / 0.5105 GB Notification: Performance of Templates: time 0.4884/13.78, allocations: 160.4 MB / 5.292 GB, free: 29.91 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches