Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.361/2.361, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.798e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4407/0.4408, allocations: 54.86 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.87/11.31, allocations: 3.674 GB / 4.025 GB, free: 56.62 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003107/11.31, allocations: 92.59 kB / 4.025 GB, free: 56.57 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.18/21.49, allocations: 1.63 GB / 5.655 GB, free: 29.17 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.655e-06/21.49, allocations: 3.938 kB / 5.655 GB, free: 29.17 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0004202/21.49, allocations: 86.7 kB / 5.655 GB, free: 29.11 MB / 0.573 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.04406/21.53, allocations: 8.734 MB / 5.664 GB, free: 20.71 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/21.53, allocations: 8.031 kB / 5.664 GB, free: 20.7 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002151/21.54, allocations: 425 kB / 5.664 GB, free: 20.28 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002877/21.54, allocations: 399.7 kB / 5.665 GB, free: 19.89 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008796/21.55, allocations: 2.129 MB / 5.667 GB, free: 17.7 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006573/21.55, allocations: 0.497 MB / 5.667 GB, free: 17.15 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001903/21.55, allocations: 287.8 kB / 5.668 GB, free: 16.87 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01625/21.57, allocations: 4.781 MB / 5.672 GB, free: 11.83 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001543/21.57, allocations: 11.94 kB / 5.672 GB, free: 11.82 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001651/21.57, allocations: 127 kB / 5.672 GB, free: 11.7 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000508/21.57, allocations: 269.1 kB / 5.673 GB, free: 11.43 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01516/21.58, allocations: 4.797 MB / 5.677 GB, free: 6.629 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05705/21.64, allocations: 20.57 MB / 5.697 GB, free: 0.9102 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.581/22.22, allocations: 2.477 MB / 5.7 GB, free: 43.39 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005047/22.23, allocations: 1.489 MB / 5.701 GB, free: 43.38 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004332/22.23, allocations: 3.4 MB / 5.705 GB, free: 39.91 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001262/22.23, allocations: 63.05 kB / 5.705 GB, free: 39.88 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=235): time 6.392e-06/22.23, allocations: 1.312 kB / 5.705 GB, free: 39.88 MB / 0.5886 GB Notification: Performance of matching and sorting (n=271): time 0.1045/22.34, allocations: 13.98 MB / 5.718 GB, free: 39.11 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/22.34, allocations: 240.9 kB / 5.719 GB, free: 38.86 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004926/22.34, allocations: 1.982 MB / 5.72 GB, free: 38.61 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001168/22.34, allocations: 84.53 kB / 5.721 GB, free: 38.58 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001559/22.34, allocations: 1.402 MB / 5.722 GB, free: 37.96 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.002122/22.35, allocations: 0.9588 MB / 5.723 GB, free: 37.48 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007029/22.35, allocations: 82.03 kB / 5.723 GB, free: 37.48 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0003855/22.35, allocations: 471.6 kB / 5.723 GB, free: 37.17 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005634/22.35, allocations: 1.755 MB / 5.725 GB, free: 37.16 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007031/22.36, allocations: 2.997 MB / 5.728 GB, free: 35.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007065/22.37, allocations: 2.332 MB / 5.73 GB, free: 35.52 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.017e-05/22.37, allocations: 14.5 kB / 5.73 GB, free: 35.52 MB / 0.5886 GB Notification: Performance of matching and sorting (n=508) (initialization): time 0.01944/22.39, allocations: 5.386 MB / 5.736 GB, free: 35.17 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.004083/22.39, allocations: 15.52 MB / 5.751 GB, free: 19 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000197/22.39, allocations: 38.28 kB / 5.751 GB, free: 19 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005124/22.4, allocations: 0.7337 MB / 5.751 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008235/22.4, allocations: 0.9358 MB / 5.752 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004148/22.41, allocations: 2.457 MB / 5.755 GB, free: 17.41 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008496/22.42, allocations: 386 kB / 5.755 GB, free: 17.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001781/22.42, allocations: 289.4 kB / 5.755 GB, free: 17.4 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/22.42, allocations: 2.562 kB / 5.755 GB, free: 17.4 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01786/22.44, allocations: 5.161 MB / 5.76 GB, free: 17.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/22.44, allocations: 38.34 kB / 5.761 GB, free: 17.16 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004839/22.44, allocations: 0.7286 MB / 5.761 GB, free: 17.14 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00784/22.45, allocations: 0.9227 MB / 5.762 GB, free: 17.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003725/22.45, allocations: 2.463 MB / 5.765 GB, free: 15.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00686/22.46, allocations: 380.7 kB / 5.765 GB, free: 15.57 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/22.46, allocations: 283.3 kB / 5.765 GB, free: 15.57 MB / 0.5886 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.001786/22.46, allocations: 367.4 kB / 5.766 GB, free: 15.46 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001261/22.47, allocations: 293.2 kB / 5.766 GB, free: 15.31 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01837/22.48, allocations: 5.59 MB / 5.771 GB, free: 15.04 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.923e-05/22.48, allocations: 39.73 kB / 5.771 GB, free: 15.04 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/22.48, allocations: 0.75 kB / 5.771 GB, free: 15.04 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.718e-05/22.48, allocations: 18.31 kB / 5.771 GB, free: 15.04 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03585/22.52, allocations: 9.291 MB / 5.78 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-05/22.52, allocations: 6.609 kB / 5.78 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005686/22.53, allocations: 0.572 MB / 5.781 GB, free: 14.49 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006893/22.53, allocations: 0.9053 MB / 5.782 GB, free: 14.45 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001085/22.53, allocations: 127.6 kB / 5.782 GB, free: 14.45 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003244/22.54, allocations: 2.345 MB / 5.784 GB, free: 12.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.932e-06/22.54, allocations: 5.922 kB / 5.784 GB, free: 12.89 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02794/22.57, allocations: 7.413 MB / 5.792 GB, free: 12.28 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003912/22.57, allocations: 0.8538 MB / 5.792 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001637/22.57, allocations: 76.45 kB / 5.792 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006586/22.58, allocations: 279.8 kB / 5.793 GB, free: 12.02 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001193/22.58, allocations: 217.1 kB / 5.793 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007578/22.58, allocations: 181.7 kB / 5.793 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.003983/22.58, allocations: 1.446 MB / 5.794 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.031e-06/22.58, allocations: 0.8125 kB / 5.794 GB, free: 11.85 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02273/22.61, allocations: 4.235 MB / 5.799 GB, free: 11.85 MB / 0.5886 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.05029/22.66, allocations: 13.39 MB / 5.812 GB, free: 9.777 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02314/22.68, allocations: 7.535 MB / 5.819 GB, free: 9.207 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.501e-05/22.68, allocations: 5.969 kB / 5.819 GB, free: 9.207 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.006816/22.69, allocations: 2.155 MB / 5.821 GB, free: 9.195 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0114/22.7, allocations: 1.21 MB / 5.822 GB, free: 9.152 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03479/22.73, allocations: 8.685 MB / 5.831 GB, free: 7.824 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002519/22.74, allocations: 2.283 MB / 5.833 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004964/22.74, allocations: 1.509 MB / 5.835 GB, free: 7.051 MB / 0.5886 GB Notification: Performance of SimCode: time 1.833e-06/22.74, allocations: 0 / 5.835 GB, free: 7.051 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.226/28.97, allocations: 145.7 MB / 5.977 GB, free: 73.05 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat