Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_TestRegSquare2Derivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.225/2.225, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.246e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 48.69 MB / 316.3 MB, free: 4.539 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4072/0.5109, allocations: 72.65 MB / 388.9 MB, free: 3.859 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.5112, allocations: 65.64 kB / 389 MB, free: 3.824 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008124/0.5194, allocations: 1.76 MB / 390.8 MB, free: 2.332 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5194, allocations: 0 / 390.8 MB, free: 2.332 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.5195, allocations: 8 kB / 390.8 MB, free: 2.324 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.0004451/0.5199, allocations: 360.4 kB / 391.1 MB, free: 1.934 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.52, allocations: 8.031 kB / 391.1 MB, free: 1.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.437e-05/0.52, allocations: 8.781 kB / 391.1 MB, free: 1.918 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.5202, allocations: 166.9 kB / 391.3 MB, free: 1.719 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.5202, allocations: 4 kB / 391.3 MB, free: 1.715 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.5202, allocations: 4 kB / 391.3 MB, free: 1.711 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001194/0.5204, allocations: 29.98 kB / 391.3 MB, free: 1.688 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.5205, allocations: 49.06 kB / 391.4 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.5205, allocations: 6.312 kB / 391.4 MB, free: 1.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.5205, allocations: 0 / 391.4 MB, free: 1.633 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.5206, allocations: 0 / 391.4 MB, free: 1.633 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002059/0.5208, allocations: 152.7 kB / 391.5 MB, free: 1.453 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002851/0.5211, allocations: 49.31 kB / 391.6 MB, free: 1.402 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.329e-05/0.5212, allocations: 23.67 kB / 391.6 MB, free: 1.383 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003466/0.5215, allocations: 113.1 kB / 391.7 MB, free: 1.254 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.5216, allocations: 38.77 kB / 391.8 MB, free: 1.207 MB / 314.7 MB Notification: Performance of pre-optimization done (n=9): time 2.174e-06/0.5216, allocations: 0 / 391.8 MB, free: 1.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.06858/0.5902, allocations: 2.086 MB / 393.9 MB, free: 15.28 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.5903, allocations: 63.14 kB / 393.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.439e-05/0.5904, allocations: 89.88 kB / 394 MB, free: 15.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.023e-05/0.5904, allocations: 25.7 kB / 394 MB, free: 15.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.746e-05/0.5905, allocations: 154.6 kB / 394.2 MB, free: 14.93 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.5906, allocations: 58.23 kB / 394.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-05/0.5907, allocations: 0 / 394.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.5909, allocations: 322.8 kB / 394.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.5912, allocations: 141.1 kB / 394.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003176/0.5915, allocations: 137.2 kB / 394.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000821/0.5924, allocations: 194.8 kB / 395 MB, free: 14.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.5924, allocations: 3.938 kB / 395 MB, free: 14.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001343/0.5937, allocations: 415 kB / 395.4 MB, free: 13.99 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.5938, allocations: 8 kB / 395.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.5938, allocations: 0 / 395.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.5938, allocations: 4 kB / 395.4 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007165/0.5946, allocations: 71.94 kB / 395.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.5946, allocations: 7.984 kB / 395.5 MB, free: 13.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000411/0.595, allocations: 32.2 kB / 395.5 MB, free: 13.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/0.5951, allocations: 19.98 kB / 395.6 MB, free: 13.85 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.0001593/0.5953, allocations: 108.9 kB / 395.7 MB, free: 13.74 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001377/0.5966, allocations: 407.8 kB / 396.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.599e-05/0.5967, allocations: 11.89 kB / 396.1 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001761/0.5985, allocations: 0.4912 MB / 396.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.5985, allocations: 4 kB / 396.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.5986, allocations: 0 / 396.6 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.5986, allocations: 4 kB / 396.6 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.6018, allocations: 0.8288 MB / 397.4 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.6019, allocations: 4 kB / 397.4 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.6025, allocations: 83.94 kB / 397.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.378e-05/0.6025, allocations: 4 kB / 397.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.415e-05/0.6025, allocations: 11.98 kB / 397.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.6026, allocations: 7.953 kB / 397.5 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.6026, allocations: 4 kB / 397.5 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001277/0.6039, allocations: 486.9 kB / 398 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.866e-05/0.604, allocations: 85.02 kB / 398.1 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.126e-05/0.604, allocations: 4.188 kB / 398.1 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003741/0.6044, allocations: 23.97 kB / 398.1 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/0.6045, allocations: 23.81 kB / 398.1 MB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.918e-05/0.6045, allocations: 19.88 kB / 398.1 MB, free: 11.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.587e-05/0.6046, allocations: 83.27 kB / 398.2 MB, free: 11.42 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6046, allocations: 3.938 kB / 398.2 MB, free: 11.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001307/0.6059, allocations: 339.2 kB / 398.6 MB, free: 11.09 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.003877/0.6098, allocations: 1.583 MB / 400.1 MB, free: 9.492 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00078/0.6107, allocations: 270.2 kB / 400.4 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.6107, allocations: 0 / 400.4 MB, free: 9.324 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003249/0.611, allocations: 114.7 kB / 400.5 MB, free: 9.238 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.6113, allocations: 4 kB / 400.5 MB, free: 9.234 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.6141, allocations: 493.9 kB / 401 MB, free: 8.719 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.6144, allocations: 0.7043 MB / 401.7 MB, free: 7.988 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004051/0.6149, allocations: 61.89 kB / 401.8 MB, free: 7.938 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6149, allocations: 0 / 401.8 MB, free: 7.938 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.704/3.319, allocations: 7.943 MB / 409.7 MB, free: 15.99 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat does not exist to compare? outputFormat=mat