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_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.893/1.893, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.767e-05/2.782e-05, allocations: 0 / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09162/0.09167, allocations: 50.42 MB / 343.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.68/8.772, allocations: 3.574 GB / 3.909 GB, free: 135.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/8.772, allocations: 84.5 kB / 3.909 GB, free: 135.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.276/13.05, allocations: 0.8845 GB / 4.794 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of FrontEnd: time 5.306e-06/13.05, allocations: 4 kB / 4.794 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002518/13.05, allocations: 87.86 kB / 4.794 GB, free: 6.359 MB / 0.4948 GB 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.0213/13.07, allocations: 5.804 MB / 4.8 GB, free: 480 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/13.07, allocations: 8.031 kB / 4.8 GB, free: 472 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002721/13.07, allocations: 411.6 kB / 4.8 GB, free: 56 kB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3615/13.43, allocations: 2.379 MB / 4.802 GB, free: 31.43 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004964/13.44, allocations: 362.2 kB / 4.803 GB, free: 31.3 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/13.44, allocations: 306.1 kB / 4.803 GB, free: 31.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01504/13.45, allocations: 5.213 MB / 4.808 GB, free: 30.72 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001245/13.45, allocations: 11.94 kB / 4.808 GB, free: 30.72 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007029/13.45, allocations: 133.1 kB / 4.808 GB, free: 30.72 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003106/13.45, allocations: 258.5 kB / 4.809 GB, free: 30.71 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01533/13.47, allocations: 5.45 MB / 4.814 GB, free: 30.7 MB / 0.4948 GB 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.04168/13.51, allocations: 20.6 MB / 4.834 GB, free: 21.86 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008541/13.52, allocations: 3.557 MB / 4.837 GB, free: 21.82 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004953/13.52, allocations: 2.235 MB / 4.84 GB, free: 21.79 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002862/13.53, allocations: 3.242 MB / 4.843 GB, free: 18.32 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006017/13.53, allocations: 2.602 MB / 4.845 GB, free: 18.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001964/13.53, allocations: 287.7 kB / 4.846 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 9.044e-06/13.53, allocations: 1.062 kB / 4.846 GB, free: 18.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.1447/13.68, allocations: 30.3 MB / 4.875 GB, free: 16.62 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001456/13.68, allocations: 486.4 kB / 4.876 GB, free: 16.09 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003774/13.68, allocations: 1.902 MB / 4.878 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001061/13.68, allocations: 101 kB / 4.878 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001237/13.69, allocations: 1.295 MB / 4.879 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001873/13.69, allocations: 1.329 MB / 4.88 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005139/13.69, allocations: 85.56 kB / 4.88 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000286/13.69, allocations: 486.6 kB / 4.881 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005916/13.69, allocations: 2.602 MB / 4.883 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007055/13.7, allocations: 3.568 MB / 4.887 GB, free: 13.31 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009177/13.71, allocations: 3.152 MB / 4.89 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.413e-05/13.71, allocations: 8.312 kB / 4.89 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02792/13.74, allocations: 8.197 MB / 4.898 GB, free: 12.74 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.004745/13.74, allocations: 10.25 MB / 4.908 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.36e-05/13.74, allocations: 28.25 kB / 4.908 GB, free: 18.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009189/13.75, allocations: 2.175 MB / 4.91 GB, free: 18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005969/13.76, allocations: 0.9263 MB / 4.911 GB, free: 18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007996/13.77, allocations: 5.956 MB / 4.917 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006461/13.77, allocations: 0.5401 MB / 4.917 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/13.77, allocations: 231.6 kB / 4.918 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/13.77, allocations: 3.875 kB / 4.918 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02577/13.8, allocations: 8.426 MB / 4.926 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-05/13.8, allocations: 22.16 kB / 4.926 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00772/13.81, allocations: 1.984 MB / 4.928 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006673/13.81, allocations: 0.9417 MB / 4.929 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/13.83, allocations: 5.797 MB / 4.934 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008055/13.83, allocations: 0.5196 MB / 4.935 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001162/13.84, allocations: 224.3 kB / 4.935 GB, free: 11.43 MB / 0.5105 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.00148/13.84, allocations: 363.5 kB / 4.935 GB, free: 11.31 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001013/13.84, allocations: 307.3 kB / 4.936 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01778/13.86, allocations: 8.045 MB / 4.943 GB, free: 8.465 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.437e-05/13.86, allocations: 39.72 kB / 4.944 GB, free: 8.465 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/13.86, allocations: 7.703 kB / 4.944 GB, free: 8.461 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01286/13.87, allocations: 6.019 MB / 4.949 GB, free: 6.262 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03499/13.9, allocations: 13.3 MB / 4.962 GB, free: 1.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.414e-05/13.9, allocations: 0 / 4.962 GB, free: 1.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005055/13.91, allocations: 0.7063 MB / 4.963 GB, free: 1.285 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01264/13.92, allocations: 2.635 MB / 4.966 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001096/13.92, allocations: 174.2 kB / 4.966 GB, free: 15.52 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007972/13.93, allocations: 5.649 MB / 4.971 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.424e-06/13.93, allocations: 0 / 4.971 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02663/13.96, allocations: 10.58 MB / 4.982 GB, free: 1.176 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00385/13.96, allocations: 1.079 MB / 4.983 GB, free: 252 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001289/13.96, allocations: 135.9 kB / 4.983 GB, free: 136 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006425/13.97, allocations: 487.5 kB / 4.983 GB, free: 0 / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002048/13.97, allocations: 317.1 kB / 4.984 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008723/13.97, allocations: 176.8 kB / 4.984 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003207/13.98, allocations: 1.441 MB / 4.985 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.605e-06/13.98, allocations: 0 / 4.985 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01348/13.99, allocations: 3.182 MB / 4.988 GB, free: 11.63 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.0104/14, allocations: 3.16 MB / 4.991 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02639/14.03, allocations: 10.37 MB / 5.002 GB, free: 0.7852 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.986e-05/14.03, allocations: 5.109 kB / 5.002 GB, free: 0.7812 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.361/14.39, allocations: 3.733 MB / 5.005 GB, free: 73.82 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009339/14.4, allocations: 1.41 MB / 5.007 GB, free: 73.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02518/14.42, allocations: 8.741 MB / 5.015 GB, free: 72.71 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004061/14.43, allocations: 2.474 MB / 5.018 GB, free: 71.93 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01373/14.44, allocations: 2.917 MB / 5.02 GB, free: 71.87 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/14.44, allocations: 315.9 kB / 5.021 GB, free: 71.87 MB / 0.5417 GB Notification: Performance of SimCode: time 1.829e-06/14.44, allocations: 0 / 5.021 GB, free: 71.87 MB / 0.5417 GB Notification: Performance of Templates: time 0.2499/14.69, allocations: 130.4 MB / 5.148 GB, free: 49.98 MB / 0.5417 GB