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.002124/0.002124, allocations: 187.6 kB / 16.41 MB, free: 5.723 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.896/1.896, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001162/0.001162, allocations: 84.69 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003947/0.0003946, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3287, allocations: 47.56 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.53/10.86, allocations: 3.633 GB / 3.999 GB, free: 96.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/10.86, allocations: 92.17 kB / 3.999 GB, free: 96.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119/15.98, allocations: 0.9038 GB / 4.903 GB, free: 25.71 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.974e-06/15.98, allocations: 0 / 4.903 GB, free: 25.71 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003445/15.98, allocations: 82.52 kB / 4.903 GB, free: 25.7 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.02911/16.01, allocations: 6.293 MB / 4.909 GB, free: 22.62 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/16.01, allocations: 8.984 kB / 4.909 GB, free: 22.62 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003597/16.01, allocations: 428.9 kB / 4.909 GB, free: 22.43 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/16.02, allocations: 2.412 MB / 4.912 GB, free: 21.91 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006157/16.02, allocations: 362.5 kB / 4.912 GB, free: 21.78 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002185/16.03, allocations: 304 kB / 4.912 GB, free: 21.78 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01944/16.05, allocations: 5.337 MB / 4.918 GB, free: 21.16 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001602/16.05, allocations: 14.64 kB / 4.918 GB, free: 21.15 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009774/16.05, allocations: 132.4 kB / 4.918 GB, free: 21.15 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003949/16.05, allocations: 262.5 kB / 4.918 GB, free: 21.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01731/16.06, allocations: 5.635 MB / 4.924 GB, free: 21.08 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.05361/16.12, allocations: 20.63 MB / 4.944 GB, free: 11.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01098/16.13, allocations: 3.67 MB / 4.947 GB, free: 11.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003284/16.13, allocations: 3.196 MB / 4.95 GB, free: 8.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007868/16.14, allocations: 2.677 MB / 4.953 GB, free: 7.977 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002521/16.14, allocations: 282 kB / 4.953 GB, free: 7.777 MB / 474.7 MB Notification: Performance of pre-optimization done (n=317): time 1.104e-05/16.14, allocations: 0 / 4.953 GB, free: 7.777 MB / 474.7 MB Notification: Performance of matching and sorting (n=377): time 0.2288/16.37, allocations: 34.2 MB / 4.987 GB, free: 7.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003073/16.37, allocations: 479.5 kB / 4.987 GB, free: 6.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004962/16.38, allocations: 1.982 MB / 4.989 GB, free: 4.816 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001414/16.38, allocations: 97.7 kB / 4.989 GB, free: 4.715 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/16.38, allocations: 1.237 MB / 4.99 GB, free: 3.562 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002733/16.38, allocations: 1.32 MB / 4.992 GB, free: 2.375 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000847/16.38, allocations: 92 kB / 4.992 GB, free: 2.285 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004657/16.38, allocations: 485.4 kB / 4.992 GB, free: 1.848 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01459/16.4, allocations: 3.141 MB / 4.995 GB, free: 0 / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.413/16.81, allocations: 3.916 MB / 4.999 GB, free: 39.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/16.82, allocations: 3.46 MB / 5.002 GB, free: 39.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.702e-05/16.82, allocations: 10.12 kB / 5.003 GB, free: 39.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.03666/16.86, allocations: 9.053 MB / 5.011 GB, free: 39.48 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002209/16.86, allocations: 9.863 MB / 5.021 GB, free: 29.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.726e-05/16.86, allocations: 24.53 kB / 5.021 GB, free: 29.23 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01851/16.88, allocations: 2.775 MB / 5.024 GB, free: 29.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008382/16.89, allocations: 0.9359 MB / 5.025 GB, free: 29.19 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/16.91, allocations: 6.745 MB / 5.031 GB, free: 26.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00869/16.91, allocations: 0.5386 MB / 5.032 GB, free: 26.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001575/16.92, allocations: 244.8 kB / 5.032 GB, free: 26.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/16.92, allocations: 6.344 kB / 5.032 GB, free: 26.09 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04063/16.96, allocations: 9.387 MB / 5.041 GB, free: 25.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/16.96, allocations: 25.5 kB / 5.041 GB, free: 25.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01651/16.97, allocations: 2.585 MB / 5.044 GB, free: 25.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008064/16.98, allocations: 0.9473 MB / 5.045 GB, free: 25.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01492/17, allocations: 6.584 MB / 5.051 GB, free: 22.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00738/17, allocations: 0.522 MB / 5.052 GB, free: 22.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001208/17.01, allocations: 238 kB / 5.052 GB, free: 22.7 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.00398/17.01, allocations: 1.102 MB / 5.053 GB, free: 22.51 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001153/17.01, allocations: 311.8 kB / 5.053 GB, free: 22.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03096/17.04, allocations: 8.794 MB / 5.062 GB, free: 22.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.384e-05/17.04, allocations: 49.16 kB / 5.062 GB, free: 22.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/17.04, allocations: 0 / 5.062 GB, free: 22.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02294/17.06, allocations: 6.864 MB / 5.068 GB, free: 21.84 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04206/17.11, allocations: 13.15 MB / 5.081 GB, free: 21.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-05/17.11, allocations: 6.094 kB / 5.081 GB, free: 21.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006628/17.11, allocations: 0.7046 MB / 5.082 GB, free: 21.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02177/17.14, allocations: 3.161 MB / 5.085 GB, free: 21.16 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001278/17.14, allocations: 177.1 kB / 5.085 GB, free: 21.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/17.15, allocations: 6.369 MB / 5.092 GB, free: 18.06 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/17.15, allocations: 0 / 5.092 GB, free: 18.06 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03416/17.18, allocations: 11.14 MB / 5.102 GB, free: 17.44 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004087/17.19, allocations: 1.087 MB / 5.103 GB, free: 17.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001274/17.19, allocations: 131.5 kB / 5.104 GB, free: 17.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006384/17.2, allocations: 426.5 kB / 5.104 GB, free: 17.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008393/17.2, allocations: 262.2 kB / 5.104 GB, free: 17.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006571/17.2, allocations: 188.5 kB / 5.104 GB, free: 17.17 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003127/17.2, allocations: 1.512 MB / 5.106 GB, free: 17.02 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.31e-07/17.2, allocations: 4.25 kB / 5.106 GB, free: 17.02 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01468/17.22, allocations: 3.275 MB / 5.109 GB, free: 17.02 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.01179/17.23, allocations: 3.358 MB / 5.112 GB, free: 16.57 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03567/17.26, allocations: 11.34 MB / 5.123 GB, free: 13.09 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/17.26, allocations: 4.641 kB / 5.123 GB, free: 13.09 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01127/17.27, allocations: 3.498 MB / 5.127 GB, free: 12.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01151/17.29, allocations: 1.409 MB / 5.128 GB, free: 11.75 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03014/17.32, allocations: 11.81 MB / 5.14 GB, free: 5.055 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002601/17.32, allocations: 2.477 MB / 5.142 GB, free: 3.121 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003251/17.32, allocations: 411.4 kB / 5.143 GB, free: 2.773 MB / 490.7 MB Notification: Performance of SimCode: time 1.212e-06/17.32, allocations: 0 / 5.143 GB, free: 2.773 MB / 490.7 MB Notification: Performance of Templates: time 0.6757/18, allocations: 156.4 MB / 5.295 GB, free: 47.99 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)