Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.727/1.727, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.515e-05, allocations: 4 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3677/0.3678, allocations: 38.78 MB / 263.9 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.169/2.537, allocations: 0.7307 GB / 0.9883 GB, free: 55.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/2.537, allocations: 68.66 kB / 0.9884 GB, free: 55.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5219/3.059, allocations: 77.45 MB / 1.064 GB, free: 116.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.304e-06/3.059, allocations: 0 / 1.064 GB, free: 116.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.156e-06/3.059, allocations: 0 / 1.064 GB, free: 116.3 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0009886/3.06, allocations: 469 kB / 1.064 GB, free: 115.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/3.06, allocations: 12.38 kB / 1.064 GB, free: 115.9 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.38e-05/3.06, allocations: 35.53 kB / 1.065 GB, free: 115.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004133/3.061, allocations: 37.44 kB / 1.065 GB, free: 115.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/3.061, allocations: 196.8 kB / 1.065 GB, free: 115.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/3.061, allocations: 2.562 kB / 1.065 GB, free: 115.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/3.061, allocations: 3.25 kB / 1.065 GB, free: 115.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/3.061, allocations: 77.08 kB / 1.065 GB, free: 115.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/3.061, allocations: 2.031 kB / 1.065 GB, free: 115.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/3.061, allocations: 2.938 kB / 1.065 GB, free: 115.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/3.061, allocations: 2.156 kB / 1.065 GB, free: 115.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/3.062, allocations: 41.78 kB / 1.065 GB, free: 115.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002392/3.062, allocations: 197 kB / 1.065 GB, free: 115.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/3.062, allocations: 112.8 kB / 1.065 GB, free: 115.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.025e-05/3.062, allocations: 33.55 kB / 1.065 GB, free: 115.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006288/3.063, allocations: 138.7 kB / 1.065 GB, free: 115.2 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/3.063, allocations: 34.91 kB / 1.065 GB, free: 115.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 2.935e-06/3.063, allocations: 0 / 1.065 GB, free: 115.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003641/3.063, allocations: 92.33 kB / 1.065 GB, free: 115.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/3.063, allocations: 82.19 kB / 1.066 GB, free: 115.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/3.064, allocations: 126.6 kB / 1.066 GB, free: 115 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/3.064, allocations: 25.7 kB / 1.066 GB, free: 115 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.903e-05/3.064, allocations: 154.4 kB / 1.066 GB, free: 114.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.612e-05/3.064, allocations: 28.05 kB / 1.066 GB, free: 114.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-06/3.064, allocations: 0 / 1.066 GB, free: 114.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.222e-05/3.064, allocations: 323.8 kB / 1.066 GB, free: 114.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.079e-05/3.064, allocations: 21.44 kB / 1.066 GB, free: 114.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001133/3.064, allocations: 51.44 kB / 1.066 GB, free: 114.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.564e-05/3.064, allocations: 31.83 kB / 1.066 GB, free: 114.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/3.064, allocations: 0 / 1.066 GB, free: 114.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002667/3.064, allocations: 100.7 kB / 1.066 GB, free: 114.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/3.064, allocations: 5.688 kB / 1.066 GB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.423e-06/3.064, allocations: 2.25 kB / 1.066 GB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/3.065, allocations: 3.375 kB / 1.066 GB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/3.065, allocations: 17.06 kB / 1.066 GB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/3.065, allocations: 5.094 kB / 1.066 GB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/3.065, allocations: 10.09 kB / 1.066 GB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-05/3.065, allocations: 7.688 kB / 1.066 GB, free: 114.4 MB / 362.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 6.751e-05/3.065, allocations: 118.7 kB / 1.067 GB, free: 114.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.14e-05/3.065, allocations: 3.906 kB / 1.067 GB, free: 114.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003599/3.065, allocations: 123.2 kB / 1.067 GB, free: 114.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/3.065, allocations: 3.781 kB / 1.067 GB, free: 114.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/3.065, allocations: 0 / 1.067 GB, free: 114.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/3.065, allocations: 0 / 1.067 GB, free: 114.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/3.066, allocations: 186.6 kB / 1.067 GB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/3.066, allocations: 3.75 kB / 1.067 GB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/3.066, allocations: 11.44 kB / 1.067 GB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/3.066, allocations: 3.562 kB / 1.067 GB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/3.066, allocations: 3.562 kB / 1.067 GB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/3.066, allocations: 0 / 1.067 GB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/3.066, allocations: 6.469 kB / 1.067 GB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004058/3.066, allocations: 178.4 kB / 1.067 GB, free: 114 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.796e-05/3.066, allocations: 100.3 kB / 1.067 GB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/3.066, allocations: 0 / 1.067 GB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.396e-05/3.067, allocations: 3.656 kB / 1.067 GB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.999e-05/3.067, allocations: 12.5 kB / 1.067 GB, free: 113.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/3.067, allocations: 6.875 kB / 1.067 GB, free: 113.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.618e-05/3.067, allocations: 107.2 kB / 1.067 GB, free: 113.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/3.067, allocations: 0 / 1.067 GB, free: 113.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001357/3.068, allocations: 271.6 kB / 1.067 GB, free: 113.7 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.003322/3.071, allocations: 1.625 MB / 1.069 GB, free: 112.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002396/3.072, allocations: 54.64 kB / 1.069 GB, free: 112.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/3.072, allocations: 0 / 1.069 GB, free: 112.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.548e-05/3.072, allocations: 33.14 kB / 1.069 GB, free: 112.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/3.072, allocations: 22.53 kB / 1.069 GB, free: 112.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/3.074, allocations: 419.3 kB / 1.07 GB, free: 112.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/3.074, allocations: 0.694 MB / 1.07 GB, free: 112 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.884e-05/3.074, allocations: 26.41 kB / 1.07 GB, free: 112 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/3.074, allocations: 0 / 1.07 GB, free: 112 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.833/5.907, allocations: 8.434 MB / 1.079 GB, free: 111 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat does not exist to compare? outputFormat=mat