Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.34/2.34, allocations: 235 MB / 247.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4e-05/4.016e-05, allocations: 4.938 kB / 305 MB, free: 5.078 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4059/0.406, allocations: 54.85 MB / 359.9 MB, free: 3.172 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.168/0.5741, allocations: 79.56 MB / 439.4 MB, free: 1.375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/0.5744, allocations: 63.97 kB / 439.5 MB, free: 1.312 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005635/0.58, allocations: 1.416 MB / 440.9 MB, free: 15.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.5801, allocations: 1.594 kB / 440.9 MB, free: 15.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.5801, allocations: 0 / 440.9 MB, free: 15.91 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.0003488/0.5805, allocations: 356.2 kB / 441.2 MB, free: 15.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.699e-05/0.5805, allocations: 12.69 kB / 441.3 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.493e-05/0.5806, allocations: 35.69 kB / 441.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.742e-05/0.5806, allocations: 3.953 kB / 441.3 MB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.5808, allocations: 163.1 kB / 441.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.5808, allocations: 3.938 kB / 441.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.5808, allocations: 0 / 441.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.732e-05/0.5809, allocations: 33.2 kB / 441.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.581, allocations: 0 / 441.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-06/0.581, allocations: 0 / 441.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.581, allocations: 3.953 kB / 441.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.06e-05/0.581, allocations: 4 kB / 441.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.5812, allocations: 149.7 kB / 441.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.767e-05/0.5812, allocations: 22.55 kB / 441.7 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.925e-05/0.5813, allocations: 8.844 kB / 441.7 MB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.5813, allocations: 1.594 kB / 441.7 MB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.907e-05/0.5814, allocations: 57.45 kB / 441.7 MB, free: 14.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.563e-06/0.5814, allocations: 0 / 441.7 MB, free: 14.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001799/0.5816, allocations: 67.47 kB / 441.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.5816, allocations: 77.11 kB / 441.9 MB, free: 14.72 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.12e-05/0.5817, allocations: 85 kB / 442 MB, free: 14.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.5817, allocations: 25.7 kB / 442 MB, free: 14.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.5818, allocations: 80.14 kB / 442.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.5818, allocations: 7.984 kB / 442.1 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.5818, allocations: 0 / 442.1 MB, free: 14.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.582, allocations: 314.8 kB / 442.4 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.582, allocations: 32 / 442.4 MB, free: 14.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.959e-06/0.5821, allocations: 7.938 kB / 442.4 MB, free: 14.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.478e-05/0.5821, allocations: 29.7 kB / 442.4 MB, free: 14.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5821, allocations: 0 / 442.4 MB, free: 14.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001038/0.5822, allocations: 63.41 kB / 442.5 MB, free: 14.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.302e-05/0.5823, allocations: 33.69 kB / 442.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.5823, allocations: 0.75 kB / 442.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.5823, allocations: 0 / 442.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.663e-06/0.5823, allocations: 0 / 442.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.5823, allocations: 0 / 442.5 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.118e-05/0.5824, allocations: 8.094 kB / 442.5 MB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.5824, allocations: 0 / 442.5 MB, free: 14.03 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.0001076/0.5825, allocations: 130.6 kB / 442.6 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.5825, allocations: 7.281 kB / 442.6 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.061e-05/0.5826, allocations: 11.91 kB / 442.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.5826, allocations: 0 / 442.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.5826, allocations: 0.5625 kB / 442.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.5826, allocations: 0 / 442.7 MB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.5827, allocations: 149.6 kB / 442.8 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.5828, allocations: 8.812 kB / 442.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.077e-06/0.5828, allocations: 3.938 kB / 442.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.5828, allocations: 0 / 442.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.5828, allocations: 0 / 442.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5828, allocations: 1.406 kB / 442.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.5828, allocations: 0 / 442.8 MB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.583, allocations: 96.84 kB / 442.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.583, allocations: 77.11 kB / 443 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.5831, allocations: 4.031 kB / 443 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.918e-05/0.5831, allocations: 4 kB / 443 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2e-05/0.5831, allocations: 4 kB / 443 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.5831, allocations: 3.984 kB / 443 MB, free: 13.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.066e-05/0.5832, allocations: 75.28 kB / 443.1 MB, free: 13.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5832, allocations: 0 / 443.1 MB, free: 13.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002891/0.5835, allocations: 19.98 kB / 443.1 MB, free: 13.35 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.000994/0.5845, allocations: 0.7434 MB / 443.8 MB, free: 12.62 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001313/0.5847, allocations: 63.41 kB / 443.9 MB, free: 12.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.5847, allocations: 0 / 443.9 MB, free: 12.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.214e-05/0.5847, allocations: 59.34 kB / 444 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.693e-05/0.5848, allocations: 0 / 444 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003113/0.5852, allocations: 93.44 kB / 444.1 MB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.5855, allocations: 0.6731 MB / 444.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.922e-06/0.5855, allocations: 0 / 444.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.661e-05/0.5855, allocations: 11.44 kB / 444.7 MB, free: 11.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.423e-06/0.5855, allocations: 0 / 444.7 MB, free: 11.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02175/0.6073, allocations: 1.137 MB / 445.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003002/0.6076, allocations: 192.9 kB / 446.1 MB, free: 10.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/3.066, allocations: 0 / 446.1 MB, free: 10.32 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat