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_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.953/1.953, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.876e-05, allocations: 0 / 292.1 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0947/0.09475, allocations: 50.41 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.745/8.84, allocations: 3.574 GB / 3.909 GB, free: 135.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/8.84, allocations: 86.31 kB / 3.909 GB, free: 135.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.424/13.26, allocations: 0.8845 GB / 4.793 GB, free: 6.367 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.267e-06/13.26, allocations: 8 kB / 4.793 GB, free: 6.359 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003288/13.26, allocations: 79.92 kB / 4.794 GB, free: 6.281 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.02426/13.29, allocations: 5.804 MB / 4.799 GB, free: 400 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/13.29, allocations: 8.031 kB / 4.799 GB, free: 392 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.454/13.74, allocations: 408.4 kB / 4.8 GB, free: 32.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01935/13.76, allocations: 2.375 MB / 4.802 GB, free: 31.96 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009818/13.76, allocations: 361.8 kB / 4.802 GB, free: 31.82 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002824/13.77, allocations: 308.2 kB / 4.803 GB, free: 31.82 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02239/13.79, allocations: 5.213 MB / 4.808 GB, free: 31.25 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/13.79, allocations: 12.97 kB / 4.808 GB, free: 31.24 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007246/13.79, allocations: 134.3 kB / 4.808 GB, free: 31.24 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003339/13.79, allocations: 260.3 kB / 4.808 GB, free: 31.23 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0154/13.81, allocations: 5.452 MB / 4.813 GB, free: 31.22 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.04215/13.85, allocations: 20.6 MB / 4.833 GB, free: 22.38 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008468/13.86, allocations: 3.556 MB / 4.837 GB, free: 22.34 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004533/13.86, allocations: 2.235 MB / 4.839 GB, free: 22.32 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00263/13.86, allocations: 3.246 MB / 4.842 GB, free: 18.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005439/13.87, allocations: 2.602 MB / 4.845 GB, free: 18.62 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001776/13.87, allocations: 287 kB / 4.845 GB, free: 18.54 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 8.822e-06/13.87, allocations: 3.609 kB / 4.845 GB, free: 18.54 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.153/14.02, allocations: 30.3 MB / 4.875 GB, free: 17.15 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/14.02, allocations: 488.6 kB / 4.875 GB, free: 16.61 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003711/14.03, allocations: 1.903 MB / 4.877 GB, free: 16.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001061/14.03, allocations: 98.52 kB / 4.877 GB, free: 16.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001216/14.03, allocations: 1.296 MB / 4.878 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001638/14.03, allocations: 1.326 MB / 4.88 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004861/14.03, allocations: 83.62 kB / 4.88 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002546/14.03, allocations: 487.4 kB / 4.88 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005656/14.04, allocations: 2.604 MB / 4.883 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006766/14.04, allocations: 3.566 MB / 4.886 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006859/14.05, allocations: 3.152 MB / 4.889 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.785e-05/14.05, allocations: 7.438 kB / 4.889 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.02351/14.08, allocations: 8.192 MB / 4.897 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.004787/14.08, allocations: 10.26 MB / 4.907 GB, free: 18.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-05/14.08, allocations: 22.97 kB / 4.907 GB, free: 18.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009553/14.09, allocations: 2.172 MB / 4.91 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006578/14.1, allocations: 0.9286 MB / 4.91 GB, free: 18.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008151/14.1, allocations: 5.958 MB / 4.916 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006782/14.11, allocations: 0.5373 MB / 4.917 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001097/14.11, allocations: 229.3 kB / 4.917 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/14.11, allocations: 6.406 kB / 4.917 GB, free: 15.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02479/14.14, allocations: 8.427 MB / 4.925 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-05/14.14, allocations: 25.88 kB / 4.925 GB, free: 15.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008559/14.15, allocations: 1.971 MB / 4.927 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006459/14.15, allocations: 0.9409 MB / 4.928 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007785/14.16, allocations: 5.803 MB / 4.934 GB, free: 12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006254/14.17, allocations: 0.5234 MB / 4.934 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009776/14.17, allocations: 223.7 kB / 4.934 GB, free: 11.98 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.001497/14.17, allocations: 366.4 kB / 4.935 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009961/14.17, allocations: 308.2 kB / 4.935 GB, free: 11.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01773/14.19, allocations: 8.045 MB / 4.943 GB, free: 8.961 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.684e-05/14.19, allocations: 38.44 kB / 4.943 GB, free: 8.961 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/14.19, allocations: 7.234 kB / 4.943 GB, free: 8.957 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01278/14.2, allocations: 6.016 MB / 4.949 GB, free: 6.762 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03429/14.24, allocations: 13.3 MB / 4.962 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.95e-05/14.24, allocations: 0 / 4.962 GB, free: 2.258 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005263/14.24, allocations: 0.7067 MB / 4.963 GB, free: 1.836 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01214/14.25, allocations: 2.576 MB / 4.965 GB, free: 108 kB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001281/14.25, allocations: 181.7 kB / 4.965 GB, free: 0 / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008208/14.26, allocations: 5.659 MB / 4.971 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.562e-06/14.26, allocations: 1.594 kB / 4.971 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02765/14.29, allocations: 10.59 MB / 4.981 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00405/14.29, allocations: 1.079 MB / 4.982 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001494/14.3, allocations: 128.4 kB / 4.982 GB, free: 0.6094 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0057/14.3, allocations: 428.6 kB / 4.983 GB, free: 328 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001109/14.3, allocations: 261.5 kB / 4.983 GB, free: 168 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007279/14.3, allocations: 172.8 kB / 4.983 GB, free: 28 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003575/14.31, allocations: 1.451 MB / 4.985 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.214e-06/14.31, allocations: 0 / 4.985 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01523/14.32, allocations: 3.186 MB / 4.988 GB, free: 11.88 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.01103/14.33, allocations: 3.163 MB / 4.991 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02697/14.36, allocations: 10.35 MB / 5.001 GB, free: 1.039 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/14.36, allocations: 1.109 kB / 5.001 GB, free: 1.039 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.3578/14.72, allocations: 3.645 MB / 5.004 GB, free: 74.34 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009529/14.73, allocations: 1.408 MB / 5.006 GB, free: 74.32 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0238/14.75, allocations: 8.738 MB / 5.014 GB, free: 73.22 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00342/14.76, allocations: 2.473 MB / 5.017 GB, free: 72.45 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01313/14.77, allocations: 2.92 MB / 5.02 GB, free: 72.38 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002194/14.77, allocations: 315.2 kB / 5.02 GB, free: 72.38 MB / 0.5417 GB Notification: Performance of SimCode: time 1.997e-06/14.77, allocations: 1.281 kB / 5.02 GB, free: 72.38 MB / 0.5417 GB Notification: Performance of Templates: time 0.246/15.02, allocations: 130.4 MB / 5.147 GB, free: 50.63 MB / 0.5417 GB