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 1.926/1.926, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.942e-05/1.953e-05, allocations: 0 / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1054, allocations: 48.7 MB / 316.3 MB, free: 4.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.46/11.57, allocations: 3.667 GB / 3.976 GB, free: 80.37 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/11.57, allocations: 82.02 kB / 3.976 GB, free: 80.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 10.02/21.59, allocations: 1.603 GB / 5.579 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.024e-06/21.59, allocations: 7.812 kB / 5.579 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0004143/21.59, allocations: 83.95 kB / 5.579 GB, free: 26.64 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.04344/21.63, allocations: 8.732 MB / 5.588 GB, free: 22.37 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/21.63, allocations: 9.688 kB / 5.588 GB, free: 22.37 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003495/21.64, allocations: 399.5 kB / 5.588 GB, free: 22.19 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009478/21.65, allocations: 2.127 MB / 5.59 GB, free: 21.71 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006098/21.65, allocations: 402.7 kB / 5.591 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/21.65, allocations: 167.2 kB / 5.591 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01387/21.66, allocations: 4.376 MB / 5.595 GB, free: 21.41 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01626/21.68, allocations: 4.423 MB / 5.599 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/21.68, allocations: 11.22 kB / 5.599 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009926/21.68, allocations: 9.25 kB / 5.599 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005592/21.68, allocations: 261 kB / 5.6 GB, free: 20.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0526/21.73, allocations: 19.5 MB / 5.619 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007166/21.74, allocations: 2.38 MB / 5.621 GB, free: 11.47 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003973/21.74, allocations: 1.427 MB / 5.622 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003837/21.75, allocations: 3.348 MB / 5.626 GB, free: 7.98 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.364e-05/21.75, allocations: 63.53 kB / 5.626 GB, free: 7.938 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=232): time 5.531e-06/21.75, allocations: 2.844 kB / 5.626 GB, free: 7.938 MB / 0.5261 GB Notification: Performance of matching and sorting (n=268): time 0.09224/21.84, allocations: 13.76 MB / 5.639 GB, free: 6.867 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/21.84, allocations: 237.5 kB / 5.639 GB, free: 6.613 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004207/21.84, allocations: 1.677 MB / 5.641 GB, free: 6.348 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001105/21.85, allocations: 28.8 kB / 5.641 GB, free: 6.316 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001449/21.85, allocations: 1.43 MB / 5.642 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001928/21.85, allocations: 0.9124 MB / 5.643 GB, free: 4.898 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007119/21.85, allocations: 2.969 kB / 5.643 GB, free: 4.898 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003829/21.85, allocations: 478.4 kB / 5.644 GB, free: 4.578 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005213/21.86, allocations: 1.696 MB / 5.645 GB, free: 4.57 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006304/21.86, allocations: 2.941 MB / 5.648 GB, free: 3.105 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04181/21.9, allocations: 5.723 MB / 5.654 GB, free: 3.059 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.674e-05/21.9, allocations: 10.59 kB / 5.654 GB, free: 3.059 MB / 0.5261 GB Notification: Performance of matching and sorting (n=508) (initialization): time 0.05239/21.96, allocations: 8.585 MB / 5.662 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.006584/21.96, allocations: 15.52 MB / 5.677 GB, free: 2.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001997/21.96, allocations: 43.47 kB / 5.677 GB, free: 2.66 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004747/21.97, allocations: 0.7243 MB / 5.678 GB, free: 2.637 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007898/21.98, allocations: 0.9306 MB / 5.679 GB, free: 2.637 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004606/21.98, allocations: 2.526 MB / 5.681 GB, free: 1.074 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008016/21.99, allocations: 309.9 kB / 5.682 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001629/21.99, allocations: 284.3 kB / 5.682 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/21.99, allocations: 3.656 kB / 5.682 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04981/22.04, allocations: 8.139 MB / 5.69 GB, free: 0.832 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/22.04, allocations: 37.44 kB / 5.69 GB, free: 0.832 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004527/22.05, allocations: 0.7293 MB / 5.691 GB, free: 0.8008 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007469/22.05, allocations: 0.9239 MB / 5.692 GB, free: 0.7422 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004034/22.06, allocations: 2.543 MB / 5.694 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006502/22.06, allocations: 297.4 kB / 5.694 GB, free: 15.13 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001672/22.07, allocations: 281.4 kB / 5.695 GB, free: 15.13 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.002206/22.07, allocations: 231.7 kB / 5.695 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02521/22.09, allocations: 4.841 MB / 5.7 GB, free: 14.65 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001878/22.09, allocations: 275.9 kB / 5.7 GB, free: 14.51 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02453/22.12, allocations: 6.243 MB / 5.706 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-05/22.12, allocations: 32.55 kB / 5.706 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/22.12, allocations: 0 / 5.706 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.687e-05/22.12, allocations: 17.48 kB / 5.706 GB, free: 14.18 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03111/22.15, allocations: 8.415 MB / 5.714 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.84e-05/22.15, allocations: 3.156 kB / 5.714 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00506/22.16, allocations: 0.549 MB / 5.715 GB, free: 12.14 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006581/22.16, allocations: 0.9026 MB / 5.716 GB, free: 11.95 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001026/22.16, allocations: 84.69 kB / 5.716 GB, free: 11.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003948/22.17, allocations: 2.42 MB / 5.718 GB, free: 9.988 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/22.17, allocations: 3.156 kB / 5.718 GB, free: 9.988 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02608/22.19, allocations: 7.033 MB / 5.725 GB, free: 7.102 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003653/22.2, allocations: 0.8261 MB / 5.726 GB, free: 6.402 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001268/22.2, allocations: 25.81 kB / 5.726 GB, free: 6.383 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005351/22.2, allocations: 219.6 kB / 5.726 GB, free: 6.246 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009178/22.2, allocations: 209.7 kB / 5.726 GB, free: 6.117 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007122/22.21, allocations: 179.1 kB / 5.726 GB, free: 5.973 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003179/22.21, allocations: 1.197 MB / 5.728 GB, free: 4.883 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.72e-07/22.21, allocations: 0 / 5.728 GB, free: 4.883 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02259/22.23, allocations: 3.955 MB / 5.731 GB, free: 1.043 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 (285): * Single equations (assignments): 273 * 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.06019/22.29, allocations: 13.85 MB / 5.745 GB, free: 7.281 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.02276/22.31, allocations: 7.293 MB / 5.752 GB, free: 0.5117 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/22.31, allocations: 4.562 kB / 5.752 GB, free: 0.5078 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.5674/22.88, allocations: 2.41 MB / 5.754 GB, free: 66.5 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01138/22.89, allocations: 1.05 MB / 5.755 GB, free: 66.48 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03874/22.93, allocations: 8.334 MB / 5.764 GB, free: 65.46 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004437/22.94, allocations: 2.285 MB / 5.766 GB, free: 64.69 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005763/22.94, allocations: 1.489 MB / 5.767 GB, free: 64.69 MB / 0.573 GB Notification: Performance of SimCode: time 1.914e-06/22.94, allocations: 1.781 kB / 5.767 GB, free: 64.69 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.64/28.58, allocations: 144 MB / 5.908 GB, free: 42.21 MB / 0.573 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