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.002108/0.002108, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.087/2.087, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 88.91 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.848e-05/1.864e-05, allocations: 0 / 314.8 MB, free: 9.16 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.343, allocations: 47.56 MB / 362.3 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.14/10.49, allocations: 3.632 GB / 3.986 GB, free: 110.8 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002762/10.49, allocations: 86.12 kB / 3.986 GB, free: 110.8 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.302/15.79, allocations: 0.8941 GB / 4.88 GB, free: 25.34 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.136e-06/15.79, allocations: 7.781 kB / 4.88 GB, free: 25.33 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004436/15.79, allocations: 82.09 kB / 4.88 GB, free: 25.32 MB / 475.1 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.03118/15.82, allocations: 5.997 MB / 4.886 GB, free: 22.57 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/15.82, allocations: 6.406 kB / 4.886 GB, free: 22.57 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003939/15.83, allocations: 417.2 kB / 4.887 GB, free: 22.38 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/15.84, allocations: 2.403 MB / 4.889 GB, free: 21.89 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004858/15.84, allocations: 254.5 kB / 4.889 GB, free: 21.75 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002151/15.84, allocations: 188.9 kB / 4.889 GB, free: 21.75 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01569/15.86, allocations: 5.126 MB / 4.895 GB, free: 21.73 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/15.87, allocations: 4.834 MB / 4.899 GB, free: 21.16 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002839/15.88, allocations: 15.39 kB / 4.899 GB, free: 21.16 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002069/15.88, allocations: 9 kB / 4.899 GB, free: 21.16 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004616/15.88, allocations: 255.6 kB / 4.899 GB, free: 21.15 MB / 475.1 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.05458/15.93, allocations: 20.46 MB / 4.919 GB, free: 11.68 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01008/15.94, allocations: 3.408 MB / 4.923 GB, free: 11.65 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005736/15.95, allocations: 2.147 MB / 4.925 GB, free: 11.62 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003065/15.95, allocations: 2.683 MB / 4.928 GB, free: 8.805 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007354/15.96, allocations: 2.526 MB / 4.93 GB, free: 8.547 MB / 475.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002488/15.96, allocations: 190.2 kB / 4.93 GB, free: 8.422 MB / 475.1 MB Notification: Performance of pre-optimization done (n=311): time 1.302e-05/15.96, allocations: 0 / 4.93 GB, free: 8.422 MB / 475.1 MB Notification: Performance of matching and sorting (n=371): time 0.1345/16.1, allocations: 24.01 MB / 4.954 GB, free: 6.145 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005929/16.1, allocations: 0.5942 MB / 4.954 GB, free: 21.45 MB / 491.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003129/16.1, allocations: 1.464 MB / 4.956 GB, free: 21.25 MB / 491.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001427/16.1, allocations: 29.02 kB / 4.956 GB, free: 21.22 MB / 491.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/16.1, allocations: 1.308 MB / 4.957 GB, free: 20.49 MB / 491.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002282/16.1, allocations: 1.254 MB / 4.958 GB, free: 19.68 MB / 491.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005794/16.11, allocations: 0 / 4.958 GB, free: 19.68 MB / 491.1 MB Notification: Performance of setup shared object (initialization): time 0.0004025/16.11, allocations: 482.2 kB / 4.959 GB, free: 19.36 MB / 491.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006424/16.11, allocations: 2.557 MB / 4.961 GB, free: 19.15 MB / 491.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007791/16.12, allocations: 3.52 MB / 4.965 GB, free: 17.12 MB / 491.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02266/16.14, allocations: 4.543 MB / 4.969 GB, free: 15.97 MB / 491.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.924e-05/16.14, allocations: 7.938 kB / 4.969 GB, free: 15.97 MB / 491.1 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.04615/16.19, allocations: 9.338 MB / 4.978 GB, free: 11.32 MB / 491.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.004529/16.19, allocations: 9.856 MB / 4.988 GB, free: 0.8242 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001632/16.19, allocations: 24 kB / 4.988 GB, free: 0.8008 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01109/16.21, allocations: 2.029 MB / 4.99 GB, free: 15.42 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009013/16.21, allocations: 0.9317 MB / 4.991 GB, free: 14.63 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/16.23, allocations: 6.167 MB / 4.997 GB, free: 8.992 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009258/16.24, allocations: 472.7 kB / 4.997 GB, free: 8.699 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002025/16.24, allocations: 247.4 kB / 4.997 GB, free: 8.492 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/16.24, allocations: 4 kB / 4.997 GB, free: 8.488 MB / 0.4952 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04501/16.28, allocations: 8.791 MB / 5.006 GB, free: 1.445 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000139/16.28, allocations: 31.94 kB / 5.006 GB, free: 1.414 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009925/16.29, allocations: 1.921 MB / 5.008 GB, free: 32 kB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4288/16.72, allocations: 1.172 MB / 5.009 GB, free: 53.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008793/16.73, allocations: 5.955 MB / 5.015 GB, free: 50.81 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008074/16.74, allocations: 450.5 kB / 5.015 GB, free: 50.81 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001662/16.74, allocations: 241.8 kB / 5.015 GB, free: 50.81 MB / 0.4952 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 () * 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.001965/16.74, allocations: 218.8 kB / 5.016 GB, free: 50.7 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/16.74, allocations: 274.4 kB / 5.016 GB, free: 50.7 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02831/16.77, allocations: 7.853 MB / 5.024 GB, free: 50.41 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.008e-05/16.77, allocations: 41.03 kB / 5.024 GB, free: 50.41 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.972e-05/16.77, allocations: 3.281 kB / 5.024 GB, free: 50.41 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02155/16.79, allocations: 6.179 MB / 5.03 GB, free: 50.03 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.059/16.85, allocations: 14 MB / 5.043 GB, free: 49.17 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.688e-05/16.85, allocations: 4.938 kB / 5.043 GB, free: 49.17 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007305/16.86, allocations: 0.6899 MB / 5.044 GB, free: 49.17 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0141/16.87, allocations: 2.41 MB / 5.046 GB, free: 49.12 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001492/16.88, allocations: 134.7 kB / 5.047 GB, free: 49.12 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009106/16.88, allocations: 5.877 MB / 5.052 GB, free: 46.02 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.029e-05/16.88, allocations: 5.094 kB / 5.052 GB, free: 46.02 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04841/16.93, allocations: 11.76 MB / 5.064 GB, free: 45.39 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004638/16.94, allocations: 1.039 MB / 5.065 GB, free: 45.15 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001612/16.94, allocations: 69.91 kB / 5.065 GB, free: 45.15 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007285/16.95, allocations: 352.1 kB / 5.065 GB, free: 45.14 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001372/16.95, allocations: 259.6 kB / 5.065 GB, free: 45.13 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007566/16.95, allocations: 183.9 kB / 5.066 GB, free: 45.13 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.002473/16.95, allocations: 1.091 MB / 5.067 GB, free: 45.02 MB / 0.4952 GB Notification: Performance of sort global known variables: time 6.91e-07/16.95, allocations: 0 / 5.067 GB, free: 45.02 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01705/16.97, allocations: 3.008 MB / 5.07 GB, free: 45.02 MB / 0.4952 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.01358/16.98, allocations: 3.441 MB / 5.073 GB, free: 44.66 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.02873/17.01, allocations: 10.05 MB / 5.083 GB, free: 44.21 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/17.01, allocations: 3.922 kB / 5.083 GB, free: 44.21 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.009492/17.02, allocations: 3.065 MB / 5.086 GB, free: 44.19 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0113/17.03, allocations: 1.178 MB / 5.087 GB, free: 44.15 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02852/17.06, allocations: 8.709 MB / 5.095 GB, free: 42.92 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003963/17.06, allocations: 2.474 MB / 5.098 GB, free: 42.14 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003374/17.07, allocations: 391.5 kB / 5.098 GB, free: 42.14 MB / 0.4952 GB Notification: Performance of SimCode: time 1.563e-06/17.07, allocations: 0 / 5.098 GB, free: 42.14 MB / 0.4952 GB Notification: Performance of Templates: time 0.7171/17.79, allocations: 153.1 MB / 5.248 GB, free: 52.36 MB / 0.4952 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)