Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.319/2.319, allocations: 235 MB / 247.6 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.416e-05/3.431e-05, allocations: 0 / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4069, allocations: 54.87 MB / 359.9 MB, free: 2.316 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.5529, allocations: 79.93 MB / 439.8 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.5532, allocations: 59.97 kB / 439.8 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009549/0.5627, allocations: 2.293 MB / 442.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.5628, allocations: 0 / 442.1 MB, free: 14.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.5628, allocations: 0 / 442.1 MB, free: 14.61 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.0003646/0.5632, allocations: 368.2 kB / 442.5 MB, free: 14.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.5632, allocations: 8.031 kB / 442.5 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.5633, allocations: 33.84 kB / 442.5 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.5633, allocations: 3.953 kB / 442.5 MB, free: 14.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.5634, allocations: 163.1 kB / 442.7 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.5635, allocations: 4 kB / 442.7 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.5635, allocations: 0 / 442.7 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.504e-05/0.5636, allocations: 33.69 kB / 442.7 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.5636, allocations: 0 / 442.7 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.5636, allocations: 4 kB / 442.7 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.5636, allocations: 3.953 kB / 442.7 MB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.018e-05/0.5637, allocations: 3.938 kB / 442.7 MB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001511/0.5638, allocations: 141.7 kB / 442.9 MB, free: 13.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.071e-05/0.5639, allocations: 18.61 kB / 442.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/0.5639, allocations: 4.859 kB / 442.9 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.5639, allocations: 0 / 442.9 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.136e-05/0.564, allocations: 72.31 kB / 443 MB, free: 13.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 3.476e-06/0.564, allocations: 3.984 kB / 443 MB, free: 13.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001617/0.5642, allocations: 55.41 kB / 443 MB, free: 13.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.5642, allocations: 87.67 kB / 443.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.381e-05/0.5643, allocations: 85 kB / 443.2 MB, free: 13.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.5643, allocations: 25.7 kB / 443.2 MB, free: 13.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.5644, allocations: 150.6 kB / 443.4 MB, free: 13.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.662e-05/0.5644, allocations: 0 / 443.4 MB, free: 13.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.5644, allocations: 0 / 443.4 MB, free: 13.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.5646, allocations: 326.8 kB / 443.7 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.5646, allocations: 4 kB / 443.7 MB, free: 12.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-06/0.5646, allocations: 0 / 443.7 MB, free: 12.81 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.363e-05/0.5647, allocations: 25.7 kB / 443.7 MB, free: 12.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5647, allocations: 0 / 443.7 MB, free: 12.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.351e-05/0.5648, allocations: 59.41 kB / 443.8 MB, free: 12.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.68e-05/0.5648, allocations: 31.42 kB / 443.8 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.5649, allocations: 3.938 kB / 443.8 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.5649, allocations: 12.08 kB / 443.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.5649, allocations: 0 / 443.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.5649, allocations: 0 / 443.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.844e-05/0.5649, allocations: 0 / 443.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.565, allocations: 0 / 443.8 MB, free: 12.66 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 0.0001009/0.5651, allocations: 134.6 kB / 444 MB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-06/0.5651, allocations: 3.938 kB / 444 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.762e-05/0.5651, allocations: 7.078 kB / 444 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.5651, allocations: 0 / 444 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.5651, allocations: 5.062 kB / 444 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.5652, allocations: 0 / 444 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.5653, allocations: 157.6 kB / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.5653, allocations: 0 / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.5653, allocations: 0 / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.5653, allocations: 1.031 kB / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.5653, allocations: 0 / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.5653, allocations: 3.562 kB / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.5654, allocations: 0 / 444.1 MB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/0.5655, allocations: 98.78 kB / 444.2 MB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.5655, allocations: 77.11 kB / 444.3 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.5656, allocations: 4 kB / 444.3 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.199e-05/0.5656, allocations: 0 / 444.3 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.225e-05/0.5656, allocations: 0 / 444.3 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.5656, allocations: 0 / 444.3 MB, free: 12.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.478e-05/0.5657, allocations: 75.28 kB / 444.4 MB, free: 12 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5657, allocations: 0.6562 kB / 444.4 MB, free: 12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003764/0.5661, allocations: 47.91 kB / 444.4 MB, free: 11.96 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.001053/0.5671, allocations: 0.8029 MB / 445.2 MB, free: 11.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.5673, allocations: 59.39 kB / 445.3 MB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.5673, allocations: 3.938 kB / 445.3 MB, free: 11.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.593e-05/0.5673, allocations: 59.34 kB / 445.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001052/0.5675, allocations: 4 kB / 445.4 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003427/0.5678, allocations: 122.5 kB / 445.5 MB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.5681, allocations: 0.6731 MB / 446.2 MB, free: 10.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.551e-05/0.5681, allocations: 11.56 kB / 446.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.5681, allocations: 0 / 446.2 MB, free: 10.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.56/3.128, allocations: 1.339 MB / 447.5 MB, free: 8.832 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestStreams_res.mat does not exist to compare? outputFormat=mat