Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.079e-05/3.072e-05, allocations: 0 / 305 MB, free: 5.582 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3836/0.3836, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1506/0.5343, allocations: 79.71 MB / 439.6 MB, free: 1.188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.5346, allocations: 60.52 kB / 439.6 MB, free: 1.129 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00638/0.541, allocations: 1.662 MB / 441.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.541, allocations: 0 / 441.3 MB, free: 15.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.541, allocations: 2.844 kB / 441.3 MB, free: 15.48 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003248/0.5414, allocations: 356.2 kB / 441.6 MB, free: 15.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.5414, allocations: 12.03 kB / 441.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.703e-05/0.5415, allocations: 34.56 kB / 441.7 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.5415, allocations: 5.203 kB / 441.7 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.567e-05/0.5416, allocations: 163.6 kB / 441.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.5416, allocations: 3.5 kB / 441.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.5417, allocations: 0 / 441.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.719e-05/0.5417, allocations: 33.7 kB / 441.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.5418, allocations: 0 / 441.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.5418, allocations: 0 / 441.9 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.5418, allocations: 4.516 kB / 441.9 MB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.106e-05/0.5418, allocations: 4 kB / 441.9 MB, free: 14.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001417/0.542, allocations: 145.6 kB / 442 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.472e-05/0.542, allocations: 22.56 kB / 442.1 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.18e-05/0.5421, allocations: 12.95 kB / 442.1 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-06/0.5421, allocations: 0 / 442.1 MB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.627e-05/0.5421, allocations: 58.8 kB / 442.1 MB, free: 14.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.663e-06/0.5422, allocations: 0 / 442.1 MB, free: 14.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000163/0.5423, allocations: 59.41 kB / 442.2 MB, free: 14.4 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.8e-05/0.5424, allocations: 77.11 kB / 442.3 MB, free: 14.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.813e-05/0.5424, allocations: 85 kB / 442.3 MB, free: 14.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.5425, allocations: 25.7 kB / 442.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/0.5425, allocations: 162.5 kB / 442.5 MB, free: 14.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.5426, allocations: 4 kB / 442.5 MB, free: 14.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/0.5426, allocations: 0 / 442.5 MB, free: 14.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.5427, allocations: 318.8 kB / 442.8 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.5427, allocations: 0 / 442.8 MB, free: 13.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.502e-06/0.5427, allocations: 0 / 442.8 MB, free: 13.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.55e-05/0.5428, allocations: 29.7 kB / 442.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5428, allocations: 0 / 442.9 MB, free: 13.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.149e-05/0.5429, allocations: 59.47 kB / 442.9 MB, free: 13.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.5429, allocations: 39.41 kB / 443 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.5429, allocations: 0 / 443 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.543, allocations: 0 / 443 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.553e-06/0.543, allocations: 0 / 443 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.543, allocations: 0 / 443 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.911e-05/0.543, allocations: 0 / 443 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.639e-05/0.543, allocations: 7.281 kB / 443 MB, free: 13.55 MB / 378.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: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 9.681e-05/0.5432, allocations: 130.6 kB / 443.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.152e-05/0.5432, allocations: 8.031 kB / 443.1 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.805e-05/0.5432, allocations: 11.06 kB / 443.1 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.5432, allocations: 4 kB / 443.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.5432, allocations: 0 / 443.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.5433, allocations: 9.703 kB / 443.1 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.5434, allocations: 150.4 kB / 443.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.5434, allocations: 0 / 443.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.182e-06/0.5434, allocations: 0 / 443.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.5434, allocations: 0 / 443.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.5434, allocations: 4 kB / 443.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.5434, allocations: 1.25 kB / 443.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5435, allocations: 4 kB / 443.3 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/0.5436, allocations: 94.78 kB / 443.4 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.5437, allocations: 77.11 kB / 443.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.43e-05/0.5437, allocations: 0 / 443.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.182e-05/0.5437, allocations: 0 / 443.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.07e-05/0.5438, allocations: 3.984 kB / 443.5 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.5438, allocations: 4 kB / 443.5 MB, free: 12.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.689e-05/0.5438, allocations: 79.31 kB / 443.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5438, allocations: 0 / 443.5 MB, free: 12.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003169/0.5441, allocations: 28 kB / 443.6 MB, free: 12.85 MB / 378.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001011/0.5452, allocations: 0.804 MB / 444.4 MB, free: 12.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001313/0.5453, allocations: 59.41 kB / 444.4 MB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5453, allocations: 0 / 444.4 MB, free: 12.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.735e-05/0.5454, allocations: 67.41 kB / 444.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001008/0.5455, allocations: 0 / 444.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003229/0.5458, allocations: 118.5 kB / 444.6 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.5461, allocations: 0.677 MB / 445.3 MB, free: 11.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.677e-05/0.5461, allocations: 7.438 kB / 445.3 MB, free: 11.06 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5462, allocations: 0 / 445.3 MB, free: 11.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.352/2.898, allocations: 1.115 MB / 446.4 MB, free: 9.953 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal_res.mat does not exist to compare? outputFormat=mat