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.002181/0.002181, allocations: 181 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001151/0.001151, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.837e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09406/0.09411, allocations: 47.58 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.82/10.91, allocations: 3.633 GB / 3.993 GB, free: 112.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/10.91, allocations: 86.27 kB / 3.994 GB, free: 112.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.411/16.32, allocations: 0.9024 GB / 4.896 GB, free: 28.22 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.525e-06/16.32, allocations: 0 / 4.896 GB, free: 28.22 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004185/16.32, allocations: 76.66 kB / 4.896 GB, free: 28.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.03515/16.36, allocations: 6.002 MB / 4.902 GB, free: 25.13 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.127e-05/16.36, allocations: 7.25 kB / 4.902 GB, free: 25.13 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004549/16.36, allocations: 418.2 kB / 4.902 GB, free: 24.94 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01236/16.38, allocations: 2.409 MB / 4.905 GB, free: 24.37 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006919/16.38, allocations: 359.5 kB / 4.905 GB, free: 24.23 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002479/16.38, allocations: 304.5 kB / 4.905 GB, free: 24.23 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02157/16.4, allocations: 5.268 MB / 4.91 GB, free: 23.61 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002364/16.4, allocations: 13.69 kB / 4.91 GB, free: 23.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002552/16.4, allocations: 129.5 kB / 4.911 GB, free: 23.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005735/16.4, allocations: 261.1 kB / 4.911 GB, free: 23.59 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/16.42, allocations: 5.515 MB / 4.916 GB, free: 23.53 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.05938/16.48, allocations: 20.64 MB / 4.936 GB, free: 14.03 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/16.49, allocations: 3.574 MB / 4.94 GB, free: 12.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006507/16.5, allocations: 2.248 MB / 4.942 GB, free: 11.98 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003767/16.5, allocations: 3.202 MB / 4.945 GB, free: 8.512 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008571/16.51, allocations: 2.632 MB / 4.948 GB, free: 7.527 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003234/16.52, allocations: 282.7 kB / 4.948 GB, free: 7.324 MB / 474.7 MB Notification: Performance of pre-optimization done (n=317): time 1.57e-05/16.52, allocations: 3.969 kB / 4.948 GB, free: 7.324 MB / 474.7 MB Notification: Performance of matching and sorting (n=377): time 0.2228/16.74, allocations: 30.36 MB / 4.978 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002754/16.74, allocations: 475.9 kB / 4.978 GB, free: 240 kB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4423/17.18, allocations: 1.959 MB / 4.98 GB, free: 44.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001464/17.18, allocations: 99.14 kB / 4.98 GB, free: 44.79 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001809/17.19, allocations: 1.232 MB / 4.981 GB, free: 44.62 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002853/17.19, allocations: 1.322 MB / 4.983 GB, free: 43.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000864/17.19, allocations: 87.66 kB / 4.983 GB, free: 43.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00048/17.19, allocations: 482.8 kB / 4.983 GB, free: 43.64 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009168/17.2, allocations: 2.609 MB / 4.986 GB, free: 43.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009386/17.21, allocations: 3.601 MB / 4.989 GB, free: 42.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00964/17.22, allocations: 3.151 MB / 4.992 GB, free: 42.44 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.396e-05/17.22, allocations: 7.688 kB / 4.992 GB, free: 42.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.03345/17.25, allocations: 8.151 MB / 5 GB, free: 42.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002586/17.25, allocations: 9.862 MB / 5.01 GB, free: 31.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/17.25, allocations: 23.78 kB / 5.01 GB, free: 31.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01264/17.27, allocations: 2.186 MB / 5.012 GB, free: 31.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008766/17.28, allocations: 0.9335 MB / 5.013 GB, free: 31.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009521/17.29, allocations: 5.97 MB / 5.019 GB, free: 28.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009625/17.3, allocations: 0.5346 MB / 5.019 GB, free: 28.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002079/17.3, allocations: 243.2 kB / 5.02 GB, free: 28.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/17.3, allocations: 2.938 kB / 5.02 GB, free: 28.66 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03669/17.33, allocations: 8.518 MB / 5.028 GB, free: 28.43 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/17.33, allocations: 25.94 kB / 5.028 GB, free: 28.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01063/17.35, allocations: 1.993 MB / 5.03 GB, free: 28.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008823/17.35, allocations: 0.9426 MB / 5.031 GB, free: 28.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008698/17.36, allocations: 5.803 MB / 5.036 GB, free: 25.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008125/17.37, allocations: 0.5206 MB / 5.037 GB, free: 25.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00193/17.37, allocations: 244.1 kB / 5.037 GB, free: 25.25 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.002933/17.38, allocations: 367.7 kB / 5.037 GB, free: 25.14 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001538/17.38, allocations: 312.3 kB / 5.038 GB, free: 24.99 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02635/17.4, allocations: 7.976 MB / 5.046 GB, free: 24.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.195e-05/17.4, allocations: 41.59 kB / 5.046 GB, free: 24.66 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/17.4, allocations: 0 / 5.046 GB, free: 24.66 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01815/17.42, allocations: 6.032 MB / 5.052 GB, free: 24.27 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05072/17.47, allocations: 13.31 MB / 5.065 GB, free: 23.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.068e-05/17.47, allocations: 2.25 kB / 5.065 GB, free: 23.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007168/17.48, allocations: 0.7072 MB / 5.065 GB, free: 23.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01635/17.5, allocations: 2.595 MB / 5.068 GB, free: 23.53 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00153/17.5, allocations: 177.8 kB / 5.068 GB, free: 23.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008086/17.51, allocations: 5.656 MB / 5.073 GB, free: 20.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/17.51, allocations: 2.531 kB / 5.073 GB, free: 20.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0329/17.54, allocations: 10.57 MB / 5.084 GB, free: 19.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004908/17.54, allocations: 1.082 MB / 5.085 GB, free: 19.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001693/17.55, allocations: 137.9 kB / 5.085 GB, free: 19.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007736/17.55, allocations: 431.4 kB / 5.085 GB, free: 19.29 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001551/17.56, allocations: 261.5 kB / 5.086 GB, free: 19.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008178/17.56, allocations: 187.4 kB / 5.086 GB, free: 19.23 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003612/17.56, allocations: 1.485 MB / 5.087 GB, free: 18.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.62e-07/17.56, allocations: 1.719 kB / 5.087 GB, free: 18.66 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01707/17.58, allocations: 3.279 MB / 5.09 GB, free: 18.33 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) * 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,2 6,2 6,2 6,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01377/17.59, allocations: 3.308 MB / 5.094 GB, free: 17.81 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03167/17.62, allocations: 10.43 MB / 5.104 GB, free: 14.33 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/17.62, allocations: 2.328 kB / 5.104 GB, free: 14.33 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01087/17.63, allocations: 3.215 MB / 5.107 GB, free: 13.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01308/17.65, allocations: 1.406 MB / 5.108 GB, free: 13 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03066/17.68, allocations: 8.988 MB / 5.117 GB, free: 10.23 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003973/17.68, allocations: 2.468 MB / 5.12 GB, free: 8.324 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003699/17.69, allocations: 412.7 kB / 5.12 GB, free: 7.977 MB / 490.7 MB Notification: Performance of SimCode: time 1.834e-06/17.69, allocations: 0 / 5.12 GB, free: 7.977 MB / 490.7 MB Notification: Performance of Templates: time 0.7399/18.43, allocations: 157 MB / 5.273 GB, free: 35.81 MB / 0.4948 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)