Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestWriteFile,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.459/2.459, allocations: 270 MB / 283.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.903e-05/4.905e-05, allocations: 7.984 kB / 348.5 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1414, allocations: 61.88 MB / 410.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5271/0.6686, allocations: 85.56 MB / 495.9 MB, free: 2.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.669, allocations: 59.97 kB / 496 MB, free: 2.352 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008651/0.6777, allocations: 1.426 MB / 497.4 MB, free: 0.9336 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6777, allocations: 4 kB / 497.4 MB, free: 0.9297 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.6778, allocations: 0 / 497.4 MB, free: 0.9297 MB / 394.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.0004575/0.6782, allocations: 348.2 kB / 497.7 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.76e-05/0.6783, allocations: 8.031 kB / 497.7 MB, free: 0.5312 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.76e-05/0.6784, allocations: 34.56 kB / 497.8 MB, free: 500 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.777e-05/0.6784, allocations: 3.984 kB / 497.8 MB, free: 496 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.6786, allocations: 159.1 kB / 497.9 MB, free: 296 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.6786, allocations: 0 / 497.9 MB, free: 296 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.202e-05/0.6787, allocations: 7.953 kB / 497.9 MB, free: 288 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.6788, allocations: 33.7 kB / 498 MB, free: 248 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.6788, allocations: 0 / 498 MB, free: 248 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.6789, allocations: 0 / 498 MB, free: 248 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.6789, allocations: 4 kB / 498 MB, free: 244 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.763e-05/0.6789, allocations: 0 / 498 MB, free: 244 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002148/0.6792, allocations: 145.7 kB / 498.1 MB, free: 48 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.953e-05/0.6793, allocations: 26.55 kB / 498.2 MB, free: 12 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.684e-05/0.6793, allocations: 4.859 kB / 498.2 MB, free: 4 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.725e-06/0.6793, allocations: 4 kB / 498.2 MB, free: 0 / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001267/0.6795, allocations: 60.22 kB / 498.2 MB, free: 15.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 3.246e-06/0.6795, allocations: 0 / 498.2 MB, free: 15.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002477/0.6798, allocations: 59.47 kB / 498.3 MB, free: 15.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.11e-05/0.6799, allocations: 81.09 kB / 498.4 MB, free: 15.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.784e-05/0.68, allocations: 88.91 kB / 498.4 MB, free: 15.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.709e-05/0.68, allocations: 29.64 kB / 498.5 MB, free: 15.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.545e-05/0.6801, allocations: 86.98 kB / 498.6 MB, free: 15.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.015e-05/0.6801, allocations: 8.016 kB / 498.6 MB, free: 15.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.779e-06/0.6801, allocations: 0 / 498.6 MB, free: 15.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002546/0.6804, allocations: 314.8 kB / 498.9 MB, free: 15.22 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.032e-05/0.6805, allocations: 3.938 kB / 498.9 MB, free: 15.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.847e-05/0.6805, allocations: 4 kB / 498.9 MB, free: 15.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.069e-05/0.6806, allocations: 25.7 kB / 498.9 MB, free: 15.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.6806, allocations: 0 / 498.9 MB, free: 15.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001547/0.6808, allocations: 63.39 kB / 499 MB, free: 15.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.92e-05/0.6808, allocations: 33.8 kB / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.6809, allocations: 0 / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.716e-05/0.6809, allocations: 3.953 kB / 499 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.755e-06/0.6809, allocations: 0 / 499 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.681, allocations: 4 kB / 499 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.019e-05/0.681, allocations: 0 / 499 MB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.6811, allocations: 0 / 499 MB, free: 15.06 MB / 410.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.0001471/0.6812, allocations: 127.7 kB / 499.1 MB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.6813, allocations: 8 kB / 499.1 MB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.591e-05/0.6813, allocations: 15.06 kB / 499.2 MB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.6813, allocations: 3.953 kB / 499.2 MB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.6814, allocations: 3.984 kB / 499.2 MB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.6814, allocations: 0 / 499.2 MB, free: 14.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.6816, allocations: 141.7 kB / 499.3 MB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.6816, allocations: 4 kB / 499.3 MB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.043e-05/0.6816, allocations: 0 / 499.3 MB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/0.6817, allocations: 3.938 kB / 499.3 MB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.6817, allocations: 3.938 kB / 499.3 MB, free: 14.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.157e-06/0.6817, allocations: 3.984 kB / 499.3 MB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.804e-06/0.6817, allocations: 3.953 kB / 499.3 MB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.6819, allocations: 90.84 kB / 499.4 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.461e-05/0.682, allocations: 77.11 kB / 499.5 MB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.6821, allocations: 3.984 kB / 499.5 MB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.847e-05/0.6821, allocations: 4 kB / 499.5 MB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.9e-05/0.6821, allocations: 0 / 499.5 MB, free: 14.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.6822, allocations: 3.953 kB / 499.5 MB, free: 14.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.646e-05/0.6822, allocations: 75.28 kB / 499.6 MB, free: 14.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.6823, allocations: 4.031 kB / 499.6 MB, free: 14.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004877/0.6828, allocations: 20 kB / 499.6 MB, free: 14.36 MB / 410.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.001236/0.684, allocations: 0.754 MB / 0.4886 GB, free: 13.61 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.6842, allocations: 55.41 kB / 0.4887 GB, free: 13.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.6842, allocations: 0 / 0.4887 GB, free: 13.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 6.828e-05/0.6843, allocations: 55.41 kB / 0.4887 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/0.6845, allocations: 0 / 0.4887 GB, free: 13.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004779/0.685, allocations: 105.3 kB / 0.4888 GB, free: 13.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.6853, allocations: 0.6731 MB / 0.4895 GB, free: 12.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.117e-06/0.6854, allocations: 8.125 kB / 0.4895 GB, free: 12.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.32e-05/0.6854, allocations: 7.438 kB / 0.4895 GB, free: 12.63 MB / 410.7 MB Notification: Performance of SimCode: time 1.463e-06/0.6855, allocations: 0 / 0.4895 GB, free: 12.63 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.7093, allocations: 1.142 MB / 0.4906 GB, free: 11.56 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002835/0.7096, allocations: 187.7 kB / 0.4908 GB, free: 11.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.517/3.226, allocations: 0 / 0.4908 GB, free: 11.34 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat does not exist to compare? outputFormat=mat