Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_2_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.653e-05/3.663e-05, allocations: 4 kB / 255.5 MB, free: 2.613 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 44.49 MB / 300 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4167/0.5169, allocations: 71.79 MB / 371.8 MB, free: 21.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5172, allocations: 65.81 kB / 371.8 MB, free: 21.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01005/0.5273, allocations: 2.17 MB / 374 MB, free: 21.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5273, allocations: 0 / 374 MB, free: 21.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.5273, allocations: 6.281 kB / 374 MB, free: 21.38 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005169/0.5279, allocations: 389.3 kB / 374.4 MB, free: 21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.361e-05/0.5279, allocations: 9.5 kB / 374.4 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.46e-05/0.528, allocations: 38.31 kB / 374.4 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/0.5281, allocations: 13.97 kB / 374.4 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.5283, allocations: 203.2 kB / 374.6 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.5284, allocations: 10.78 kB / 374.6 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.605e-05/0.5284, allocations: 8.781 kB / 374.7 MB, free: 20.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.5286, allocations: 69.23 kB / 374.7 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.5287, allocations: 5.344 kB / 374.7 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.5287, allocations: 0 / 374.7 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.5287, allocations: 3.875 kB / 374.7 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.5288, allocations: 29.41 kB / 374.8 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007235/0.5296, allocations: 422.5 kB / 375.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.5298, allocations: 52.89 kB / 375.2 MB, free: 20.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.682e-05/0.5299, allocations: 24.34 kB / 375.2 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.5299, allocations: 2.078 kB / 375.2 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.5299, allocations: 39.45 kB / 375.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 1.633e-06/0.5299, allocations: 0 / 375.3 MB, free: 20.28 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002496/0.5302, allocations: 71.56 kB / 375.4 MB, free: 20.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/0.5302, allocations: 52.62 kB / 375.4 MB, free: 20.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.5304, allocations: 129.6 kB / 375.5 MB, free: 20.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.5304, allocations: 25.7 kB / 375.6 MB, free: 20.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.962e-05/0.5305, allocations: 111.9 kB / 375.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.5305, allocations: 16.91 kB / 375.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-06/0.5305, allocations: 0 / 375.7 MB, free: 19.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.992e-05/0.5306, allocations: 324.8 kB / 376 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.367e-05/0.5307, allocations: 15.94 kB / 376 MB, free: 19.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.995e-05/0.5307, allocations: 12.28 kB / 376 MB, free: 19.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.081e-05/0.5308, allocations: 18.5 kB / 376 MB, free: 19.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.5308, allocations: 0 / 376 MB, free: 19.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001771/0.531, allocations: 74.64 kB / 376.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.531, allocations: 7.562 kB / 376.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.5311, allocations: 0 / 376.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.5311, allocations: 3.953 kB / 376.1 MB, free: 19.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003878/0.5315, allocations: 49.73 kB / 376.2 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.5315, allocations: 1.219 kB / 376.2 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.636e-05/0.5316, allocations: 9.156 kB / 376.2 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.165e-05/0.5316, allocations: 1.219 kB / 376.2 MB, free: 19.59 MB / 314.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: 0 () * 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 5.991e-05/0.5317, allocations: 106.1 kB / 376.3 MB, free: 19.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.5318, allocations: 16.09 kB / 376.3 MB, free: 19.47 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.641e-05/0.5318, allocations: 19.69 kB / 376.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.5318, allocations: 3.953 kB / 376.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5318, allocations: 5.25 kB / 376.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.5319, allocations: 0 / 376.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.5321, allocations: 196.8 kB / 376.5 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.5321, allocations: 3.516 kB / 376.5 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000251/0.5324, allocations: 20.48 kB / 376.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5324, allocations: 1.25 kB / 376.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.5324, allocations: 4.875 kB / 376.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.5324, allocations: 2.25 kB / 376.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5325, allocations: 5.078 kB / 376.6 MB, free: 19.26 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.5327, allocations: 190.1 kB / 376.8 MB, free: 19.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.192e-05/0.5328, allocations: 86.52 kB / 376.8 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.5328, allocations: 1.062 kB / 376.8 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.533, allocations: 3.188 kB / 376.8 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.533, allocations: 6 kB / 376.9 MB, free: 19.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.035e-05/0.533, allocations: 6.891 kB / 376.9 MB, free: 19.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.933e-05/0.5331, allocations: 110.8 kB / 377 MB, free: 18.94 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5332, allocations: 5.719 kB / 377 MB, free: 18.94 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003427/0.5335, allocations: 15.53 kB / 377 MB, free: 18.93 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.0004857/0.534, allocations: 0.721 MB / 377.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001599/0.5342, allocations: 35.12 kB / 377.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.5342, allocations: 0 / 377.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.066e-05/0.5343, allocations: 23.75 kB / 377.8 MB, free: 18.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.5346, allocations: 16.73 kB / 377.8 MB, free: 18.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008954/0.5355, allocations: 224.7 kB / 378 MB, free: 18.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001824/0.5357, allocations: 0.7045 MB / 378.7 MB, free: 17.42 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.722e-05/0.5358, allocations: 14.64 kB / 378.7 MB, free: 17.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.277e-05/0.5359, allocations: 32.31 kB / 378.8 MB, free: 17.41 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5359, allocations: 0 / 378.8 MB, free: 17.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.5579, allocations: 1.919 MB / 380.7 MB, free: 17.16 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002691/0.5583, allocations: 137.4 kB / 380.8 MB, free: 16.94 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.504/3.063, allocations: 1.375 kB / 380.8 MB, free: 16.94 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat