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.6/2.6, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.943e-05/4.96e-05, allocations: 4 kB / 305 MB, free: 5.082 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4353/0.4354, allocations: 54.86 MB / 359.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.186/0.6215, allocations: 79.56 MB / 439.5 MB, free: 1.262 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003284/0.6219, allocations: 55.98 kB / 439.5 MB, free: 1.207 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009156/0.6311, allocations: 1.42 MB / 440.9 MB, free: 15.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6311, allocations: 0 / 440.9 MB, free: 15.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.6312, allocations: 2.219 kB / 440.9 MB, free: 15.8 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.0004715/0.6316, allocations: 348.9 kB / 441.3 MB, free: 15.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.702e-05/0.6317, allocations: 8.031 kB / 441.3 MB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.56e-05/0.6318, allocations: 39.62 kB / 441.3 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.699e-05/0.6319, allocations: 3.953 kB / 441.3 MB, free: 15.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001621/0.6321, allocations: 164.5 kB / 441.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.6321, allocations: 7.984 kB / 441.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.38e-05/0.6321, allocations: 3.609 kB / 441.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.6323, allocations: 29.7 kB / 441.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.6323, allocations: 0 / 441.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.371e-05/0.6323, allocations: 4 kB / 441.5 MB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.6324, allocations: 3.953 kB / 441.5 MB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.849e-05/0.6324, allocations: 0 / 441.5 MB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000257/0.6327, allocations: 149.7 kB / 441.7 MB, free: 14.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.424e-05/0.6328, allocations: 23.39 kB / 441.7 MB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.358e-05/0.6328, allocations: 8.859 kB / 441.7 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.6329, allocations: 4 kB / 441.7 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.637e-05/0.633, allocations: 61.14 kB / 441.8 MB, free: 14.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 3.376e-06/0.633, allocations: 0 / 441.8 MB, free: 14.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002762/0.6333, allocations: 55.41 kB / 441.8 MB, free: 14.71 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.7e-05/0.6334, allocations: 81.09 kB / 441.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.389e-05/0.6335, allocations: 85 kB / 442 MB, free: 14.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.6335, allocations: 29.7 kB / 442 MB, free: 14.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.974e-05/0.6336, allocations: 80.98 kB / 442.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.673e-05/0.6337, allocations: 4.031 kB / 442.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.6337, allocations: 0 / 442.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.6339, allocations: 318.8 kB / 442.4 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.536e-05/0.634, allocations: 0 / 442.4 MB, free: 14.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.158e-05/0.634, allocations: 7.938 kB / 442.4 MB, free: 14.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.719e-05/0.6341, allocations: 25.7 kB / 442.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.6341, allocations: 0 / 442.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001728/0.6343, allocations: 63.39 kB / 442.5 MB, free: 13.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.491e-05/0.6344, allocations: 36.14 kB / 442.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.6344, allocations: 0 / 442.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.6345, allocations: 0 / 442.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.241e-06/0.6345, allocations: 4 kB / 442.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.6345, allocations: 0 / 442.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.478e-05/0.6346, allocations: 2.562 kB / 442.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.6346, allocations: 0 / 442.5 MB, free: 13.93 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.0001242/0.6347, allocations: 134.6 kB / 442.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.307e-05/0.6347, allocations: 3.172 kB / 442.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.459e-05/0.6348, allocations: 19.06 kB / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.6348, allocations: 0 / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.6348, allocations: 0 / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.6348, allocations: 0 / 442.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001298/0.6349, allocations: 149.6 kB / 442.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.635, allocations: 0 / 442.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.153e-06/0.635, allocations: 0 / 442.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.635, allocations: 0 / 442.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.577e-06/0.635, allocations: 0 / 442.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.635, allocations: 3.938 kB / 442.8 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.635, allocations: 3.984 kB / 442.9 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.6352, allocations: 94.8 kB / 442.9 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.42e-05/0.6353, allocations: 77.11 kB / 443 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.806e-05/0.6353, allocations: 3.984 kB / 443 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.879e-05/0.6353, allocations: 4 kB / 443 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.366e-05/0.6353, allocations: 0 / 443 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.6354, allocations: 1.688 kB / 443 MB, free: 13.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.345e-05/0.6354, allocations: 75.28 kB / 443.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6354, allocations: 4.031 kB / 443.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003219/0.6357, allocations: 16 kB / 443.1 MB, free: 13.25 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.001012/0.6368, allocations: 0.7427 MB / 443.9 MB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.6369, allocations: 59.41 kB / 443.9 MB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.6369, allocations: 4.062 kB / 443.9 MB, free: 12.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.983e-05/0.637, allocations: 55.41 kB / 444 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001107/0.6371, allocations: 1.406 kB / 444 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003509/0.6375, allocations: 101.2 kB / 444.1 MB, free: 12.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.6378, allocations: 0.6692 MB / 444.8 MB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 1.027e-05/0.6378, allocations: 3.984 kB / 444.8 MB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.461e-05/0.6379, allocations: 11.44 kB / 444.8 MB, free: 11.54 MB / 378.7 MB Notification: Performance of SimCode: time 1.362e-06/0.6379, allocations: 0 / 444.8 MB, free: 11.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01941/0.6573, allocations: 1.143 MB / 445.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003384/0.6577, allocations: 183.7 kB / 446.1 MB, free: 10.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/3.019, allocations: 0 / 446.1 MB, free: 10.23 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