Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.ElastoGap,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Translational_Examples_ElastoGap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.405e-05, allocations: 8 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09407/0.09414, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4034/0.4976, allocations: 72 MB / 371.9 MB, free: 21.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4979, allocations: 64.44 kB / 372 MB, free: 21.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02516/0.5231, allocations: 5.637 MB / 377.6 MB, free: 20.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5231, allocations: 1.312 kB / 377.6 MB, free: 20.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.041e-05/0.5232, allocations: 5.406 kB / 377.6 MB, free: 20.95 MB / 314.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.001167/0.5244, allocations: 0.5531 MB / 378.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5244, allocations: 13.22 kB / 378.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.328e-05/0.5245, allocations: 63.64 kB / 378.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.843e-05/0.5246, allocations: 38.44 kB / 378.3 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.525, allocations: 249.1 kB / 378.5 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/0.525, allocations: 22.19 kB / 378.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.595e-05/0.5251, allocations: 33.91 kB / 378.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006307/0.5257, allocations: 247 kB / 378.8 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.5258, allocations: 5.125 kB / 378.8 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.5258, allocations: 10.41 kB / 378.9 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.5259, allocations: 6.281 kB / 378.9 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006065/0.5265, allocations: 232.5 kB / 379.1 MB, free: 20.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/0.5283, allocations: 0.8014 MB / 379.9 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007378/0.5291, allocations: 343.9 kB / 380.2 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003971/0.5295, allocations: 181.8 kB / 380.4 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.281e-05/0.5296, allocations: 7.484 kB / 380.4 MB, free: 19.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.5296, allocations: 36.34 kB / 380.4 MB, free: 19.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.256e-06/0.5296, allocations: 0 / 380.4 MB, free: 19.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.005766/0.5354, allocations: 1.761 MB / 382.2 MB, free: 19.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.115e-05/0.5355, allocations: 61.81 kB / 382.3 MB, free: 19.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.5357, allocations: 174.4 kB / 382.4 MB, free: 19.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.057e-05/0.5358, allocations: 35.98 kB / 382.5 MB, free: 18.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/0.5359, allocations: 201.1 kB / 382.7 MB, free: 18.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.536, allocations: 211.3 kB / 382.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.5361, allocations: 13.88 kB / 382.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.553e-05/0.5362, allocations: 331.9 kB / 383.2 MB, free: 18.37 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003807/0.5365, allocations: 138.3 kB / 383.3 MB, free: 18.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/0.5369, allocations: 141.2 kB / 383.5 MB, free: 18.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003985/0.5373, allocations: 160.4 kB / 383.6 MB, free: 18.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.5373, allocations: 0 / 383.6 MB, free: 18.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000977/0.5383, allocations: 431.1 kB / 384.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.5384, allocations: 8.578 kB / 384.1 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.5384, allocations: 4 kB / 384.1 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.5384, allocations: 5.375 kB / 384.1 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000956/0.5394, allocations: 128.9 kB / 384.2 MB, free: 18.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.5394, allocations: 6.062 kB / 384.2 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000434/0.5399, allocations: 28.77 kB / 384.2 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.898e-05/0.5399, allocations: 19.94 kB / 384.3 MB, free: 18.27 MB / 314.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.0001369/0.5401, allocations: 136.7 kB / 384.4 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.5402, allocations: 32.84 kB / 384.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.5404, allocations: 52.31 kB / 384.5 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.5404, allocations: 6.375 kB / 384.5 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/0.5404, allocations: 1.219 kB / 384.5 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.5404, allocations: 3.938 kB / 384.5 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.5431, allocations: 1.285 MB / 385.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.5431, allocations: 4.125 kB / 385.8 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009399/0.5441, allocations: 127.1 kB / 385.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.621e-05/0.5441, allocations: 12.19 kB / 385.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.827e-05/0.5442, allocations: 17.7 kB / 385.9 MB, free: 17.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.308e-05/0.5442, allocations: 11.12 kB / 385.9 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.536e-06/0.5442, allocations: 11.61 kB / 386 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.5458, allocations: 1.021 MB / 387 MB, free: 16.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.5459, allocations: 114.1 kB / 387.1 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.536e-05/0.546, allocations: 15.41 kB / 387.1 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005063/0.5465, allocations: 32.06 kB / 387.1 MB, free: 16.83 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.5467, allocations: 52.91 kB / 387.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.894e-05/0.5467, allocations: 23.66 kB / 387.2 MB, free: 16.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001562/0.5469, allocations: 140.6 kB / 387.3 MB, free: 16.74 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5469, allocations: 0 / 387.3 MB, free: 16.74 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006799/0.5476, allocations: 97.12 kB / 387.4 MB, free: 16.74 MB / 314.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.002521/0.5501, allocations: 2.812 MB / 390.3 MB, free: 30.38 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009675/0.5511, allocations: 395.3 kB / 390.6 MB, free: 30.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.5512, allocations: 1.469 kB / 390.6 MB, free: 30.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005119/0.5517, allocations: 224.8 kB / 390.9 MB, free: 30.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007754/0.5525, allocations: 77.75 kB / 390.9 MB, free: 30.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.5547, allocations: 0.9413 MB / 391.9 MB, free: 29.74 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004245/0.5551, allocations: 0.8049 MB / 392.7 MB, free: 29.04 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002969/0.5555, allocations: 121.7 kB / 392.8 MB, free: 29.03 MB / 330.7 MB Notification: Performance of SimCode: time 2.515e-06/0.5555, allocations: 0 / 392.8 MB, free: 29.03 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.393/2.949, allocations: 5.863 MB / 398.7 MB, free: 28.56 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap_res.mat does not exist to compare? outputFormat=mat