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_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.92/1.92, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.933e-05/2.953e-05, allocations: 4 kB / 269.4 MB, free: 6.395 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08443/0.08448, allocations: 47.57 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.86/8.944, allocations: 3.633 GB / 3.943 GB, free: 104.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/8.945, allocations: 81.31 kB / 3.943 GB, free: 104.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.507/13.45, allocations: 0.9023 GB / 4.845 GB, free: 26.45 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.126e-06/13.45, allocations: 0 / 4.845 GB, free: 26.45 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002758/13.45, allocations: 79.08 kB / 4.845 GB, free: 26.44 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.02149/13.47, allocations: 5.993 MB / 4.851 GB, free: 23.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/13.47, allocations: 9.469 kB / 4.851 GB, free: 23.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002642/13.48, allocations: 420.8 kB / 4.851 GB, free: 23.31 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00805/13.48, allocations: 2.402 MB / 4.854 GB, free: 22.82 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004272/13.48, allocations: 363 kB / 4.854 GB, free: 22.69 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00147/13.49, allocations: 302.1 kB / 4.854 GB, free: 22.68 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/13.5, allocations: 5.233 MB / 4.859 GB, free: 22.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001379/13.5, allocations: 6.062 kB / 4.859 GB, free: 22.1 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007314/13.5, allocations: 138 kB / 4.86 GB, free: 22.1 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003592/13.5, allocations: 265.8 kB / 4.86 GB, free: 22.09 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01337/13.52, allocations: 5.458 MB / 4.865 GB, free: 22.05 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.04048/13.56, allocations: 20.64 MB / 4.885 GB, free: 12.92 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008091/13.56, allocations: 3.572 MB / 4.889 GB, free: 12.88 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004572/13.57, allocations: 2.235 MB / 4.891 GB, free: 12.54 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003053/13.57, allocations: 3.196 MB / 4.894 GB, free: 25.08 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005639/13.58, allocations: 2.609 MB / 4.897 GB, free: 24.11 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001735/13.58, allocations: 290.7 kB / 4.897 GB, free: 23.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=317): time 8.368e-06/13.58, allocations: 0 / 4.897 GB, free: 23.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=377): time 0.1403/13.72, allocations: 30.36 MB / 4.927 GB, free: 7.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003573/13.72, allocations: 483.6 kB / 4.927 GB, free: 7.406 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004429/13.72, allocations: 1.96 MB / 4.929 GB, free: 5.621 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001119/13.73, allocations: 97.7 kB / 4.929 GB, free: 5.52 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001736/13.73, allocations: 1.316 MB / 4.93 GB, free: 4.324 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002319/13.73, allocations: 1.327 MB / 4.932 GB, free: 3.137 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005566/13.73, allocations: 88 kB / 4.932 GB, free: 3.051 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004312/13.73, allocations: 480.4 kB / 4.932 GB, free: 2.621 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006467/13.74, allocations: 2.612 MB / 4.935 GB, free: 332 kB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3586/14.1, allocations: 4.341 MB / 4.939 GB, free: 40.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007951/14.1, allocations: 3.158 MB / 4.942 GB, free: 40.66 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.522e-05/14.1, allocations: 7.688 kB / 4.942 GB, free: 40.66 MB / 490.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02538/14.13, allocations: 8.212 MB / 4.95 GB, free: 40.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002143/14.13, allocations: 10.29 MB / 4.96 GB, free: 29.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.894e-05/14.13, allocations: 26.34 kB / 4.96 GB, free: 29.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009591/14.14, allocations: 2.178 MB / 4.962 GB, free: 29.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006185/14.15, allocations: 0.9347 MB / 4.963 GB, free: 29.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007333/14.15, allocations: 5.96 MB / 4.969 GB, free: 26.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006674/14.16, allocations: 0.5391 MB / 4.969 GB, free: 26.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001428/14.16, allocations: 245.8 kB / 4.97 GB, free: 26.56 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/14.16, allocations: 3.469 kB / 4.97 GB, free: 26.56 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02516/14.19, allocations: 8.443 MB / 4.978 GB, free: 26.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.118e-05/14.19, allocations: 23.56 kB / 4.978 GB, free: 26.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007544/14.2, allocations: 2 MB / 4.98 GB, free: 26.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00609/14.2, allocations: 0.9432 MB / 4.981 GB, free: 26.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006889/14.21, allocations: 5.806 MB / 4.987 GB, free: 23.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006327/14.22, allocations: 0.525 MB / 4.987 GB, free: 23.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001453/14.22, allocations: 232.8 kB / 4.987 GB, free: 23.17 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.00207/14.22, allocations: 367.4 kB / 4.988 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/14.22, allocations: 313.2 kB / 4.988 GB, free: 23.07 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02053/14.24, allocations: 7.969 MB / 4.996 GB, free: 22.79 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.812e-05/14.24, allocations: 45.78 kB / 4.996 GB, free: 22.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/14.24, allocations: 4.531 kB / 4.996 GB, free: 22.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01417/14.25, allocations: 6.034 MB / 5.002 GB, free: 22.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03604/14.29, allocations: 13.31 MB / 5.015 GB, free: 21.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.004e-05/14.29, allocations: 6.25 kB / 5.015 GB, free: 21.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004997/14.3, allocations: 0.7103 MB / 5.015 GB, free: 21.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01136/14.31, allocations: 2.589 MB / 5.018 GB, free: 21.71 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001135/14.31, allocations: 179.1 kB / 5.018 GB, free: 21.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006472/14.32, allocations: 5.661 MB / 5.024 GB, free: 18.6 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.234e-06/14.32, allocations: 0 / 5.024 GB, free: 18.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02544/14.34, allocations: 10.56 MB / 5.034 GB, free: 17.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003601/14.34, allocations: 1.087 MB / 5.035 GB, free: 17.64 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001482/14.35, allocations: 137.8 kB / 5.035 GB, free: 17.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005385/14.35, allocations: 425.2 kB / 5.035 GB, free: 17.64 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001086/14.35, allocations: 266 kB / 5.036 GB, free: 17.63 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008169/14.35, allocations: 186.5 kB / 5.036 GB, free: 17.63 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003069/14.36, allocations: 1.489 MB / 5.037 GB, free: 17.47 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.088e-06/14.36, allocations: 0 / 5.037 GB, free: 17.47 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01367/14.37, allocations: 3.276 MB / 5.041 GB, free: 17.47 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.01123/14.38, allocations: 3.363 MB / 5.044 GB, free: 17.05 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0237/14.41, allocations: 10.38 MB / 5.054 GB, free: 16.15 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.821e-05/14.41, allocations: 6.328 kB / 5.054 GB, free: 16.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00752/14.41, allocations: 3.19 MB / 5.057 GB, free: 15.17 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008493/14.42, allocations: 1.418 MB / 5.058 GB, free: 14.88 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/14.44, allocations: 8.81 MB / 5.067 GB, free: 12.39 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003021/14.45, allocations: 2.489 MB / 5.069 GB, free: 11.44 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0135/14.46, allocations: 2.823 MB / 5.072 GB, free: 11.26 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002219/14.46, allocations: 329.3 kB / 5.073 GB, free: 11.23 MB / 490.7 MB Notification: Performance of SimCode: time 2.061e-06/14.46, allocations: 0 / 5.073 GB, free: 11.23 MB / 490.7 MB Notification: Performance of Templates: time 0.5989/15.06, allocations: 133 MB / 5.202 GB, free: 46.46 MB / 0.4948 GB