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.2_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 2.116/2.116, allocations: 194.9 MB / 211.2 MB, free: 9.137 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.169e-05, allocations: 4 kB / 258.8 MB, free: 9.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3212, allocations: 44.51 MB / 303.3 MB, free: 12.7 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls): time 0.6462/0.9675, allocations: 198.9 MB / 0.4905 GB, free: 13.81 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03608/1.004, allocations: 16.56 MB / 0.5066 GB, free: 9.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003371/1.007, allocations: 85.12 kB / 0.5067 GB, free: 9.273 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003904/1.011, allocations: 0.8988 MB / 0.5076 GB, free: 8.656 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0174/1.028, allocations: 3.732 MB / 0.5112 GB, free: 5.391 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01649/1.045, allocations: 3.836 MB / 0.515 GB, free: 1.664 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00904/1.054, allocations: 3.517 MB / 0.5184 GB, free: 14.26 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004012/1.058, allocations: 1.528 MB / 0.5199 GB, free: 12.74 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01287/1.071, allocations: 3.682 MB / 0.5235 GB, free: 9.309 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005818/1.077, allocations: 2.065 MB / 0.5255 GB, free: 7.398 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02476/1.102, allocations: 8.171 MB / 0.5335 GB, free: 15.34 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003842/1.106, allocations: 400 kB / 0.5339 GB, free: 14.95 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00348/1.109, allocations: 1.514 MB / 0.5354 GB, free: 13.55 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002484/1.112, allocations: 388 kB / 0.5357 GB, free: 13.17 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01947/1.131, allocations: 6.73 MB / 0.5423 GB, free: 6.426 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/1.131, allocations: 0 / 0.5423 GB, free: 6.426 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.426e-06/1.131, allocations: 0 / 0.5423 GB, free: 6.426 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002048/1.131, allocations: 0 / 0.5423 GB, free: 6.426 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01969/1.151, allocations: 4.389 MB / 0.5466 GB, free: 1.949 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/1.151, allocations: 8.031 kB / 0.5466 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00284/1.154, allocations: 411.6 kB / 0.547 GB, free: 1.535 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007295/1.161, allocations: 1.976 MB / 0.5489 GB, free: 15.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005903/1.162, allocations: 356.1 kB / 0.5493 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001496/1.164, allocations: 291.8 kB / 0.5495 GB, free: 14.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01714/1.181, allocations: 5.347 MB / 0.5548 GB, free: 9.426 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000139/1.181, allocations: 7.938 kB / 0.5548 GB, free: 9.418 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001088/1.182, allocations: 124 kB / 0.5549 GB, free: 9.297 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000889/1.183, allocations: 409.7 kB / 0.5553 GB, free: 8.895 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0188/1.202, allocations: 5.668 MB / 0.5608 GB, free: 3.215 MB / 426.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.0567/1.259, allocations: 21.97 MB / 0.5823 GB, free: 11.69 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/1.271, allocations: 3.63 MB / 0.5858 GB, free: 8.055 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004092/1.275, allocations: 3.199 MB / 0.5889 GB, free: 4.188 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008395/1.283, allocations: 2.582 MB / 0.5914 GB, free: 1.543 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002274/1.286, allocations: 272.8 kB / 0.5917 GB, free: 1.273 MB / 458.7 MB Notification: Performance of pre-optimization done (n=316): time 1.241e-05/1.286, allocations: 0 / 0.5917 GB, free: 1.273 MB / 458.7 MB Notification: Performance of matching and sorting (n=376): time 0.5258/1.812, allocations: 33.47 MB / 0.6244 GB, free: 181.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/1.812, allocations: 325.7 kB / 0.6247 GB, free: 180.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003606/1.815, allocations: 1.86 MB / 0.6265 GB, free: 178.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001091/1.817, allocations: 101.7 kB / 0.6266 GB, free: 178.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/1.818, allocations: 1.248 MB / 0.6278 GB, free: 177.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002191/1.82, allocations: 1.323 MB / 0.6291 GB, free: 176.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008444/1.821, allocations: 88 kB / 0.6292 GB, free: 176.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003481/1.821, allocations: 488.1 kB / 0.6297 GB, free: 175.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009774/1.831, allocations: 2.92 MB / 0.6325 GB, free: 172.7 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01058/1.842, allocations: 3.957 MB / 0.6364 GB, free: 168.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/1.853, allocations: 3.491 MB / 0.6398 GB, free: 164.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.562e-05/1.853, allocations: 8 kB / 0.6398 GB, free: 164.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=550) (initialization): time 0.0295/1.882, allocations: 8.516 MB / 0.6481 GB, free: 156.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002554/1.885, allocations: 11.28 MB / 0.6591 GB, free: 144.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-05/1.885, allocations: 28 kB / 0.6592 GB, free: 144 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01625/1.901, allocations: 2.668 MB / 0.6618 GB, free: 141.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00783/1.909, allocations: 0.9477 MB / 0.6627 GB, free: 140.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/1.925, allocations: 6.691 MB / 0.6692 GB, free: 133.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007973/1.933, allocations: 0.5419 MB / 0.6698 GB, free: 133 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.934, allocations: 246.8 kB / 0.67 GB, free: 132.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/1.934, allocations: 4.938 kB / 0.67 GB, free: 132.8 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03004/1.965, allocations: 8.233 MB / 0.678 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001293/1.965, allocations: 28 kB / 0.6781 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02012/1.985, allocations: 2.503 MB / 0.6805 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01078/1.996, allocations: 0.9551 MB / 0.6814 GB, free: 121 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02043/2.016, allocations: 6.56 MB / 0.6879 GB, free: 114.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009473/2.026, allocations: 0.5186 MB / 0.6884 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001347/2.027, allocations: 239.9 kB / 0.6886 GB, free: 113.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * Number of states: 0 () * Number of discrete variables: 16 (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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (505): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 4 * 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.004034/2.031, allocations: 1.031 MB / 0.6896 GB, free: 112.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001403/2.033, allocations: 300.4 kB / 0.6899 GB, free: 112.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03162/2.064, allocations: 8.716 MB / 0.6984 GB, free: 103.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.055e-05/2.064, allocations: 40 kB / 0.6984 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/2.064, allocations: 7.938 kB / 0.6984 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03077/2.095, allocations: 6.815 MB / 0.7051 GB, free: 96.51 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06034/2.156, allocations: 13.02 MB / 0.7178 GB, free: 83.49 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.226e-05/2.156, allocations: 7.984 kB / 0.7178 GB, free: 83.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009073/2.165, allocations: 0.6982 MB / 0.7185 GB, free: 82.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02643/2.191, allocations: 3.027 MB / 0.7215 GB, free: 79.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001419/2.193, allocations: 179.8 kB / 0.7216 GB, free: 79.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01836/2.211, allocations: 6.307 MB / 0.7278 GB, free: 73.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/2.211, allocations: 11.91 kB / 0.7278 GB, free: 73.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05011/2.261, allocations: 11.02 MB / 0.7386 GB, free: 61.97 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003739/2.265, allocations: 1.051 MB / 0.7396 GB, free: 60.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001634/2.267, allocations: 135.9 kB / 0.7397 GB, free: 60.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006863/2.274, allocations: 415.2 kB / 0.7401 GB, free: 60.36 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001123/2.275, allocations: 258.8 kB / 0.7404 GB, free: 60.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007138/2.276, allocations: 187.9 kB / 0.7405 GB, free: 59.92 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002763/2.278, allocations: 1.399 MB / 0.7419 GB, free: 58.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.31e-07/2.278, allocations: 0 / 0.7419 GB, free: 58.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01248/2.291, allocations: 2.948 MB / 0.7448 GB, free: 55.76 MB / 458.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 (372): * Single equations (assignments): 360 * 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.008589/2.3, allocations: 2.13 MB / 0.7469 GB, free: 53.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03717/2.337, allocations: 11.48 MB / 0.7581 GB, free: 42.31 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-05/2.337, allocations: 6.062 kB / 0.7581 GB, free: 42.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01185/2.349, allocations: 3.478 MB / 0.7615 GB, free: 38.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01099/2.36, allocations: 1.338 MB / 0.7628 GB, free: 37.49 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02971/2.389, allocations: 11.66 MB / 0.7742 GB, free: 25.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002523/2.392, allocations: 2.453 MB / 0.7766 GB, free: 23.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003008/2.395, allocations: 407.2 kB / 0.7769 GB, free: 22.86 MB / 458.7 MB Notification: Performance of SimCode: time 1.333e-06/2.395, allocations: 0 / 0.7769 GB, free: 22.86 MB / 458.7 MB Notification: Performance of Templates: time 0.5197/2.915, allocations: 149.5 MB / 0.9229 GB, free: 76.15 MB / 458.7 MB