Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.038/2.038, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.141e-05, allocations: 0 / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5493, allocations: 73.61 MB / 389.9 MB, free: 2.656 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.5496, allocations: 70.95 kB / 390 MB, free: 2.617 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04419/0.5938, allocations: 8.131 MB / 398.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5939, allocations: 4 kB / 398.1 MB, free: 11.72 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.5939, allocations: 0 / 398.1 MB, free: 11.72 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004337/0.5943, allocations: 337.4 kB / 398.5 MB, free: 11.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.5944, allocations: 8.031 kB / 398.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.5945, allocations: 3.984 kB / 398.5 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.5946, allocations: 171 kB / 398.6 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.5946, allocations: 0 / 398.6 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.5946, allocations: 0 / 398.6 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.247e-05/0.5947, allocations: 4 kB / 398.6 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.637e-05/0.5948, allocations: 37.02 kB / 398.7 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.5948, allocations: 3.938 kB / 398.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.5948, allocations: 3.984 kB / 398.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.5949, allocations: 0 / 398.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003687/0.5952, allocations: 221.2 kB / 398.9 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.723e-05/0.5953, allocations: 26.45 kB / 398.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.88e-05/0.5953, allocations: 8.047 kB / 398.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.172e-05/0.5954, allocations: 4 kB / 398.9 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.5954, allocations: 34.62 kB / 399 MB, free: 10.74 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.853e-06/0.5954, allocations: 0 / 399 MB, free: 10.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001875/0.5956, allocations: 37.62 kB / 399 MB, free: 10.7 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.5957, allocations: 51.41 kB / 399.1 MB, free: 10.63 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.73e-05/0.5958, allocations: 92.94 kB / 399.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.5958, allocations: 25.7 kB / 399.2 MB, free: 10.51 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.634e-05/0.5959, allocations: 158.6 kB / 399.3 MB, free: 10.35 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.758e-06/0.5959, allocations: 7.906 kB / 399.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.5959, allocations: 0 / 399.3 MB, free: 10.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.5961, allocations: 318.8 kB / 399.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.5961, allocations: 0 / 399.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.201e-05/0.5961, allocations: 22.27 kB / 399.7 MB, free: 9.996 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.862e-05/0.5962, allocations: 8 kB / 399.7 MB, free: 9.988 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5962, allocations: 0 / 399.7 MB, free: 9.988 MB / 330.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001184/0.5963, allocations: 45.62 kB / 399.7 MB, free: 9.938 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.5964, allocations: 8 kB / 399.7 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.5964, allocations: 0 / 399.7 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.5964, allocations: 0 / 399.7 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.174e-05/0.5965, allocations: 4 kB / 399.7 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5965, allocations: 4 kB / 399.7 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.5965, allocations: 0 / 399.7 MB, free: 9.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.146e-06/0.5965, allocations: 4.094 kB / 399.7 MB, free: 9.918 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 8.717e-05/0.5966, allocations: 116.2 kB / 399.8 MB, free: 9.801 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.59e-05/0.5967, allocations: 37.69 kB / 399.9 MB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.646e-05/0.5968, allocations: 0 / 399.9 MB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001403/0.5969, allocations: 37.45 kB / 399.9 MB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.5969, allocations: 3.984 kB / 399.9 MB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.597, allocations: 0 / 399.9 MB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.597, allocations: 4.062 kB / 399.9 MB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.5972, allocations: 133.1 kB / 400.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.5972, allocations: 96 / 400.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.273e-06/0.5972, allocations: 0 / 400.1 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.5972, allocations: 3.984 kB / 400.1 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.5973, allocations: 11.88 kB / 400.1 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.5973, allocations: 0 / 400.1 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.5973, allocations: 4 kB / 400.1 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.5974, allocations: 138.5 kB / 400.2 MB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.375e-05/0.5975, allocations: 77.11 kB / 400.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.5975, allocations: 0 / 400.3 MB, free: 9.285 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.5977, allocations: 3.938 kB / 400.3 MB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.96e-05/0.5977, allocations: 3.984 kB / 400.3 MB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.5977, allocations: 4 kB / 400.3 MB, free: 9.273 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.153e-05/0.5978, allocations: 75.28 kB / 400.4 MB, free: 9.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5978, allocations: 0 / 400.4 MB, free: 9.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007127/0.5985, allocations: 47.94 kB / 400.4 MB, free: 9.152 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0007849/0.5993, allocations: 0.7226 MB / 401.1 MB, free: 8.406 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.5994, allocations: 33.69 kB / 401.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.5994, allocations: 0 / 401.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.5e-05/0.5995, allocations: 29.92 kB / 401.2 MB, free: 8.332 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.5997, allocations: 10.69 kB / 401.2 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004631/0.6002, allocations: 135.2 kB / 401.3 MB, free: 8.152 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/0.6005, allocations: 0.6768 MB / 402 MB, free: 7.449 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.6005, allocations: 11.44 kB / 402 MB, free: 7.438 MB / 330.7 MB Notification: Performance of SimCode: time 8.42e-07/0.6005, allocations: 0 / 402 MB, free: 7.438 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.569/3.17, allocations: 1.166 MB / 403.2 MB, free: 6.277 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat does not exist to compare? outputFormat=mat