Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.625e-05/3.629e-05, allocations: 4 kB / 255.4 MB, free: 3.117 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0995/0.09957, allocations: 44.51 MB / 300 MB, free: 6.547 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.45/10.55, allocations: 3.666 GB / 3.959 GB, free: 9.391 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002883/10.55, allocations: 80.33 kB / 3.959 GB, free: 9.352 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.331/13.88, allocations: 0.5497 GB / 4.508 GB, free: 37.65 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/13.88, allocations: 0 / 4.508 GB, free: 37.65 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001077/13.88, allocations: 25.94 kB / 4.508 GB, free: 37.64 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.01294/13.89, allocations: 2.985 MB / 4.511 GB, free: 36.19 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/13.89, allocations: 9.969 kB / 4.511 GB, free: 36.19 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005295/13.89, allocations: 149.3 kB / 4.511 GB, free: 36.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007442/13.89, allocations: 128 kB / 4.512 GB, free: 36.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002499/13.9, allocations: 0.737 MB / 4.512 GB, free: 35.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/13.9, allocations: 133 kB / 4.512 GB, free: 35.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003061/13.9, allocations: 90.72 kB / 4.513 GB, free: 35.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003625/13.9, allocations: 1.41 MB / 4.514 GB, free: 35.53 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.618e-05/13.9, allocations: 5.312 kB / 4.514 GB, free: 35.53 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002159/13.9, allocations: 43.5 kB / 4.514 GB, free: 35.53 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/13.9, allocations: 58.91 kB / 4.514 GB, free: 35.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003623/13.9, allocations: 1.4 MB / 4.515 GB, free: 35.52 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.01379/13.92, allocations: 6.027 MB / 4.521 GB, free: 32.51 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/13.92, allocations: 0.8851 MB / 4.522 GB, free: 32.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/13.92, allocations: 487.1 kB / 4.523 GB, free: 32.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001747/13.92, allocations: 1.753 MB / 4.524 GB, free: 30.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/13.92, allocations: 43.75 kB / 4.524 GB, free: 30.55 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009671/13.92, allocations: 110.3 kB / 4.524 GB, free: 30.5 MB / 426.7 MB Notification: Performance of pre-optimization done (n=82): time 3.858e-06/13.92, allocations: 0 / 4.524 GB, free: 30.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=94): time 0.05112/13.98, allocations: 4.31 MB / 4.529 GB, free: 30.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/13.98, allocations: 114 kB / 4.529 GB, free: 29.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001746/13.98, allocations: 0.6503 MB / 4.529 GB, free: 29.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003531/13.98, allocations: 54.42 kB / 4.529 GB, free: 29.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000425/13.98, allocations: 486.4 kB / 4.53 GB, free: 29.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004995/13.98, allocations: 342.5 kB / 4.53 GB, free: 29.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/13.98, allocations: 24.47 kB / 4.53 GB, free: 29.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/13.98, allocations: 364.7 kB / 4.531 GB, free: 28.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001984/13.98, allocations: 0.5346 MB / 4.531 GB, free: 28.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01048/13.99, allocations: 0.9144 MB / 4.532 GB, free: 28.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/13.99, allocations: 0.7367 MB / 4.533 GB, free: 28.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.777e-05/13.99, allocations: 3.719 kB / 4.533 GB, free: 28.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01411/14.01, allocations: 1.706 MB / 4.534 GB, free: 28.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00119/14.01, allocations: 4.76 MB / 4.539 GB, free: 23.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.196e-05/14.01, allocations: 12.53 kB / 4.539 GB, free: 23.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002275/14.01, allocations: 247.6 kB / 4.539 GB, free: 23.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/14.02, allocations: 288.2 kB / 4.54 GB, free: 23.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/14.02, allocations: 0.8176 MB / 4.54 GB, free: 22.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/14.02, allocations: 112.3 kB / 4.541 GB, free: 22.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004061/14.02, allocations: 80.66 kB / 4.541 GB, free: 22.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/14.02, allocations: 4.562 kB / 4.541 GB, free: 22.71 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00457/14.02, allocations: 1.632 MB / 4.542 GB, free: 22.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.782e-05/14.02, allocations: 12.28 kB / 4.542 GB, free: 22.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001624/14.03, allocations: 252.8 kB / 4.542 GB, free: 22.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/14.03, allocations: 281.7 kB / 4.543 GB, free: 22.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/14.03, allocations: 0.815 MB / 4.544 GB, free: 22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/14.03, allocations: 111.3 kB / 4.544 GB, free: 22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002648/14.03, allocations: 84.55 kB / 4.544 GB, free: 22 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006056/14.03, allocations: 190 kB / 4.544 GB, free: 21.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003953/14.03, allocations: 90.66 kB / 4.544 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005642/14.04, allocations: 1.746 MB / 4.546 GB, free: 21.66 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.451e-05/14.04, allocations: 11.72 kB / 4.546 GB, free: 21.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.006e-06/14.04, allocations: 0 / 4.546 GB, free: 21.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.986e-05/14.04, allocations: 7.094 kB / 4.546 GB, free: 21.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007052/14.05, allocations: 2.764 MB / 4.548 GB, free: 21.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.437e-06/14.05, allocations: 0 / 4.548 GB, free: 21.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/14.05, allocations: 183.5 kB / 4.549 GB, free: 21.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002239/14.05, allocations: 305.2 kB / 4.549 GB, free: 21.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000182/14.05, allocations: 45.7 kB / 4.549 GB, free: 21.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/14.05, allocations: 0.7801 MB / 4.55 GB, free: 20.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/14.05, allocations: 3.938 kB / 4.55 GB, free: 20.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004795/14.06, allocations: 2.177 MB / 4.552 GB, free: 20.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000904/14.06, allocations: 330.3 kB / 4.552 GB, free: 20.19 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/14.06, allocations: 23.62 kB / 4.552 GB, free: 20.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/14.06, allocations: 82.36 kB / 4.552 GB, free: 20.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/14.06, allocations: 67.16 kB / 4.552 GB, free: 20.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/14.06, allocations: 59.42 kB / 4.552 GB, free: 20.18 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009551/14.06, allocations: 0.5156 MB / 4.553 GB, free: 20.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.5e-07/14.06, allocations: 0 / 4.553 GB, free: 20.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005975/14.07, allocations: 1.345 MB / 4.554 GB, free: 19.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01193/14.08, allocations: 5.078 MB / 4.559 GB, free: 18.13 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006811/14.08, allocations: 2.393 MB / 4.561 GB, free: 17.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/14.08, allocations: 0 / 4.561 GB, free: 17.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/14.09, allocations: 0.6448 MB / 4.562 GB, free: 17.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003738/14.09, allocations: 462.6 kB / 4.563 GB, free: 17.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009679/14.1, allocations: 2.685 MB / 4.565 GB, free: 16.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007276/14.1, allocations: 1.137 MB / 4.566 GB, free: 15.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/14.1, allocations: 439.4 kB / 4.567 GB, free: 15.53 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/14.1, allocations: 0 / 4.567 GB, free: 15.53 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.747/17.85, allocations: 40.84 MB / 4.607 GB, free: 12.15 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat