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.869/1.869, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.438e-05/2.436e-05, allocations: 0 / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2785, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1189/0.3974, allocations: 66.03 MB / 324.3 MB, free: 11.89 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.3978, allocations: 59.97 kB / 324.4 MB, free: 11.83 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02501/0.4228, allocations: 5.595 MB / 330 MB, free: 6.207 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4229, allocations: 4 kB / 330 MB, free: 6.203 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.045e-05/0.4229, allocations: 8 kB / 330 MB, free: 6.195 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.001288/0.4242, allocations: 0.5536 MB / 330.6 MB, free: 5.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.4243, allocations: 8.031 kB / 330.6 MB, free: 5.59 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.69e-05/0.4244, allocations: 31.62 kB / 330.6 MB, free: 5.559 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.4248, allocations: 258.3 kB / 330.9 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.698e-05/0.4249, allocations: 11.95 kB / 330.9 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.087e-05/0.425, allocations: 20 kB / 330.9 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006169/0.4256, allocations: 217 kB / 331.1 MB, free: 5.023 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.4262, allocations: 207.8 kB / 331.3 MB, free: 4.812 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.4262, allocations: 4 kB / 331.3 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.4263, allocations: 0 / 331.3 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.4263, allocations: 8 kB / 331.3 MB, free: 4.801 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.4282, allocations: 0.7322 MB / 332 MB, free: 4.027 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007387/0.429, allocations: 327.2 kB / 332.4 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003838/0.4294, allocations: 168.8 kB / 332.5 MB, free: 3.523 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.469e-05/0.4295, allocations: 4 kB / 332.5 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.4295, allocations: 42.5 kB / 332.6 MB, free: 3.469 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.346e-06/0.4295, allocations: 0 / 332.6 MB, free: 3.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.004159/0.4337, allocations: 1.485 MB / 334.1 MB, free: 1.895 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.308e-05/0.4338, allocations: 59.97 kB / 334.1 MB, free: 1.824 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.434, allocations: 153.9 kB / 334.3 MB, free: 1.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.415e-05/0.4341, allocations: 25.7 kB / 334.3 MB, free: 1.629 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.4342, allocations: 207.4 kB / 334.5 MB, free: 1.426 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002247/0.4345, allocations: 208.8 kB / 334.7 MB, free: 1.219 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.4345, allocations: 0 / 334.7 MB, free: 1.219 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.4347, allocations: 334.8 kB / 335 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.4351, allocations: 133.1 kB / 335.2 MB, free: 0.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.4354, allocations: 127.9 kB / 335.3 MB, free: 0.625 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003876/0.4358, allocations: 146.1 kB / 335.4 MB, free: 496 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4358, allocations: 0 / 335.4 MB, free: 496 kB / 282.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.0009441/0.4368, allocations: 390.8 kB / 335.8 MB, free: 100 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.4368, allocations: 11.59 kB / 335.8 MB, free: 92 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.4368, allocations: 0 / 335.8 MB, free: 92 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.4369, allocations: 0 / 335.8 MB, free: 92 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009669/0.4378, allocations: 123.9 kB / 335.9 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.4379, allocations: 4 kB / 335.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000374/0.4383, allocations: 19.98 kB / 336 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.637e-05/0.4383, allocations: 19.98 kB / 336 MB, free: 15.93 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.0001488/0.4385, allocations: 116.8 kB / 336.1 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009627/0.4395, allocations: 382.7 kB / 336.5 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.837e-05/0.4396, allocations: 31.62 kB / 336.5 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.4397, allocations: 43.95 kB / 336.5 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.697e-06/0.4397, allocations: 11.94 kB / 336.6 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.4398, allocations: 0 / 336.6 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.4398, allocations: 0 / 336.6 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002613/0.4424, allocations: 1.157 MB / 337.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.4425, allocations: 4.562 kB / 337.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.4435, allocations: 131.8 kB / 337.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.856e-05/0.4435, allocations: 8 kB / 337.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.536e-05/0.4436, allocations: 8 kB / 337.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.631e-05/0.4436, allocations: 11.89 kB / 337.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.429e-05/0.4436, allocations: 8 kB / 337.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.4453, allocations: 0.9751 MB / 338.9 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.4455, allocations: 112.9 kB / 339 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.811e-05/0.4456, allocations: 7.953 kB / 339 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004554/0.446, allocations: 31.97 kB / 339 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.4462, allocations: 51.77 kB / 339.1 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.984e-05/0.4462, allocations: 20 kB / 339.1 MB, free: 12.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001493/0.4464, allocations: 124.5 kB / 339.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4464, allocations: 4 kB / 339.2 MB, free: 12.39 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006448/0.4471, allocations: 76 kB / 339.3 MB, free: 12.32 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.002509/0.4496, allocations: 2.762 MB / 342 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009369/0.4506, allocations: 353.8 kB / 342.4 MB, free: 9.059 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.4506, allocations: 7.938 kB / 342.4 MB, free: 9.051 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005586/0.4512, allocations: 212.5 kB / 342.6 MB, free: 8.844 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007957/0.452, allocations: 62.89 kB / 342.7 MB, free: 8.785 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.4545, allocations: 0.8925 MB / 343.6 MB, free: 7.793 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004921/0.455, allocations: 0.7969 MB / 344.4 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003572/0.4554, allocations: 119.4 kB / 344.5 MB, free: 6.852 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4554, allocations: 0 / 344.5 MB, free: 6.852 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.559/3.015, allocations: 5.796 MB / 350.3 MB, free: 1.062 MB / 298.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