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.854/1.854, allocations: 171.2 MB / 183.8 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.126e-05/4.144e-05, allocations: 4 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2827, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1293/0.4121, allocations: 66.7 MB / 330.5 MB, free: 7.066 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.4125, allocations: 67.95 kB / 330.6 MB, free: 7 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0261/0.4386, allocations: 5.645 MB / 336.3 MB, free: 1.324 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4386, allocations: 0 / 336.3 MB, free: 1.324 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.4387, allocations: 8 kB / 336.3 MB, free: 1.316 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.001325/0.44, allocations: 0.5496 MB / 336.8 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.4401, allocations: 8.031 kB / 336.8 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.4402, allocations: 66.53 kB / 336.9 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.938e-05/0.4403, allocations: 31.62 kB / 336.9 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004058/0.4407, allocations: 258.3 kB / 337.2 MB, free: 324 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.724e-05/0.4408, allocations: 20.56 kB / 337.2 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.086e-05/0.4409, allocations: 36 kB / 337.2 MB, free: 268 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006682/0.4415, allocations: 243.8 kB / 337.5 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.4416, allocations: 7.984 kB / 337.5 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.22e-05/0.4416, allocations: 8 kB / 337.5 MB, free: 0 / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.032e-05/0.4417, allocations: 12.05 kB / 337.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006438/0.4423, allocations: 225 kB / 337.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.4444, allocations: 0.7952 MB / 338.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008414/0.4452, allocations: 341.7 kB / 338.8 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004406/0.4457, allocations: 176.8 kB / 339 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.291e-05/0.4458, allocations: 7.984 kB / 339 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.618e-05/0.4458, allocations: 38.62 kB / 339.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 4.128e-06/0.4458, allocations: 4 kB / 339.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=63): time 0.006328/0.4522, allocations: 1.765 MB / 340.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.4523, allocations: 63.92 kB / 340.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.4526, allocations: 173.9 kB / 341.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.4526, allocations: 37.64 kB / 341.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.4528, allocations: 207.4 kB / 341.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002262/0.453, allocations: 208.9 kB / 341.5 MB, free: 11.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/0.4531, allocations: 12 kB / 341.5 MB, free: 11.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.4532, allocations: 330.8 kB / 341.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003955/0.4536, allocations: 145.1 kB / 342 MB, free: 11.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003967/0.4541, allocations: 139.9 kB / 342.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004463/0.4545, allocations: 155.3 kB / 342.3 MB, free: 11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4545, allocations: 0 / 342.3 MB, free: 11 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001239/0.4558, allocations: 426.8 kB / 342.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.4558, allocations: 4 kB / 342.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.4558, allocations: 0 / 342.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.123e-05/0.4559, allocations: 7.984 kB / 342.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.4569, allocations: 127.8 kB / 342.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.819e-05/0.4569, allocations: 4 kB / 342.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004227/0.4574, allocations: 35.94 kB / 342.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.008e-05/0.4574, allocations: 19.94 kB / 342.9 MB, free: 10.39 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.0001707/0.4576, allocations: 132.8 kB / 343 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.897e-05/0.4577, allocations: 39.61 kB / 343 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001515/0.4579, allocations: 47.34 kB / 343.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.4579, allocations: 4 kB / 343.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.4579, allocations: 0 / 343.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.4579, allocations: 3.984 kB / 343.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00295/0.4609, allocations: 1.259 MB / 344.4 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.461, allocations: 4.562 kB / 344.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009984/0.462, allocations: 131.8 kB / 344.5 MB, free: 8.645 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.929e-05/0.462, allocations: 8 kB / 344.5 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.239e-05/0.4621, allocations: 19.95 kB / 344.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.629e-05/0.4621, allocations: 11.92 kB / 344.5 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.4621, allocations: 8 kB / 344.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001914/0.464, allocations: 1.026 MB / 345.6 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001403/0.4642, allocations: 104.7 kB / 345.7 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.927e-05/0.4643, allocations: 19.95 kB / 345.7 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005492/0.4649, allocations: 39.97 kB / 345.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.465, allocations: 47.84 kB / 345.8 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.256e-05/0.4651, allocations: 23.94 kB / 345.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001967/0.4653, allocations: 140.4 kB / 345.9 MB, free: 7.008 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4653, allocations: 4 kB / 345.9 MB, free: 7.004 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006358/0.4659, allocations: 96 kB / 346 MB, free: 6.91 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.002762/0.4687, allocations: 2.816 MB / 348.8 MB, free: 3.945 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.4699, allocations: 381.8 kB / 349.2 MB, free: 3.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.4699, allocations: 0 / 349.2 MB, free: 3.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005684/0.4705, allocations: 220.5 kB / 349.4 MB, free: 3.355 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000829/0.4713, allocations: 79.92 kB / 349.5 MB, free: 3.277 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.474, allocations: 0.9366 MB / 350.5 MB, free: 2.242 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.4745, allocations: 0.8011 MB / 351.3 MB, free: 1.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003632/0.4749, allocations: 123.4 kB / 351.4 MB, free: 1.293 MB / 298.7 MB Notification: Performance of SimCode: time 1.693e-06/0.4749, allocations: 0 / 351.4 MB, free: 1.293 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.681/3.156, allocations: 5.84 MB / 357.2 MB, free: 11.46 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