Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.043/2.043, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.109e-05/4.13e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1123, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.48/11.6, allocations: 3.667 GB / 3.981 GB, free: 39.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003442/11.6, allocations: 83.58 kB / 3.982 GB, free: 39.06 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.16/21.76, allocations: 1.618 GB / 5.6 GB, free: 23.05 MB / 0.5261 GB Notification: Performance of FrontEnd: time 6.352e-06/21.76, allocations: 0 / 5.6 GB, free: 23.05 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004555/21.76, allocations: 86.98 kB / 5.6 GB, free: 23.04 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 0.04492/21.8, allocations: 8.733 MB / 5.609 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/21.8, allocations: 10.78 kB / 5.609 GB, free: 18.27 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002137/21.8, allocations: 416.8 kB / 5.609 GB, free: 18.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002607/21.81, allocations: 399.1 kB / 5.609 GB, free: 18.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009149/21.82, allocations: 2.13 MB / 5.611 GB, free: 17.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005736/21.82, allocations: 0.5032 MB / 5.612 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001435/21.82, allocations: 283.6 kB / 5.612 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/21.83, allocations: 4.813 MB / 5.617 GB, free: 16.46 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001072/21.83, allocations: 16.89 kB / 5.617 GB, free: 16.45 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006895/21.83, allocations: 123.7 kB / 5.617 GB, free: 16.45 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004896/21.83, allocations: 268.9 kB / 5.617 GB, free: 16.44 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01441/21.85, allocations: 4.85 MB / 5.622 GB, free: 16.36 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04937/21.9, allocations: 19.94 MB / 5.641 GB, free: 6.961 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007138/21.9, allocations: 2.514 MB / 5.644 GB, free: 6.91 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003823/21.91, allocations: 1.482 MB / 5.645 GB, free: 6.895 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003649/21.91, allocations: 3.402 MB / 5.649 GB, free: 3.41 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.192e-05/21.91, allocations: 65.69 kB / 5.649 GB, free: 3.367 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=235): time 6.362e-06/21.91, allocations: 3.609 kB / 5.649 GB, free: 3.367 MB / 0.5261 GB Notification: Performance of matching and sorting (n=271): time 0.09083/22, allocations: 13.99 MB / 5.662 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/22, allocations: 231.7 kB / 5.663 GB, free: 264 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005746/22.01, allocations: 2.053 MB / 5.665 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001091/22.01, allocations: 80.86 kB / 5.665 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.001415/22.01, allocations: 1.394 MB / 5.666 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001854/22.01, allocations: 0.9599 MB / 5.667 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000511/22.01, allocations: 85.19 kB / 5.667 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0003455/22.01, allocations: 469.2 kB / 5.668 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005671/22.02, allocations: 1.757 MB / 5.669 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008284/22.03, allocations: 3.021 MB / 5.672 GB, free: 9.211 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007694/22.04, allocations: 2.327 MB / 5.674 GB, free: 7.152 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.359e-05/22.04, allocations: 12 kB / 5.674 GB, free: 7.141 MB / 0.5417 GB Notification: Performance of matching and sorting (n=508) (initialization): time 0.02316/22.06, allocations: 5.511 MB / 5.68 GB, free: 2.168 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.007269/22.07, allocations: 15.53 MB / 5.695 GB, free: 1.438 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/22.07, allocations: 40 kB / 5.695 GB, free: 1.398 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005299/22.07, allocations: 0.7298 MB / 5.696 GB, free: 0.8242 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00813/22.08, allocations: 0.9375 MB / 5.697 GB, free: 32 kB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5492/22.63, allocations: 2.446 MB / 5.699 GB, free: 48.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008573/22.64, allocations: 388.6 kB / 5.699 GB, free: 48.92 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002038/22.64, allocations: 282.9 kB / 5.7 GB, free: 48.92 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/22.64, allocations: 3.25 kB / 5.7 GB, free: 48.92 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02049/22.66, allocations: 5.267 MB / 5.705 GB, free: 48.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002012/22.66, allocations: 41.42 kB / 5.705 GB, free: 48.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00535/22.67, allocations: 0.7333 MB / 5.706 GB, free: 48.66 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00845/22.67, allocations: 0.9227 MB / 5.707 GB, free: 48.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/22.68, allocations: 2.465 MB / 5.709 GB, free: 47.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006896/22.69, allocations: 373.6 kB / 5.709 GB, free: 47.11 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001921/22.69, allocations: 278.3 kB / 5.71 GB, free: 47.11 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 177 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (487): * Single equations (assignments): 480 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.002395/22.69, allocations: 367.8 kB / 5.71 GB, free: 47 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/22.69, allocations: 294.6 kB / 5.71 GB, free: 47 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02055/22.71, allocations: 5.595 MB / 5.716 GB, free: 46.77 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-05/22.71, allocations: 38.39 kB / 5.716 GB, free: 46.77 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/22.71, allocations: 0 / 5.716 GB, free: 46.77 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.542e-05/22.71, allocations: 18 kB / 5.716 GB, free: 46.77 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03567/22.75, allocations: 9.286 MB / 5.725 GB, free: 46.26 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.17e-05/22.75, allocations: 7.188 kB / 5.725 GB, free: 46.26 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005457/22.75, allocations: 0.5699 MB / 5.725 GB, free: 46.26 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006832/22.76, allocations: 0.9114 MB / 5.726 GB, free: 46.23 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001091/22.76, allocations: 126.6 kB / 5.726 GB, free: 46.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003324/22.76, allocations: 2.337 MB / 5.729 GB, free: 44.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.231e-06/22.76, allocations: 7.734 kB / 5.729 GB, free: 44.68 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02708/22.79, allocations: 7.42 MB / 5.736 GB, free: 44.21 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003702/22.8, allocations: 0.8564 MB / 5.737 GB, free: 43.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001401/22.8, allocations: 78.66 kB / 5.737 GB, free: 43.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005734/22.8, allocations: 271.9 kB / 5.737 GB, free: 43.95 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008433/22.8, allocations: 216.9 kB / 5.737 GB, free: 43.94 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006403/22.8, allocations: 183.7 kB / 5.737 GB, free: 43.94 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003733/22.81, allocations: 1.445 MB / 5.739 GB, free: 43.78 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.693e-06/22.81, allocations: 0 / 5.739 GB, free: 43.78 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02223/22.83, allocations: 4.236 MB / 5.743 GB, free: 43.78 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T,volume1.mC_scaled[1],volume2.medium.p,volume2.medium.Xi[1],volume2.medium.T,volume2.mC_scaled[1],volume3.medium.p,volume3.medium.Xi[1],volume3.medium.T,volume3.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 285 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.04987/22.88, allocations: 13.34 MB / 5.756 GB, free: 42 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02342/22.9, allocations: 7.676 MB / 5.763 GB, free: 41.41 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/22.9, allocations: 1.594 kB / 5.763 GB, free: 41.41 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.006743/22.91, allocations: 2.168 MB / 5.766 GB, free: 41.39 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01089/22.92, allocations: 1.21 MB / 5.767 GB, free: 41.34 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03464/22.96, allocations: 8.709 MB / 5.775 GB, free: 40.17 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004389/22.96, allocations: 2.286 MB / 5.778 GB, free: 39.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006234/22.97, allocations: 1.513 MB / 5.779 GB, free: 39.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.512e-06/22.97, allocations: 0 / 5.779 GB, free: 39.4 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.76/29.73, allocations: 145.4 MB / 5.921 GB, free: 82.34 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat