Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.33/2.33, allocations: 270 MB / 283.6 MB, free: 3.129 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.61e-05/4.622e-05, allocations: 0 / 348.5 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1862, allocations: 61.88 MB / 410.3 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5418/0.728, allocations: 86.04 MB / 496.4 MB, free: 1.926 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.7284, allocations: 57.88 kB / 496.4 MB, free: 1.871 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004176/0.7326, allocations: 1.035 MB / 497.5 MB, free: 0.8438 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.7326, allocations: 0 / 497.5 MB, free: 0.8438 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.7326, allocations: 4 kB / 497.5 MB, free: 0.8398 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004835/0.7331, allocations: 349.1 kB / 497.8 MB, free: 468 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.7332, allocations: 12.03 kB / 497.8 MB, free: 456 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.977e-05/0.7333, allocations: 34.55 kB / 497.9 MB, free: 412 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.7333, allocations: 11.89 kB / 497.9 MB, free: 400 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.7336, allocations: 171.1 kB / 498.1 MB, free: 188 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.7336, allocations: 4.562 kB / 498.1 MB, free: 184 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/0.7336, allocations: 11.89 kB / 498.1 MB, free: 172 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001699/0.7338, allocations: 64.27 kB / 498.1 MB, free: 92 kB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.7338, allocations: 0 / 498.1 MB, free: 92 kB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.7339, allocations: 4 kB / 498.1 MB, free: 88 kB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.7339, allocations: 0 / 498.1 MB, free: 88 kB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.09e-05/0.734, allocations: 19.94 kB / 498.2 MB, free: 68 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007085/0.7347, allocations: 449.1 kB / 498.6 MB, free: 15.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001862/0.7349, allocations: 34.58 kB / 498.6 MB, free: 15.53 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.782e-05/0.7349, allocations: 12.86 kB / 498.6 MB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.735, allocations: 3.938 kB / 498.6 MB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.735, allocations: 37.34 kB / 498.7 MB, free: 15.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 2.194e-06/0.735, allocations: 0 / 498.7 MB, free: 15.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004971/0.7355, allocations: 77.67 kB / 498.8 MB, free: 15.38 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.7356, allocations: 51.41 kB / 498.8 MB, free: 15.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.7357, allocations: 113.1 kB / 498.9 MB, free: 15.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.572e-05/0.7358, allocations: 25.7 kB / 498.9 MB, free: 15.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.7358, allocations: 100 kB / 499 MB, free: 15.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.7359, allocations: 15.75 kB / 499.1 MB, free: 15.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.7359, allocations: 0 / 499.1 MB, free: 15.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.736, allocations: 318.8 kB / 499.4 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.116e-05/0.7361, allocations: 16 kB / 499.4 MB, free: 14.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.189e-05/0.7362, allocations: 35.42 kB / 499.4 MB, free: 14.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.335e-05/0.7362, allocations: 12 kB / 499.4 MB, free: 14.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.7363, allocations: 0 / 499.4 MB, free: 14.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001792/0.7364, allocations: 73.59 kB / 499.5 MB, free: 14.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.7365, allocations: 8 kB / 499.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.7365, allocations: 0 / 499.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.7365, allocations: 0 / 499.5 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.7367, allocations: 19.92 kB / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.7367, allocations: 0 / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.923e-05/0.7368, allocations: 4 kB / 499.5 MB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.7368, allocations: 8 kB / 499.5 MB, free: 14.54 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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 8.979e-05/0.7369, allocations: 104.9 kB / 499.6 MB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.737, allocations: 12.02 kB / 499.7 MB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.268e-05/0.737, allocations: 8.266 kB / 499.7 MB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.737, allocations: 224 / 499.7 MB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.7371, allocations: 7.984 kB / 499.7 MB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.7371, allocations: 3.938 kB / 499.7 MB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.7373, allocations: 169.6 kB / 499.8 MB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.7373, allocations: 0 / 499.8 MB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.7375, allocations: 12.36 kB / 499.9 MB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.7375, allocations: 4 kB / 499.9 MB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.7375, allocations: 0 / 499.9 MB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.7376, allocations: 4 kB / 499.9 MB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7376, allocations: 3.938 kB / 499.9 MB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002418/0.7378, allocations: 163.4 kB / 0.4883 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.909e-05/0.7379, allocations: 84.97 kB / 0.4884 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.7379, allocations: 4 kB / 0.4884 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.957e-05/0.738, allocations: 4.031 kB / 0.4884 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.7381, allocations: 7.984 kB / 0.4884 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.7381, allocations: 4.062 kB / 0.4884 GB, free: 13.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.855e-05/0.7382, allocations: 87.28 kB / 0.4885 GB, free: 13.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7382, allocations: 0 / 0.4885 GB, free: 13.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003185/0.7385, allocations: 8 kB / 0.4885 GB, free: 13.76 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0005334/0.7391, allocations: 0.7017 MB / 0.4892 GB, free: 13.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.7392, allocations: 24.06 kB / 0.4892 GB, free: 13.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.7393, allocations: 4 kB / 0.4892 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.875e-05/0.7393, allocations: 15.94 kB / 0.4892 GB, free: 12.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.7396, allocations: 11.98 kB / 0.4892 GB, free: 12.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006735/0.7403, allocations: 136.7 kB / 0.4894 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.7406, allocations: 0.6848 MB / 0.49 GB, free: 12.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.881e-05/0.7407, allocations: 16.31 kB / 0.49 GB, free: 12.08 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.018e-05/0.7407, allocations: 15.42 kB / 0.4901 GB, free: 12.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7407, allocations: 4 kB / 0.4901 GB, free: 12.06 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02421/0.765, allocations: 1.285 MB / 0.4913 GB, free: 10.85 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003321/0.7654, allocations: 145.1 kB / 0.4915 GB, free: 10.63 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.307/3.072, allocations: 4 kB / 0.4915 GB, free: 10.62 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState_res.mat does not exist to compare? outputFormat=mat