Running command: "" <> buildModelFMU(Modelica.Math.Nonlinear.Examples.quadratureLobatto3,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Math_Nonlinear_Examples_quadratureLobatto3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.821/1.821, allocations: 171.3 MB / 178.8 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.507e-05/2.508e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2763, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1632/0.4396, allocations: 64.97 MB / 323.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003439/0.44, allocations: 67.97 kB / 323.4 MB, free: 12.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02475/0.4648, allocations: 3.477 MB / 326.8 MB, free: 9.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4649, allocations: 0 / 326.8 MB, free: 9.309 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.4649, allocations: 0 / 326.8 MB, free: 9.309 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006115/0.4655, allocations: 378.2 kB / 327.2 MB, free: 8.895 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.18e-05/0.4656, allocations: 12.02 kB / 327.2 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.464e-05/0.4657, allocations: 4 kB / 327.2 MB, free: 8.879 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.4659, allocations: 163.1 kB / 327.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.4659, allocations: 4 kB / 327.4 MB, free: 8.676 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.4659, allocations: 0 / 327.4 MB, free: 8.676 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.91e-05/0.466, allocations: 11.95 kB / 327.4 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.216e-05/0.4661, allocations: 37.62 kB / 327.4 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.4662, allocations: 0 / 327.4 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.4662, allocations: 0 / 327.4 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.4662, allocations: 0 / 327.4 MB, free: 8.621 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000233/0.4665, allocations: 138.2 kB / 327.6 MB, free: 8.449 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.243e-05/0.4666, allocations: 26.58 kB / 327.6 MB, free: 8.414 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.954e-05/0.4666, allocations: 12.86 kB / 327.6 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.4667, allocations: 0 / 327.6 MB, free: 8.398 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.587e-05/0.4667, allocations: 30.56 kB / 327.6 MB, free: 8.359 MB / 282.7 MB Notification: Performance of pre-optimization done (n=3): time 2.304e-06/0.4668, allocations: 0 / 327.6 MB, free: 8.359 MB / 282.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001868/0.467, allocations: 57.62 kB / 327.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.467, allocations: 51.41 kB / 327.7 MB, free: 8.234 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/0.4671, allocations: 101 kB / 327.8 MB, free: 8.129 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.4672, allocations: 25.7 kB / 327.9 MB, free: 8.098 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.806e-05/0.4673, allocations: 154.6 kB / 328 MB, free: 7.945 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.636e-05/0.4673, allocations: 11.84 kB / 328 MB, free: 7.934 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.4674, allocations: 0 / 328 MB, free: 7.934 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.4675, allocations: 314.8 kB / 328.3 MB, free: 7.617 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.141e-05/0.4676, allocations: 4 kB / 328.3 MB, free: 7.613 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.167e-05/0.4676, allocations: 21.66 kB / 328.4 MB, free: 7.586 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.576e-05/0.4677, allocations: 7.984 kB / 328.4 MB, free: 7.578 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4677, allocations: 0 / 328.4 MB, free: 7.578 MB / 282.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001717/0.4679, allocations: 57.62 kB / 328.4 MB, free: 7.516 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.468, allocations: 4 kB / 328.4 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.468, allocations: 0 / 328.4 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.468, allocations: 4 kB / 328.4 MB, free: 7.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.4682, allocations: 4 kB / 328.4 MB, free: 7.504 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.4682, allocations: 11.89 kB / 328.5 MB, free: 7.492 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.226e-05/0.4683, allocations: 3.906 kB / 328.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-06/0.4683, allocations: 0 / 328.5 MB, free: 7.488 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001041/0.4684, allocations: 113 kB / 328.6 MB, free: 7.371 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000114/0.4686, allocations: 41.62 kB / 328.6 MB, free: 7.324 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.199e-05/0.4686, allocations: 4 kB / 328.6 MB, free: 7.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.402e-05/0.4687, allocations: 8.078 kB / 328.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.4687, allocations: 0 / 328.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4687, allocations: 0 / 328.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.4687, allocations: 3.984 kB / 328.6 MB, free: 7.305 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.4689, allocations: 130.2 kB / 328.7 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4689, allocations: 0 / 328.7 MB, free: 7.141 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.4691, allocations: 11.98 kB / 328.8 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.4691, allocations: 0 / 328.8 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.4692, allocations: 8.125 kB / 328.8 MB, free: 7.121 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4692, allocations: 0 / 328.8 MB, free: 7.121 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.4692, allocations: 3.953 kB / 328.8 MB, free: 7.117 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002022/0.4694, allocations: 77.03 kB / 328.8 MB, free: 7.023 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.449e-05/0.4695, allocations: 85.08 kB / 328.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.4695, allocations: 0 / 328.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.732e-05/0.4696, allocations: 0 / 328.9 MB, free: 6.922 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.068e-05/0.4696, allocations: 3.984 kB / 328.9 MB, free: 6.918 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.097e-06/0.4696, allocations: 8.016 kB / 328.9 MB, free: 6.91 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.6e-05/0.4697, allocations: 79.28 kB / 329 MB, free: 6.832 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.4697, allocations: 0 / 329 MB, free: 6.832 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006773/0.4704, allocations: 71.86 kB / 329.1 MB, free: 6.762 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (q,qd) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0009896/0.4714, allocations: 0.6714 MB / 329.8 MB, free: 6.059 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001236/0.4716, allocations: 23.98 kB / 329.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4716, allocations: 0 / 329.8 MB, free: 6.035 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.463e-05/0.4717, allocations: 8 kB / 329.8 MB, free: 6.027 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001828/0.4719, allocations: 3.594 kB / 329.8 MB, free: 6.027 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007234/0.4726, allocations: 191.3 kB / 330 MB, free: 5.797 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.473, allocations: 0.6845 MB / 330.7 MB, free: 5.086 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.434e-05/0.473, allocations: 7.438 kB / 330.7 MB, free: 5.078 MB / 282.7 MB Notification: Performance of SimCode: time 3.937e-06/0.4731, allocations: 4.062 kB / 330.7 MB, free: 5.074 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.575/3.048, allocations: 1.455 MB / 332.1 MB, free: 3.617 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Math.Nonlinear.Examples.quadratureLobatto3_res.mat does not exist to compare? outputFormat=mat