Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 235 MB / 247.6 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.425e-05/4.429e-05, allocations: 4.938 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3809, allocations: 54.85 MB / 359.9 MB, free: 2.301 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1468/0.5278, allocations: 79.57 MB / 439.4 MB, free: 1.312 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.5281, allocations: 59.97 kB / 439.5 MB, free: 1.254 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005474/0.5336, allocations: 1.421 MB / 440.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.619e-06/0.5336, allocations: 0 / 440.9 MB, free: 15.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.5336, allocations: 4.594 kB / 440.9 MB, free: 15.84 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.0003214/0.534, allocations: 352.2 kB / 441.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.534, allocations: 8.031 kB / 441.3 MB, free: 15.44 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.071e-05/0.5341, allocations: 34.56 kB / 441.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.624e-05/0.5341, allocations: 3.953 kB / 441.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.5342, allocations: 160.6 kB / 441.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.154e-05/0.5343, allocations: 3.609 kB / 441.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.5343, allocations: 4 kB / 441.5 MB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.252e-05/0.5344, allocations: 29.69 kB / 441.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.5344, allocations: 0 / 441.5 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.5344, allocations: 4 kB / 441.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.5344, allocations: 7.953 kB / 441.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.069e-05/0.5345, allocations: 3.938 kB / 441.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.5346, allocations: 141.7 kB / 441.6 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.565e-05/0.5347, allocations: 22.61 kB / 441.7 MB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.697e-05/0.5347, allocations: 4.859 kB / 441.7 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.955e-06/0.5347, allocations: 0 / 441.7 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.59e-05/0.5348, allocations: 64.25 kB / 441.7 MB, free: 14.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.803e-06/0.5348, allocations: 0 / 441.7 MB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001675/0.535, allocations: 63.41 kB / 441.8 MB, free: 14.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.5351, allocations: 77.11 kB / 441.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.961e-05/0.5351, allocations: 85.94 kB / 442 MB, free: 14.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.5352, allocations: 25.7 kB / 442 MB, free: 14.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.124e-05/0.5352, allocations: 154.6 kB / 442.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.5352, allocations: 0 / 442.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.5353, allocations: 0 / 442.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.5354, allocations: 322.8 kB / 442.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.443e-05/0.5354, allocations: 3.984 kB / 442.5 MB, free: 14.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-06/0.5354, allocations: 4 kB / 442.5 MB, free: 14.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.171e-05/0.5355, allocations: 25.7 kB / 442.5 MB, free: 14.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.5355, allocations: 0 / 442.5 MB, free: 14.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.762e-05/0.5356, allocations: 60.34 kB / 442.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/0.5356, allocations: 29.7 kB / 442.6 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.5357, allocations: 0 / 442.6 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.5357, allocations: 4.094 kB / 442.6 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.258e-06/0.5357, allocations: 3.984 kB / 442.6 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.5357, allocations: 4 kB / 442.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.23e-05/0.5357, allocations: 0.8125 kB / 442.6 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-06/0.5358, allocations: 3.938 kB / 442.6 MB, free: 13.91 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.248e-05/0.5359, allocations: 133.8 kB / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.36e-05/0.5359, allocations: 8 kB / 442.7 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.795e-05/0.5359, allocations: 7.641 kB / 442.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.5359, allocations: 0 / 442.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5359, allocations: 4 kB / 442.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.5359, allocations: 0 / 442.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.5361, allocations: 151.5 kB / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5361, allocations: 4 kB / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.252e-06/0.5361, allocations: 1.594 kB / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.5361, allocations: 0 / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.5361, allocations: 0 / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5361, allocations: 0 / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.5361, allocations: 0 / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.5363, allocations: 98.78 kB / 443 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.279e-05/0.5363, allocations: 77.11 kB / 443.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.5363, allocations: 0 / 443.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.454e-05/0.5364, allocations: 4 kB / 443.1 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.5364, allocations: 0 / 443.1 MB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.5364, allocations: 0 / 443.1 MB, free: 13.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.337e-05/0.5364, allocations: 79.22 kB / 443.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5365, allocations: 0 / 443.1 MB, free: 13.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003056/0.5368, allocations: 23.98 kB / 443.2 MB, free: 13.23 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.0008619/0.5376, allocations: 0.7325 MB / 443.9 MB, free: 12.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.5378, allocations: 63.39 kB / 444 MB, free: 12.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5378, allocations: 3.938 kB / 444 MB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.313e-05/0.5378, allocations: 55.97 kB / 444 MB, free: 12.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.973e-05/0.538, allocations: 4.125 kB / 444 MB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003166/0.5383, allocations: 126.4 kB / 444.1 MB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002517/0.5386, allocations: 0.6706 MB / 444.8 MB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.439e-05/0.5386, allocations: 7.438 kB / 444.8 MB, free: 11.5 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5386, allocations: 4 kB / 444.8 MB, free: 11.49 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.293/2.832, allocations: 0.9128 MB / 445.7 MB, free: 10.59 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat