Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.77/1.77, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.439e-05/3.457e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.2815, allocations: 38.76 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1437/0.4253, allocations: 66.7 MB / 330.5 MB, free: 7.062 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.4256, allocations: 67.95 kB / 330.6 MB, free: 6.996 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03353/0.4591, allocations: 5.649 MB / 336.2 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4592, allocations: 0 / 336.2 MB, free: 1.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.602e-05/0.4593, allocations: 8 kB / 336.2 MB, free: 1.312 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001733/0.461, allocations: 0.5458 MB / 336.8 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.082e-05/0.4611, allocations: 8.031 kB / 336.8 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.4613, allocations: 66.53 kB / 336.9 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.4614, allocations: 35.62 kB / 336.9 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005641/0.462, allocations: 254.3 kB / 337.1 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.553e-05/0.4621, allocations: 28.56 kB / 337.2 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.4622, allocations: 28 kB / 337.2 MB, free: 268 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.4633, allocations: 248.9 kB / 337.4 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/0.4633, allocations: 0 / 337.4 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.4634, allocations: 16.08 kB / 337.5 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.4635, allocations: 4 kB / 337.5 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009709/0.4645, allocations: 222.2 kB / 337.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.4672, allocations: 0.8068 MB / 338.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008345/0.468, allocations: 343.4 kB / 338.8 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004492/0.4685, allocations: 176.8 kB / 339 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.896e-05/0.4686, allocations: 4 kB / 339 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.848e-05/0.4686, allocations: 38.62 kB / 339 MB, free: 14.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.815e-06/0.4687, allocations: 4 kB / 339 MB, free: 14.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.006149/0.4748, allocations: 1.765 MB / 340.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.105e-05/0.4749, allocations: 59.92 kB / 340.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.4752, allocations: 177.9 kB / 341 MB, free: 12.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.837e-05/0.4753, allocations: 37.64 kB / 341.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001359/0.4754, allocations: 203.4 kB / 341.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002261/0.4756, allocations: 212.8 kB / 341.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.4757, allocations: 12 kB / 341.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.4759, allocations: 334.8 kB / 341.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003898/0.4763, allocations: 137.1 kB / 342 MB, free: 11.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004018/0.4767, allocations: 153 kB / 342.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004409/0.4771, allocations: 151.3 kB / 342.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4772, allocations: 0 / 342.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001082/0.4783, allocations: 434.8 kB / 342.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.4783, allocations: 8 kB / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.4783, allocations: 0 / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.4783, allocations: 0 / 342.7 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009649/0.4793, allocations: 131.9 kB / 342.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.4793, allocations: 0 / 342.8 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004021/0.4798, allocations: 31.94 kB / 342.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/0.4798, allocations: 19.94 kB / 342.9 MB, free: 10.38 MB / 298.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: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * 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.000175/0.48, allocations: 140.8 kB / 343 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.4801, allocations: 31.62 kB / 343 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001668/0.4803, allocations: 55.33 kB / 343.1 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.4803, allocations: 8 kB / 343.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.4803, allocations: 0 / 343.1 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.4804, allocations: 3.984 kB / 343.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/0.4832, allocations: 1.262 MB / 344.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.4833, allocations: 4.562 kB / 344.4 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002029/0.4853, allocations: 131.8 kB / 344.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.797e-05/0.4854, allocations: 8 kB / 344.5 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.978e-05/0.4855, allocations: 23.94 kB / 344.5 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-05/0.4856, allocations: 8 kB / 344.5 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.394e-05/0.4856, allocations: 7.938 kB / 344.5 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003601/0.4892, allocations: 1.022 MB / 345.6 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.4895, allocations: 104.7 kB / 345.7 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.4897, allocations: 23.98 kB / 345.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007439/0.4904, allocations: 35.98 kB / 345.7 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.4906, allocations: 47.84 kB / 345.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.493e-05/0.4907, allocations: 23.98 kB / 345.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003032/0.491, allocations: 140.4 kB / 345.9 MB, free: 6.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.452e-06/0.4911, allocations: 8 kB / 345.9 MB, free: 6.973 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001949/0.493, allocations: 92 kB / 346 MB, free: 6.883 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (springDamper2.s_rel,springDamper2.v_rel,elastoGap2.s_rel,elastoGap2.v_rel) * Number of discrete variables: 2 (elastoGap1.contact,elastoGap2.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 63 * 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.004533/0.4976, allocations: 2.813 MB / 348.8 MB, free: 3.922 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.4997, allocations: 390.9 kB / 349.2 MB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-05/0.4998, allocations: 4 kB / 349.2 MB, free: 3.539 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000865/0.5007, allocations: 224.3 kB / 349.4 MB, free: 3.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.5027, allocations: 78.41 kB / 349.5 MB, free: 3.246 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004249/0.507, allocations: 0.9523 MB / 350.5 MB, free: 2.191 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.5075, allocations: 0.805 MB / 351.3 MB, free: 1.359 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003756/0.5079, allocations: 119.4 kB / 351.4 MB, free: 1.242 MB / 298.7 MB Notification: Performance of SimCode: time 1.583e-06/0.508, allocations: 0 / 351.4 MB, free: 1.242 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.487/2.995, allocations: 5.868 MB / 357.3 MB, free: 11.39 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat