Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.626/1.626, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.01e-05/3.027e-05, allocations: 0 / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.259, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.48/10.74, allocations: 3.66 GB / 3.918 GB, free: 38.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/10.74, allocations: 78.03 kB / 3.918 GB, free: 38.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.139/13.88, allocations: 0.5462 GB / 4.464 GB, free: 27.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.755e-06/13.88, allocations: 0 / 4.464 GB, free: 27.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.913e-05/13.88, allocations: 31.06 kB / 4.464 GB, free: 27.26 MB / 378.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.0122/13.89, allocations: 2.983 MB / 4.467 GB, free: 25.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/13.89, allocations: 19.52 kB / 4.467 GB, free: 25.49 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005011/13.89, allocations: 146.2 kB / 4.467 GB, free: 25.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007579/13.89, allocations: 122.2 kB / 4.467 GB, free: 25.4 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002399/13.9, allocations: 0.734 MB / 4.468 GB, free: 25.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/13.9, allocations: 130 kB / 4.468 GB, free: 25.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003325/13.9, allocations: 92.59 kB / 4.468 GB, free: 25.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003573/13.9, allocations: 1.416 MB / 4.469 GB, free: 24.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.844e-05/13.9, allocations: 6.438 kB / 4.469 GB, free: 24.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002185/13.9, allocations: 42.06 kB / 4.469 GB, free: 24.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/13.9, allocations: 61.88 kB / 4.47 GB, free: 24.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003669/13.91, allocations: 1.398 MB / 4.471 GB, free: 24.78 MB / 378.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.0134/13.92, allocations: 5.775 MB / 4.477 GB, free: 22.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002684/13.92, allocations: 0.8827 MB / 4.477 GB, free: 22.01 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/13.92, allocations: 486.5 kB / 4.478 GB, free: 22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001689/13.92, allocations: 1.75 MB / 4.48 GB, free: 20.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/13.92, allocations: 46.38 kB / 4.48 GB, free: 20.08 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000918/13.93, allocations: 108.3 kB / 4.48 GB, free: 20.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=82): time 3.967e-06/13.93, allocations: 0 / 4.48 GB, free: 20.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.0257/13.95, allocations: 4.295 MB / 4.484 GB, free: 19.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/13.95, allocations: 115 kB / 4.484 GB, free: 19.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/13.95, allocations: 0.6517 MB / 4.485 GB, free: 18.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002889/13.95, allocations: 44.23 kB / 4.485 GB, free: 18.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003114/13.95, allocations: 496.9 kB / 4.485 GB, free: 18.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004019/13.95, allocations: 335.7 kB / 4.485 GB, free: 18.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/13.95, allocations: 25.62 kB / 4.485 GB, free: 18.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/13.95, allocations: 364.8 kB / 4.486 GB, free: 17.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/13.96, allocations: 0.5383 MB / 4.486 GB, free: 17.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/13.96, allocations: 0.9193 MB / 4.487 GB, free: 16.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001771/13.96, allocations: 0.7381 MB / 4.488 GB, free: 16.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.427e-06/13.96, allocations: 2.969 kB / 4.488 GB, free: 16.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004543/13.96, allocations: 1.701 MB / 4.49 GB, free: 15.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001023/13.96, allocations: 4.76 MB / 4.494 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.619e-05/13.96, allocations: 12.66 kB / 4.494 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001733/13.97, allocations: 250.7 kB / 4.495 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002313/13.97, allocations: 282.2 kB / 4.495 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/13.97, allocations: 0.8267 MB / 4.496 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/13.97, allocations: 119.2 kB / 4.496 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003171/13.97, allocations: 84.61 kB / 4.496 GB, free: 10.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/13.97, allocations: 5.859 kB / 4.496 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004234/13.98, allocations: 1.626 MB / 4.497 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.094e-05/13.98, allocations: 14.34 kB / 4.497 GB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001577/13.98, allocations: 254.2 kB / 4.498 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002238/13.98, allocations: 276.3 kB / 4.498 GB, free: 9.312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/13.98, allocations: 0.8189 MB / 4.499 GB, free: 8.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/13.98, allocations: 107.5 kB / 4.499 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/13.98, allocations: 80.11 kB / 4.499 GB, free: 8.375 MB / 378.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.0005159/13.99, allocations: 191 kB / 4.499 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003414/13.99, allocations: 94.88 kB / 4.499 GB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004678/13.99, allocations: 1.735 MB / 4.501 GB, free: 6.609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/13.99, allocations: 11.75 kB / 4.501 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/13.99, allocations: 4 kB / 4.501 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/13.99, allocations: 7.469 kB / 4.501 GB, free: 6.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006719/14, allocations: 2.764 MB / 4.504 GB, free: 4.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.016e-05/14, allocations: 3.938 kB / 4.504 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001581/14, allocations: 184.7 kB / 4.504 GB, free: 4.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002264/14, allocations: 304.6 kB / 4.504 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/14, allocations: 39.03 kB / 4.504 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/14, allocations: 0.7862 MB / 4.505 GB, free: 3.086 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/14, allocations: 4.031 kB / 4.505 GB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004845/14.01, allocations: 2.174 MB / 4.507 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009182/14.01, allocations: 325.7 kB / 4.507 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002711/14.01, allocations: 27.61 kB / 4.507 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/14.01, allocations: 82.34 kB / 4.507 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/14.01, allocations: 70.7 kB / 4.507 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001731/14.01, allocations: 58.59 kB / 4.508 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009223/14.01, allocations: 0.5115 MB / 4.508 GB, free: 112 kB / 378.7 MB Notification: Performance of sort global known variables: time 5.81e-07/14.01, allocations: 4 kB / 4.508 GB, free: 108 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.006275/14.02, allocations: 1.339 MB / 4.509 GB, free: 14.8 MB / 394.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.01277/14.03, allocations: 5.092 MB / 4.514 GB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0074/14.04, allocations: 2.392 MB / 4.517 GB, free: 8.102 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/14.04, allocations: 2.125 kB / 4.517 GB, free: 8.102 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002048/14.04, allocations: 0.6523 MB / 4.517 GB, free: 7.504 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00413/14.04, allocations: 456.9 kB / 4.518 GB, free: 7.172 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01116/14.06, allocations: 2.696 MB / 4.52 GB, free: 4.789 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/14.06, allocations: 1.136 MB / 4.521 GB, free: 3.781 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001412/14.06, allocations: 432.2 kB / 4.522 GB, free: 3.402 MB / 394.7 MB Notification: Performance of SimCode: time 2.074e-06/14.06, allocations: 3.938 kB / 4.522 GB, free: 3.398 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.053/18.11, allocations: 40.81 MB / 4.562 GB, free: 38.27 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat