Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2WithControls",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.126/2.126, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.559e-05/3.569e-05, allocations: 7.797 kB / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1187, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.43/11.55, allocations: 3.574 GB / 3.909 GB, free: 119.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/11.55, allocations: 84.27 kB / 3.909 GB, free: 119.2 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.234/16.79, allocations: 0.8845 GB / 4.794 GB, free: 3.82 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.114e-06/16.79, allocations: 0 / 4.794 GB, free: 3.82 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003921/16.79, allocations: 79.92 kB / 4.794 GB, free: 3.742 MB / 490.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.03115/16.82, allocations: 5.812 MB / 4.799 GB, free: 13.84 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/16.82, allocations: 12.03 kB / 4.799 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003152/16.82, allocations: 451.1 kB / 4.8 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004218/16.83, allocations: 423.5 kB / 4.8 GB, free: 12.96 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01264/16.84, allocations: 2.383 MB / 4.802 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000751/16.84, allocations: 364.8 kB / 4.803 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002362/16.84, allocations: 296 kB / 4.803 GB, free: 9.848 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02259/16.87, allocations: 5.214 MB / 4.808 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002083/16.87, allocations: 7.938 kB / 4.808 GB, free: 4.422 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001972/16.87, allocations: 143.9 kB / 4.808 GB, free: 4.281 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005598/16.87, allocations: 261.9 kB / 4.809 GB, free: 4.023 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4679/17.34, allocations: 5.442 MB / 4.814 GB, free: 33.18 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.0628/17.4, allocations: 20.61 MB / 4.834 GB, free: 24.41 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01225/17.41, allocations: 3.553 MB / 4.838 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006645/17.42, allocations: 2.238 MB / 4.84 GB, free: 24.35 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003629/17.42, allocations: 3.241 MB / 4.843 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008493/17.43, allocations: 2.592 MB / 4.845 GB, free: 20.66 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003298/17.43, allocations: 290.4 kB / 4.846 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=317): time 2.213e-05/17.43, allocations: 1.094 kB / 4.846 GB, free: 20.58 MB / 0.4948 GB Notification: Performance of matching and sorting (n=377): time 0.2132/17.65, allocations: 30.3 MB / 4.875 GB, free: 19.18 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001878/17.65, allocations: 481.6 kB / 4.876 GB, free: 18.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004907/17.65, allocations: 1.91 MB / 4.878 GB, free: 18.41 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001489/17.65, allocations: 98.8 kB / 4.878 GB, free: 18.38 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001808/17.66, allocations: 1.293 MB / 4.879 GB, free: 17.94 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002738/17.66, allocations: 1.322 MB / 4.88 GB, free: 17.28 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/17.66, allocations: 87.31 kB / 4.88 GB, free: 17.28 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000434/17.66, allocations: 482.9 kB / 4.881 GB, free: 16.96 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007768/17.67, allocations: 2.606 MB / 4.883 GB, free: 16.95 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008993/17.68, allocations: 3.568 MB / 4.887 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008928/17.69, allocations: 3.149 MB / 4.89 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-05/17.69, allocations: 7.062 kB / 4.89 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=535) (initialization): time 0.03227/17.72, allocations: 8.203 MB / 4.898 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003977/17.72, allocations: 10.25 MB / 4.908 GB, free: 20.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001161/17.72, allocations: 25.62 kB / 4.908 GB, free: 20.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01258/17.73, allocations: 2.169 MB / 4.91 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00863/17.74, allocations: 0.9339 MB / 4.911 GB, free: 20.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/17.75, allocations: 5.958 MB / 4.917 GB, free: 17.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009598/17.76, allocations: 0.5414 MB / 4.917 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001943/17.77, allocations: 226.4 kB / 4.918 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/17.77, allocations: 7.156 kB / 4.918 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03513/17.8, allocations: 8.424 MB / 4.926 GB, free: 17.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/17.8, allocations: 23.53 kB / 4.926 GB, free: 17.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01032/17.81, allocations: 1.985 MB / 4.928 GB, free: 17.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008693/17.82, allocations: 0.9397 MB / 4.929 GB, free: 17.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009447/17.83, allocations: 5.795 MB / 4.934 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008966/17.84, allocations: 0.5228 MB / 4.935 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00185/17.84, allocations: 225.8 kB / 4.935 GB, free: 14.07 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.003006/17.84, allocations: 362.8 kB / 4.935 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/17.85, allocations: 311.8 kB / 4.936 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02645/17.87, allocations: 8.036 MB / 4.944 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.029e-05/17.87, allocations: 42.94 kB / 4.944 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.18e-05/17.87, allocations: 3.953 kB / 4.944 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01911/17.89, allocations: 6.015 MB / 4.949 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05048/17.94, allocations: 13.3 MB / 4.962 GB, free: 7.504 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.389e-05/17.94, allocations: 4.938 kB / 4.962 GB, free: 7.504 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007592/17.95, allocations: 0.7038 MB / 4.963 GB, free: 7.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01668/17.97, allocations: 2.577 MB / 4.966 GB, free: 7.078 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00156/17.97, allocations: 178.6 kB / 4.966 GB, free: 7.008 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009323/17.98, allocations: 5.652 MB / 4.971 GB, free: 3.051 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/17.98, allocations: 8.406 kB / 4.971 GB, free: 3.051 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03804/18.01, allocations: 10.6 MB / 4.982 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005254/18.02, allocations: 1.08 MB / 4.983 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002314/18.02, allocations: 137.8 kB / 4.983 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00841/18.03, allocations: 426.2 kB / 4.983 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001667/18.03, allocations: 257.7 kB / 4.984 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001542/18.03, allocations: 177.9 kB / 4.984 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.004316/18.04, allocations: 1.439 MB / 4.985 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.252e-06/18.04, allocations: 0 / 4.985 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02091/18.06, allocations: 3.179 MB / 4.988 GB, free: 7.172 MB / 0.5261 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.05314/18.11, allocations: 14.6 MB / 5.002 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03698/18.15, allocations: 10.36 MB / 5.013 GB, free: 2.363 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/18.15, allocations: 5.109 kB / 5.013 GB, free: 2.359 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.4532/18.6, allocations: 3.257 MB / 5.016 GB, free: 77.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01418/18.62, allocations: 1.404 MB / 5.017 GB, free: 77.19 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04747/18.67, allocations: 10.35 MB / 5.027 GB, free: 76.01 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00528/18.67, allocations: 2.476 MB / 5.03 GB, free: 75.23 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01789/18.69, allocations: 2.924 MB / 5.033 GB, free: 75.16 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004826/18.69, allocations: 1.413 MB / 5.034 GB, free: 75.16 MB / 0.5417 GB Notification: Performance of SimCode: time 1.753e-06/18.69, allocations: 4.344 kB / 5.034 GB, free: 75.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3867/19.08, allocations: 165.5 MB / 5.196 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000257/19.08, allocations: 244.6 kB / 5.196 GB, free: 15.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/31.54, allocations: 3.938 kB / 5.196 GB, free: 15.09 MB / 0.5417 GB