Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.796/1.796, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.207e-05/3.22e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3031, allocations: 38.77 MB / 258.3 MB, free: 12.04 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.4278, allocations: 66.14 MB / 324.5 MB, free: 11.68 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003233/0.4282, allocations: 71.95 kB / 324.5 MB, free: 11.61 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02531/0.4535, allocations: 5.149 MB / 329.7 MB, free: 6.453 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.4536, allocations: 0 / 329.7 MB, free: 6.453 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.4536, allocations: 0 / 329.7 MB, free: 6.453 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004399/0.454, allocations: 358.3 kB / 330 MB, free: 6.059 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.4541, allocations: 12.03 kB / 330 MB, free: 6.047 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.239e-05/0.4541, allocations: 0 / 330 MB, free: 6.047 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.4543, allocations: 171 kB / 330.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.032e-05/0.4544, allocations: 0 / 330.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.4544, allocations: 0 / 330.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.295e-05/0.4544, allocations: 11.89 kB / 330.2 MB, free: 5.828 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.128e-05/0.4545, allocations: 37.69 kB / 330.3 MB, free: 5.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.4545, allocations: 3.938 kB / 330.3 MB, free: 5.781 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.4546, allocations: 3.938 kB / 330.3 MB, free: 5.777 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.4546, allocations: 4 kB / 330.3 MB, free: 5.773 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004022/0.455, allocations: 372.7 kB / 330.6 MB, free: 5.367 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.4551, allocations: 169.1 kB / 330.8 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.573e-05/0.4552, allocations: 88.03 kB / 330.9 MB, free: 5.102 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.406e-05/0.4552, allocations: 79.28 kB / 331 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.051e-05/0.4553, allocations: 105.8 kB / 331.1 MB, free: 4.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=0): time 2.064e-06/0.4553, allocations: 0 / 331.1 MB, free: 4.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=0): time 9.166e-05/0.4554, allocations: 37.59 kB / 331.1 MB, free: 4.867 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.501e-05/0.4555, allocations: 77.55 kB / 331.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.4556, allocations: 105 kB / 331.3 MB, free: 4.664 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.4556, allocations: 25.7 kB / 331.3 MB, free: 4.633 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.257e-05/0.4557, allocations: 158.5 kB / 331.5 MB, free: 4.477 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-06/0.4558, allocations: 0 / 331.5 MB, free: 4.477 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-06/0.4558, allocations: 4 kB / 331.5 MB, free: 4.473 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.4559, allocations: 314.8 kB / 331.8 MB, free: 4.156 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.858e-05/0.456, allocations: 4 kB / 331.8 MB, free: 4.152 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.366e-05/0.456, allocations: 4 kB / 331.8 MB, free: 4.148 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001163/0.4561, allocations: 15.92 kB / 331.8 MB, free: 4.133 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4562, allocations: 0 / 331.8 MB, free: 4.133 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001701/0.4563, allocations: 41.81 kB / 331.8 MB, free: 4.086 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.4564, allocations: 15.55 kB / 331.9 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.4564, allocations: 0 / 331.9 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.4564, allocations: 0 / 331.9 MB, free: 4.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.562e-05/0.4565, allocations: 4 kB / 331.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.4565, allocations: 0 / 331.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.683e-05/0.4566, allocations: 0 / 331.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.4566, allocations: 7.984 kB / 331.9 MB, free: 4.062 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 (1): * Single equations (assignments): 1 * 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 0.0001264/0.4567, allocations: 180.3 kB / 332 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001126/0.4569, allocations: 150.5 kB / 332.2 MB, free: 3.719 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.347e-05/0.457, allocations: 104.9 kB / 332.3 MB, free: 3.609 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.853e-05/0.457, allocations: 112.9 kB / 332.4 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.682e-05/0.4571, allocations: 180.2 kB / 332.6 MB, free: 3.312 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.014e-05/0.4572, allocations: 176.3 kB / 332.7 MB, free: 3.133 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-05/0.4573, allocations: 176.3 kB / 332.9 MB, free: 2.953 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.4577, allocations: 393.7 kB / 333.3 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.873e-05/0.4577, allocations: 104.9 kB / 333.4 MB, free: 2.414 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.4578, allocations: 109 kB / 333.5 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.813e-05/0.4579, allocations: 180.2 kB / 333.7 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.802e-05/0.458, allocations: 184.2 kB / 333.9 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.701e-05/0.4581, allocations: 180.3 kB / 334 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.602e-05/0.4582, allocations: 184.1 kB / 334.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.4584, allocations: 303.8 kB / 334.5 MB, free: 1.238 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.4585, allocations: 189.9 kB / 334.7 MB, free: 1.027 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.4586, allocations: 184.2 kB / 334.9 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.4588, allocations: 112.9 kB / 335 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.529e-05/0.4589, allocations: 180.2 kB / 335.2 MB, free: 0.5391 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.878e-05/0.4589, allocations: 101.8 kB / 335.3 MB, free: 444 kB / 282.7 MB Notification: Performance of sorting global known variables: time 9.034e-05/0.459, allocations: 91.58 kB / 335.4 MB, free: 352 kB / 282.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.459, allocations: 0 / 335.4 MB, free: 352 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004991/0.4595, allocations: 59.92 kB / 335.4 MB, free: 292 kB / 282.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.001083/0.4606, allocations: 0.901 MB / 336.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.91e-05/0.4608, allocations: 0 / 336.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4608, allocations: 0 / 336.3 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.845e-06/0.4608, allocations: 4 kB / 336.3 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.4612, allocations: 0.5264 MB / 336.9 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006426/0.4619, allocations: 218.9 kB / 337.1 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.4622, allocations: 0.6768 MB / 337.7 MB, free: 13.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.125e-05/0.4623, allocations: 15.44 kB / 337.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of SimCode: time 8.51e-07/0.4623, allocations: 0 / 337.8 MB, free: 13.86 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.468/2.931, allocations: 1.403 MB / 339.2 MB, free: 12.45 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat does not exist to compare? outputFormat=mat