Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.208/2.208, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.155e-05/2.165e-05, allocations: 0 / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4054/0.5215, allocations: 72.81 MB / 389.1 MB, free: 3.516 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.5218, allocations: 62.22 kB / 389.2 MB, free: 3.484 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01437/0.5362, allocations: 2.934 MB / 392.1 MB, free: 1.062 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5362, allocations: 0 / 392.1 MB, free: 1.062 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.5362, allocations: 0 / 392.1 MB, free: 1.062 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004605/0.5367, allocations: 366 kB / 392.5 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.5368, allocations: 8.031 kB / 392.5 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.5368, allocations: 7.906 kB / 392.5 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.537, allocations: 167 kB / 392.6 MB, free: 456 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.537, allocations: 4 kB / 392.7 MB, free: 452 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.5371, allocations: 4 kB / 392.7 MB, free: 448 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001183/0.5372, allocations: 27.75 kB / 392.7 MB, free: 424 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.5373, allocations: 49.12 kB / 392.7 MB, free: 376 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.5373, allocations: 4 kB / 392.7 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.5374, allocations: 0 / 392.7 MB, free: 372 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.5374, allocations: 7.922 kB / 392.7 MB, free: 364 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002438/0.5376, allocations: 150 kB / 392.9 MB, free: 180 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002676/0.5379, allocations: 54.16 kB / 392.9 MB, free: 124 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.403e-05/0.538, allocations: 28.48 kB / 393 MB, free: 100 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003785/0.5384, allocations: 105.9 kB / 393.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.5384, allocations: 34.56 kB / 393.1 MB, free: 15.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.773e-06/0.5384, allocations: 0 / 393.1 MB, free: 15.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.2324/0.7709, allocations: 5.327 MB / 398.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.771, allocations: 51.41 kB / 398.5 MB, free: 10.73 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.247e-05/0.7711, allocations: 100.9 kB / 398.6 MB, free: 10.63 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.171e-05/0.7711, allocations: 25.7 kB / 398.6 MB, free: 10.6 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.279e-05/0.7712, allocations: 154.6 kB / 398.8 MB, free: 10.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001055/0.7713, allocations: 58.8 kB / 398.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.089e-05/0.7714, allocations: 4 kB / 398.8 MB, free: 10.39 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.7715, allocations: 318.6 kB / 399.1 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003976/0.7719, allocations: 173.7 kB / 399.3 MB, free: 9.977 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003899/0.7724, allocations: 163.2 kB / 399.5 MB, free: 9.891 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001876/0.7742, allocations: 266.8 kB / 399.7 MB, free: 9.703 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.7743, allocations: 0 / 399.7 MB, free: 9.703 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.002468/0.7768, allocations: 0.5115 MB / 400.2 MB, free: 9.328 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.7768, allocations: 4 kB / 400.2 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.7768, allocations: 4 kB / 400.2 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.7769, allocations: 0 / 400.2 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009202/0.7778, allocations: 95.14 kB / 400.3 MB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.7778, allocations: 4 kB / 400.3 MB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000557/0.7784, allocations: 27.97 kB / 400.4 MB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.197e-05/0.7785, allocations: 19.97 kB / 400.4 MB, free: 9.18 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001619/0.7787, allocations: 104.9 kB / 400.5 MB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002498/0.7812, allocations: 0.5201 MB / 401 MB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.7813, allocations: 11.89 kB / 401 MB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002948/0.7842, allocations: 0.6097 MB / 401.6 MB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.7843, allocations: 0 / 401.6 MB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.7843, allocations: 0 / 401.6 MB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.7843, allocations: 0 / 401.6 MB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004938/0.7892, allocations: 0.9981 MB / 402.6 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.7893, allocations: 0 / 402.6 MB, free: 7.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007717/0.7901, allocations: 87.72 kB / 402.7 MB, free: 7.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.297e-05/0.7901, allocations: 4 kB / 402.7 MB, free: 7.172 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.799e-05/0.7902, allocations: 20.16 kB / 402.7 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.005e-05/0.7902, allocations: 11.89 kB / 402.7 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.7902, allocations: 3.938 kB / 402.8 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002375/0.7926, allocations: 0.5719 MB / 403.3 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.523e-05/0.7927, allocations: 88.27 kB / 403.4 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.332e-05/0.7928, allocations: 0 / 403.4 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005334/0.7934, allocations: 31.97 kB / 403.4 MB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.064e-05/0.7934, allocations: 15.94 kB / 403.5 MB, free: 6.418 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.972e-05/0.7935, allocations: 23.22 kB / 403.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.124e-05/0.7936, allocations: 83.28 kB / 403.6 MB, free: 6.316 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7936, allocations: 0 / 403.6 MB, free: 6.316 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002369/0.796, allocations: 0.6198 MB / 404.2 MB, free: 5.699 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007674/0.8037, allocations: 1.745 MB / 405.9 MB, free: 3.965 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009382/0.8047, allocations: 323.1 kB / 406.2 MB, free: 3.762 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.8047, allocations: 4 kB / 406.2 MB, free: 3.758 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003721/0.8051, allocations: 141.7 kB / 406.4 MB, free: 3.652 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.8053, allocations: 4 kB / 406.4 MB, free: 3.648 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004229/0.8096, allocations: 0.5433 MB / 406.9 MB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.81, allocations: 0.7004 MB / 407.6 MB, free: 2.359 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/0.8105, allocations: 77.59 kB / 407.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of SimCode: time 1.153e-06/0.8105, allocations: 0 / 407.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.027/3.838, allocations: 17.25 MB / 425 MB, free: 0.9805 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat does not exist to compare? outputFormat=mat