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.016/2.016, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.572e-05/3.583e-05, allocations: 0 / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1082, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4093/0.5175, allocations: 73.22 MB / 395 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.5178, allocations: 71.11 kB / 395.1 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01517/0.533, allocations: 2.94 MB / 398.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5331, allocations: 0 / 398.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.5331, allocations: 0 / 398.1 MB, free: 13.6 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.0005172/0.5336, allocations: 366.4 kB / 398.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.5337, allocations: 12.03 kB / 398.4 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.4e-05/0.5338, allocations: 30.56 kB / 398.5 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.278e-05/0.5338, allocations: 19.84 kB / 398.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.534, allocations: 163.1 kB / 398.6 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.534, allocations: 7.938 kB / 398.6 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.5341, allocations: 4 kB / 398.6 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001704/0.5343, allocations: 53.62 kB / 398.7 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.5343, allocations: 0 / 398.7 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.5343, allocations: 0 / 398.7 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.5343, allocations: 4 kB / 398.7 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001076/0.5344, allocations: 31.98 kB / 398.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002587/0.5347, allocations: 181.4 kB / 398.9 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.535, allocations: 54.56 kB / 399 MB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.23e-05/0.5351, allocations: 24.86 kB / 399 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003853/0.5355, allocations: 113.1 kB / 399.1 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.5356, allocations: 34.56 kB / 399.1 MB, free: 12.33 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.695e-06/0.5356, allocations: 0 / 399.1 MB, free: 12.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.2619/0.7975, allocations: 5.273 MB / 404.4 MB, free: 7.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.7976, allocations: 55.41 kB / 404.5 MB, free: 6.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.7977, allocations: 89 kB / 404.5 MB, free: 6.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.7978, allocations: 33.7 kB / 404.6 MB, free: 6.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.339e-05/0.7979, allocations: 150.6 kB / 404.7 MB, free: 6.672 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.7981, allocations: 63.09 kB / 404.8 MB, free: 6.609 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.646e-05/0.7981, allocations: 4 kB / 404.8 MB, free: 6.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.7983, allocations: 318.8 kB / 405.1 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004898/0.7988, allocations: 176 kB / 405.3 MB, free: 6.113 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004882/0.7993, allocations: 168 kB / 405.4 MB, free: 5.949 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.8008, allocations: 227.1 kB / 405.7 MB, free: 5.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.8008, allocations: 4 kB / 405.7 MB, free: 5.727 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00228/0.8031, allocations: 497.2 kB / 406.2 MB, free: 5.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.8032, allocations: 4 kB / 406.2 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.8032, allocations: 0 / 406.2 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.8032, allocations: 0 / 406.2 MB, free: 5.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009278/0.8042, allocations: 95.91 kB / 406.2 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.8042, allocations: 0 / 406.2 MB, free: 5.137 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.8048, allocations: 28.11 kB / 406.3 MB, free: 5.109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.023e-05/0.8049, allocations: 27.97 kB / 406.3 MB, free: 5.082 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.0001727/0.8051, allocations: 116.9 kB / 406.4 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.877e-05/0.8052, allocations: 7.906 kB / 406.4 MB, free: 4.953 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002726/0.8079, allocations: 0.5821 MB / 407 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.8079, allocations: 4 kB / 407 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.808, allocations: 0 / 407 MB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.808, allocations: 3.984 kB / 407 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004857/0.8128, allocations: 0.9948 MB / 408 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.8129, allocations: 4 kB / 408 MB, free: 3.285 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007734/0.8137, allocations: 88.09 kB / 408.1 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/0.8137, allocations: 0 / 408.1 MB, free: 3.199 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.808e-05/0.8138, allocations: 19.97 kB / 408.1 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.8138, allocations: 7.938 kB / 408.1 MB, free: 3.172 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.8138, allocations: 4 kB / 408.1 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.8159, allocations: 0.5419 MB / 408.7 MB, free: 2.555 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.915e-05/0.816, allocations: 85.02 kB / 408.8 MB, free: 2.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/0.8161, allocations: 16.14 kB / 408.8 MB, free: 2.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005459/0.8167, allocations: 31.97 kB / 408.8 MB, free: 2.406 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.748e-05/0.8167, allocations: 15.98 kB / 408.8 MB, free: 2.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.255e-05/0.8168, allocations: 23.97 kB / 408.8 MB, free: 2.367 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.806e-05/0.8169, allocations: 83.28 kB / 408.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.8169, allocations: 0 / 408.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002431/0.8193, allocations: 0.6286 MB / 409.6 MB, free: 1.656 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.007489/0.8269, allocations: 1.721 MB / 411.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.828, allocations: 330.8 kB / 411.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.8281, allocations: 0 / 411.6 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004337/0.8285, allocations: 136 kB / 411.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002475/0.8288, allocations: 12.38 kB / 411.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004553/0.8334, allocations: 0.5676 MB / 412.3 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/0.8338, allocations: 0.7045 MB / 413 MB, free: 14.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004963/0.8343, allocations: 79.34 kB / 413.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/0.8343, allocations: 0 / 413.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.159/3.993, allocations: 16.26 MB / 429.4 MB, free: 13.7 MB / 362.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