Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.044/2.044, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.573e-05/3.575e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1131, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.13/11.24, allocations: 3.662 GB / 3.976 GB, free: 21.11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/11.24, allocations: 83.95 kB / 3.976 GB, free: 21.02 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.015/20.26, allocations: 1.427 GB / 5.403 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.843e-06/20.26, allocations: 0 / 5.403 GB, free: 23.99 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002934/20.26, allocations: 52.97 kB / 5.403 GB, free: 23.98 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.03287/20.29, allocations: 7.088 MB / 5.41 GB, free: 19.82 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/20.29, allocations: 14.31 kB / 5.41 GB, free: 19.81 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001219/20.29, allocations: 271.7 kB / 5.41 GB, free: 19.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00212/20.3, allocations: 271.7 kB / 5.411 GB, free: 19.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005938/20.3, allocations: 1.508 MB / 5.412 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/20.3, allocations: 141 kB / 5.412 GB, free: 19.19 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/20.3, allocations: 186.1 kB / 5.412 GB, free: 19.19 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009073/20.31, allocations: 2.885 MB / 5.415 GB, free: 18.91 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.209e-05/20.31, allocations: 3.938 kB / 5.415 GB, free: 18.9 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005643/20.31, allocations: 85.88 kB / 5.415 GB, free: 18.9 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003144/20.31, allocations: 159.4 kB / 5.415 GB, free: 18.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009726/20.32, allocations: 3.122 MB / 5.419 GB, free: 18.86 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03253/20.36, allocations: 10.89 MB / 5.429 GB, free: 13.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005983/20.36, allocations: 1.816 MB / 5.431 GB, free: 13.09 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002157/20.36, allocations: 0.7599 MB / 5.432 GB, free: 12.79 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003808/20.37, allocations: 3.485 MB / 5.435 GB, free: 9.113 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.792e-05/20.37, allocations: 64.69 kB / 5.435 GB, free: 9.055 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001994/20.37, allocations: 210.1 kB / 5.435 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=150): time 8.937e-06/20.37, allocations: 3 kB / 5.435 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of matching and sorting (n=150): time 0.005931/20.38, allocations: 1.783 MB / 5.437 GB, free: 8.266 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.833e-05/20.38, allocations: 199.5 kB / 5.437 GB, free: 8.039 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002868/20.38, allocations: 1.307 MB / 5.439 GB, free: 7.516 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0005827/20.38, allocations: 61.11 kB / 5.439 GB, free: 7.461 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008008/20.38, allocations: 0.9496 MB / 5.44 GB, free: 6.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000871/20.38, allocations: 0.5233 MB / 5.44 GB, free: 6.258 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000315/20.38, allocations: 47.81 kB / 5.44 GB, free: 6.219 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000178/20.38, allocations: 398.2 kB / 5.44 GB, free: 5.871 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002431/20.38, allocations: 0.794 MB / 5.441 GB, free: 5.449 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003062/20.39, allocations: 1.478 MB / 5.443 GB, free: 3.762 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003148/20.39, allocations: 1.195 MB / 5.444 GB, free: 2.688 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.068e-05/20.39, allocations: 8 kB / 5.444 GB, free: 2.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.008613/20.4, allocations: 2.791 MB / 5.447 GB, free: 152 kB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003437/20.4, allocations: 8.328 MB / 5.455 GB, free: 7.164 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.512e-05/20.4, allocations: 27.69 kB / 5.455 GB, free: 7.141 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00526/20.41, allocations: 0.6037 MB / 5.455 GB, free: 6.695 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004313/20.41, allocations: 0.4913 MB / 5.456 GB, free: 6.277 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002479/20.41, allocations: 1.506 MB / 5.457 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/20.42, allocations: 166.3 kB / 5.457 GB, free: 4.664 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009299/20.42, allocations: 159.9 kB / 5.458 GB, free: 4.523 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/20.42, allocations: 7.469 kB / 5.458 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008805/20.43, allocations: 2.602 MB / 5.46 GB, free: 2.172 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.471e-05/20.43, allocations: 20 kB / 5.46 GB, free: 2.152 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/20.43, allocations: 329.2 kB / 5.461 GB, free: 1.906 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004791/20.44, allocations: 0.543 MB / 5.461 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/20.44, allocations: 1.259 MB / 5.462 GB, free: 188 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003196/20.44, allocations: 163.5 kB / 5.462 GB, free: 48 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001619/20.44, allocations: 200.5 kB / 5.463 GB, free: 0 / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 94 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (262): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.4915/20.93, allocations: 241.6 kB / 5.463 GB, free: 40.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000726/20.93, allocations: 184.5 kB / 5.463 GB, free: 40.94 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/20.95, allocations: 3.107 MB / 5.466 GB, free: 40.76 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.84e-05/20.95, allocations: 17.52 kB / 5.466 GB, free: 40.76 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/20.95, allocations: 5.531 kB / 5.466 GB, free: 40.76 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.695e-05/20.95, allocations: 8.75 kB / 5.466 GB, free: 40.76 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01506/20.96, allocations: 4.563 MB / 5.471 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.991e-05/20.96, allocations: 4.812 kB / 5.471 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002898/20.96, allocations: 305.2 kB / 5.471 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004724/20.97, allocations: 0.5594 MB / 5.471 GB, free: 40.19 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005877/20.97, allocations: 60.72 kB / 5.471 GB, free: 40.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/20.97, allocations: 1.51 MB / 5.473 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-05/20.97, allocations: 9.578 kB / 5.473 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007265/20.98, allocations: 2.502 MB / 5.475 GB, free: 38.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/20.98, allocations: 296.6 kB / 5.476 GB, free: 38.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008481/20.98, allocations: 39.59 kB / 5.476 GB, free: 38.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003005/20.98, allocations: 109 kB / 5.476 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006494/20.98, allocations: 137.2 kB / 5.476 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004405/20.99, allocations: 115.9 kB / 5.476 GB, free: 38.09 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002877/20.99, allocations: 1.025 MB / 5.477 GB, free: 37.97 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.092e-06/20.99, allocations: 0.8125 kB / 5.477 GB, free: 37.97 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01562/21, allocations: 3.081 MB / 5.48 GB, free: 37.92 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.02336/21.03, allocations: 8.351 MB / 5.488 GB, free: 34.99 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01047/21.04, allocations: 3.815 MB / 5.492 GB, free: 34.33 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.837e-05/21.04, allocations: 4.594 kB / 5.492 GB, free: 34.33 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003006/21.04, allocations: 0.9197 MB / 5.493 GB, free: 34.32 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007883/21.05, allocations: 0.8497 MB / 5.494 GB, free: 34.29 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01776/21.07, allocations: 4.738 MB / 5.498 GB, free: 33.58 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001958/21.07, allocations: 1.646 MB / 5.5 GB, free: 32.85 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003208/21.07, allocations: 0.8981 MB / 5.501 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of SimCode: time 1.784e-06/21.07, allocations: 0 / 5.501 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.114/26.19, allocations: 90.76 MB / 5.589 GB, free: 26.42 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat