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 1.971/1.971, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.069e-05/4.074e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4064/0.5156, allocations: 73.08 MB / 394.9 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/0.5159, allocations: 63.03 kB / 395 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008484/0.5244, allocations: 1.766 MB / 396.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5245, allocations: 0 / 396.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.5245, allocations: 8 kB / 396.8 MB, free: 15.03 MB / 330.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.0004426/0.5249, allocations: 354.4 kB / 397.1 MB, free: 14.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.525, allocations: 8.031 kB / 397.1 MB, free: 14.63 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.681e-05/0.5251, allocations: 42.55 kB / 397.2 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.5251, allocations: 7.859 kB / 397.2 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.5252, allocations: 169.6 kB / 397.3 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.5253, allocations: 0 / 397.3 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.5253, allocations: 8 kB / 397.3 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.5255, allocations: 49.69 kB / 397.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.5255, allocations: 7.938 kB / 397.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.5255, allocations: 4 kB / 397.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.5256, allocations: 3.938 kB / 397.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.936e-05/0.5257, allocations: 23.98 kB / 397.4 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002202/0.5259, allocations: 177.5 kB / 397.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.5262, allocations: 54.56 kB / 397.7 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.572e-05/0.5263, allocations: 28.86 kB / 397.7 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003696/0.5267, allocations: 113.3 kB / 397.8 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.5268, allocations: 38.5 kB / 397.8 MB, free: 13.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.156e-06/0.5268, allocations: 0 / 397.8 MB, free: 13.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.06908/0.5959, allocations: 2.051 MB / 399.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.596, allocations: 51.41 kB / 399.9 MB, free: 11.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.5961, allocations: 97.88 kB / 400 MB, free: 11.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.975e-05/0.5961, allocations: 29.7 kB / 400.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.5962, allocations: 154.6 kB / 400.2 MB, free: 11.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.5964, allocations: 59.11 kB / 400.3 MB, free: 11.28 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.004e-05/0.5964, allocations: 0 / 400.3 MB, free: 11.28 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.5966, allocations: 326.8 kB / 400.6 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/0.597, allocations: 140 kB / 400.7 MB, free: 10.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000395/0.5974, allocations: 136 kB / 400.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005947/0.598, allocations: 171 kB / 401 MB, free: 10.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.598, allocations: 0 / 401 MB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001222/0.5992, allocations: 397.4 kB / 401.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.5993, allocations: 4 kB / 401.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.5993, allocations: 4 kB / 401.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.5993, allocations: 0 / 401.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007253/0.6001, allocations: 72.19 kB / 401.5 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.6001, allocations: 4 kB / 401.5 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004405/0.6005, allocations: 39.92 kB / 401.5 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.6006, allocations: 12 kB / 401.5 MB, free: 9.988 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.0001618/0.6008, allocations: 120.9 kB / 401.7 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.603e-05/0.6009, allocations: 7.906 kB / 401.7 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/0.6025, allocations: 471.9 kB / 402.1 MB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.6026, allocations: 4 kB / 402.1 MB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.6026, allocations: 4 kB / 402.1 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.6026, allocations: 3.984 kB / 402.1 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003193/0.6058, allocations: 0.8472 MB / 403 MB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/0.6059, allocations: 7.953 kB / 403 MB, free: 8.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005746/0.6064, allocations: 80.08 kB / 403.1 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/0.6065, allocations: 7.984 kB / 403.1 MB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/0.6065, allocations: 8 kB / 403.1 MB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.6065, allocations: 4 kB / 403.1 MB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.6066, allocations: 4 kB / 403.1 MB, free: 8.348 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.6076, allocations: 466.7 kB / 403.6 MB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.192e-05/0.6077, allocations: 89.02 kB / 403.6 MB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.977e-05/0.6078, allocations: 7.953 kB / 403.6 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004138/0.6082, allocations: 27.97 kB / 403.7 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.684e-05/0.6083, allocations: 15.98 kB / 403.7 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.065e-05/0.6084, allocations: 16 kB / 403.7 MB, free: 7.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.376e-05/0.6084, allocations: 83.27 kB / 403.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6084, allocations: 3.938 kB / 403.8 MB, free: 7.562 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001357/0.6098, allocations: 347.9 kB / 404.1 MB, free: 7.223 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.003568/0.6134, allocations: 1.573 MB / 405.7 MB, free: 5.582 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008543/0.6143, allocations: 267.8 kB / 406 MB, free: 5.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.6143, allocations: 0 / 406 MB, free: 5.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003424/0.6147, allocations: 115.9 kB / 406.1 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002408/0.6149, allocations: 8 kB / 406.1 MB, free: 5.199 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.6177, allocations: 0.5058 MB / 406.6 MB, free: 4.629 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.6181, allocations: 0.6968 MB / 407.3 MB, free: 3.902 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003478/0.6185, allocations: 63.39 kB / 407.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6185, allocations: 0 / 407.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.649/3.268, allocations: 7.77 MB / 415.1 MB, free: 12.15 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