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.1_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls") Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.581e-05/3.604e-05, allocations: 8 kB / 225 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2173, allocations: 38.77 MB / 263.8 MB, free: 9.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.182/8.399, allocations: 3.68 GB / 3.938 GB, free: 17.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/8.399, allocations: 78.12 kB / 3.938 GB, free: 17.23 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Examples/TraceSubstances.mo:112:17-112:29:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Examples/TraceSubstances.mo:122:23-122:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Examples/TraceSubstances.mo:168:23-168:37:writable] Warning: Non-array modification '0.01' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 4.543/12.94, allocations: 0.8924 GB / 4.831 GB, free: 10.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.845e-06/12.94, allocations: 0 / 4.831 GB, free: 10.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003128/12.94, allocations: 82.22 kB / 4.831 GB, free: 10.07 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: 820 * Number of variables: 820 Notification: Performance of Generate backend data structure: time 0.02284/12.97, allocations: 6 MB / 4.836 GB, free: 3.992 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/12.97, allocations: 8.031 kB / 4.836 GB, free: 3.984 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003071/12.97, allocations: 405.4 kB / 4.837 GB, free: 3.586 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008189/12.98, allocations: 2.397 MB / 4.839 GB, free: 1.141 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004423/12.98, allocations: 364.5 kB / 4.84 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001525/12.98, allocations: 304.3 kB / 4.84 GB, free: 472 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01581/12.99, allocations: 5.179 MB / 4.845 GB, free: 11.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001453/12.99, allocations: 15.94 kB / 4.845 GB, free: 11.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001333/13, allocations: 135.9 kB / 4.845 GB, free: 10.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004225/13, allocations: 253.9 kB / 4.845 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01563/13.01, allocations: 5.438 MB / 4.851 GB, free: 5.234 MB / 426.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.3684/13.38, allocations: 18.77 MB / 4.869 GB, free: 25.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01515/13.4, allocations: 3.437 MB / 4.872 GB, free: 25.35 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004803/13.4, allocations: 2.192 MB / 4.874 GB, free: 25.33 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002941/13.4, allocations: 3.224 MB / 4.878 GB, free: 21.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006215/13.41, allocations: 2.496 MB / 4.88 GB, free: 21.77 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002025/13.41, allocations: 280.4 kB / 4.88 GB, free: 21.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=314): time 1.223e-05/13.41, allocations: 0 / 4.88 GB, free: 21.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=374): time 0.1494/13.56, allocations: 30.1 MB / 4.91 GB, free: 20.33 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/13.56, allocations: 352.8 kB / 4.91 GB, free: 19.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00368/13.57, allocations: 1.829 MB / 4.912 GB, free: 19.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001073/13.57, allocations: 97.08 kB / 4.912 GB, free: 19.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/13.57, allocations: 1.241 MB / 4.913 GB, free: 19.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001911/13.57, allocations: 1.319 MB / 4.914 GB, free: 18.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005411/13.57, allocations: 86.09 kB / 4.914 GB, free: 18.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003151/13.57, allocations: 484.1 kB / 4.915 GB, free: 18.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005921/13.58, allocations: 2.569 MB / 4.917 GB, free: 18.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007222/13.58, allocations: 3.543 MB / 4.921 GB, free: 17.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007097/13.59, allocations: 3.146 MB / 4.924 GB, free: 16.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.401e-05/13.59, allocations: 9.156 kB / 4.924 GB, free: 16.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=539) (initialization): time 0.02318/13.61, allocations: 8.088 MB / 4.932 GB, free: 16.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003997/13.62, allocations: 10.66 MB / 4.942 GB, free: 21.43 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.855e-05/13.62, allocations: 28.09 kB / 4.942 GB, free: 21.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009672/13.63, allocations: 2.154 MB / 4.944 GB, free: 21.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006349/13.63, allocations: 0.9311 MB / 4.945 GB, free: 21.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008048/13.64, allocations: 5.918 MB / 4.951 GB, free: 18.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006279/13.65, allocations: 0.5352 MB / 4.952 GB, free: 18.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001258/13.65, allocations: 245.8 kB / 4.952 GB, free: 18.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/13.65, allocations: 5.781 kB / 4.952 GB, free: 18.25 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02231/13.67, allocations: 7.809 MB / 4.959 GB, free: 17.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.873e-05/13.67, allocations: 25.66 kB / 4.959 GB, free: 17.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008173/13.68, allocations: 1.989 MB / 4.961 GB, free: 17.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006402/13.69, allocations: 0.9568 MB / 4.962 GB, free: 17.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007503/13.69, allocations: 5.786 MB / 4.968 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005383/13.7, allocations: 0.5204 MB / 4.969 GB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001173/13.7, allocations: 245.8 kB / 4.969 GB, free: 14.81 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 14 (traceVolume.ind,traceDuctIn.ind,traceDuctOut.ind,volume.regularFlow[1],volume.regularFlow[2],volume.regularFlow[3],volume.regularFlow[4],volume.inFlow[4],volume.inFlow[3],volume.inFlow[2],volume.inFlow[1],$whenCondition1,$PRE.NumberOfPeople.nextTimeEvent,NumberOfPeople.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (496): * Single equations (assignments): 486 * 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.001587/13.7, allocations: 359.5 kB / 4.969 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009585/13.7, allocations: 293.8 kB / 4.969 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01882/13.72, allocations: 7.84 MB / 4.977 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.374e-05/13.72, allocations: 44.19 kB / 4.977 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/13.72, allocations: 7.891 kB / 4.977 GB, free: 13.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01323/13.74, allocations: 5.922 MB / 4.983 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0372/13.77, allocations: 13.45 MB / 4.996 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.484e-05/13.77, allocations: 0 / 4.996 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005386/13.78, allocations: 0.7091 MB / 4.997 GB, free: 5.301 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01169/13.79, allocations: 2.548 MB / 4.999 GB, free: 3.594 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001143/13.79, allocations: 180.1 kB / 4.999 GB, free: 3.457 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008327/13.8, allocations: 5.623 MB / 5.005 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.653e-06/13.8, allocations: 0 / 5.005 GB, free: 14.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02782/13.83, allocations: 10.46 MB / 5.015 GB, free: 5.316 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003706/13.83, allocations: 1.051 MB / 5.016 GB, free: 4.418 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00116/13.83, allocations: 132.2 kB / 5.016 GB, free: 4.305 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004954/13.84, allocations: 426.8 kB / 5.017 GB, free: 4.027 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009889/13.84, allocations: 258.6 kB / 5.017 GB, free: 3.875 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007093/13.84, allocations: 188.6 kB / 5.017 GB, free: 3.723 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00334/13.84, allocations: 1.376 MB / 5.018 GB, free: 2.465 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.53e-07/13.84, allocations: 0 / 5.018 GB, free: 2.465 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01699/13.86, allocations: 3.395 MB / 5.022 GB, free: 0 / 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: 2 ($whenCondition1,NumberOfPeople.nextTimeEvent) * Number of discrete states: 1 (NumberOfPeople.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 1 * 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.312/14.17, allocations: 3.288 MB / 5.025 GB, free: 61.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02435/14.2, allocations: 10.3 MB / 5.035 GB, free: 61.31 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/14.2, allocations: 6.844 kB / 5.035 GB, free: 61.31 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008286/14.2, allocations: 3.137 MB / 5.038 GB, free: 61.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00841/14.21, allocations: 1.319 MB / 5.039 GB, free: 61.27 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02441/14.24, allocations: 8.883 MB / 5.048 GB, free: 60.12 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002909/14.24, allocations: 2.451 MB / 5.05 GB, free: 59.34 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002808/14.24, allocations: 409.2 kB / 5.051 GB, free: 59.34 MB / 458.7 MB Notification: Performance of SimCode: time 1.78e-06/14.24, allocations: 0 / 5.051 GB, free: 59.34 MB / 458.7 MB Notification: Performance of Templates: time 0.5105/14.75, allocations: 152.6 MB / 5.2 GB, free: 61.52 MB / 458.7 MB