Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.86/1.86, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.736e-05/3.768e-05, allocations: 4 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2719, allocations: 38.78 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.3954, allocations: 66.49 MB / 330.3 MB, free: 7.168 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.3958, allocations: 63.97 kB / 330.4 MB, free: 7.105 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01/0.4058, allocations: 2.185 MB / 332.6 MB, free: 4.914 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4058, allocations: 7.938 kB / 332.6 MB, free: 4.906 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.4059, allocations: 0 / 332.6 MB, free: 4.906 MB / 282.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.0005795/0.4065, allocations: 390.2 kB / 333 MB, free: 4.48 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.4065, allocations: 12.03 kB / 333 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.407e-05/0.4066, allocations: 38.55 kB / 333 MB, free: 4.422 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.646e-05/0.4066, allocations: 11.91 kB / 333 MB, free: 4.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.407, allocations: 210.7 kB / 333.2 MB, free: 4.164 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.407, allocations: 8 kB / 333.2 MB, free: 4.156 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.576e-05/0.4071, allocations: 4 kB / 333.2 MB, free: 4.152 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002143/0.4073, allocations: 80.16 kB / 333.3 MB, free: 4.07 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.4073, allocations: 7.938 kB / 333.3 MB, free: 4.062 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.642e-05/0.4073, allocations: 4 kB / 333.3 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.4074, allocations: 0 / 333.3 MB, free: 4.059 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.4075, allocations: 28 kB / 333.3 MB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008474/0.4083, allocations: 412 kB / 333.7 MB, free: 3.566 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.4085, allocations: 58.55 kB / 333.8 MB, free: 3.5 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.427e-05/0.4086, allocations: 29.02 kB / 333.8 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.4087, allocations: 0 / 333.8 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.4087, allocations: 34.56 kB / 333.9 MB, free: 3.426 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 2.084e-06/0.4087, allocations: 0 / 333.9 MB, free: 3.426 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002649/0.409, allocations: 73.59 kB / 333.9 MB, free: 3.348 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.409, allocations: 51.41 kB / 334 MB, free: 3.285 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001583/0.4092, allocations: 122.2 kB / 334.1 MB, free: 3.152 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.317e-05/0.4092, allocations: 33.64 kB / 334.1 MB, free: 3.113 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.695e-05/0.4094, allocations: 174.5 kB / 334.3 MB, free: 2.941 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/0.4094, allocations: 19.8 kB / 334.3 MB, free: 2.922 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-06/0.4094, allocations: 0 / 334.3 MB, free: 2.922 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.4096, allocations: 314.8 kB / 334.6 MB, free: 2.605 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.888e-05/0.4096, allocations: 20 kB / 334.7 MB, free: 2.586 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.433e-05/0.4097, allocations: 16 kB / 334.7 MB, free: 2.57 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.974e-05/0.4098, allocations: 15.98 kB / 334.7 MB, free: 2.555 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4098, allocations: 3.938 kB / 334.7 MB, free: 2.551 MB / 282.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001891/0.41, allocations: 73.67 kB / 334.8 MB, free: 2.473 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.41, allocations: 8 kB / 334.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.41, allocations: 0 / 334.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.4101, allocations: 0 / 334.8 MB, free: 2.465 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003939/0.4105, allocations: 39.91 kB / 334.8 MB, free: 2.426 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.4105, allocations: 4 kB / 334.8 MB, free: 2.422 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.747e-05/0.4106, allocations: 11.91 kB / 334.8 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.4106, allocations: 8 kB / 334.8 MB, free: 2.402 MB / 282.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 8.849e-05/0.4107, allocations: 108.9 kB / 334.9 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.4108, allocations: 7.906 kB / 335 MB, free: 2.281 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.387e-05/0.4108, allocations: 16.08 kB / 335 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4109, allocations: 0 / 335 MB, free: 2.262 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.4109, allocations: 3.984 kB / 335 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4109, allocations: 0 / 335 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002902/0.4112, allocations: 201.6 kB / 335.2 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.4112, allocations: 0 / 335.2 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.4115, allocations: 23.98 kB / 335.2 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.299e-06/0.4115, allocations: 0 / 335.2 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.4115, allocations: 3.984 kB / 335.2 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.4115, allocations: 240 / 335.2 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4115, allocations: 3.938 kB / 335.2 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003693/0.4119, allocations: 199.3 kB / 335.4 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.452e-05/0.412, allocations: 93.09 kB / 335.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.4121, allocations: 0 / 335.5 MB, free: 1.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.4122, allocations: 4 kB / 335.5 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.4123, allocations: 7.984 kB / 335.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.4123, allocations: 0 / 335.5 MB, free: 1.648 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001187/0.4124, allocations: 111.6 kB / 335.6 MB, free: 1.543 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4124, allocations: 0 / 335.6 MB, free: 1.543 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003096/0.4128, allocations: 19.84 kB / 335.6 MB, free: 1.523 MB / 282.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.0006773/0.4134, allocations: 0.7241 MB / 336.3 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001805/0.4136, allocations: 39.98 kB / 336.4 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4137, allocations: 0 / 336.4 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.183e-05/0.4137, allocations: 23.94 kB / 336.4 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000349/0.4141, allocations: 24.23 kB / 336.4 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009816/0.4151, allocations: 252.8 kB / 336.7 MB, free: 408 kB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.4155, allocations: 0.7082 MB / 337.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.079e-05/0.4156, allocations: 31.42 kB / 337.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4156, allocations: 0 / 337.4 MB, free: 15.63 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.58/2.995, allocations: 1.619 MB / 339 MB, free: 14.01 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.InverseModel_res.mat does not exist to compare? outputFormat=mat