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.944/1.944, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.922e-05/2.926e-05, allocations: 0 / 255.4 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09425, allocations: 44.5 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.477/0.5713, allocations: 72.01 MB / 372 MB, free: 21.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5717, allocations: 67.36 kB / 372 MB, free: 21.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02648/0.5982, allocations: 5.632 MB / 377.7 MB, free: 20.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5982, allocations: 3.938 kB / 377.7 MB, free: 20.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.476e-05/0.5982, allocations: 5.844 kB / 377.7 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.001344/0.5996, allocations: 0.5502 MB / 378.2 MB, free: 20.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.5997, allocations: 9.469 kB / 378.2 MB, free: 20.53 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.5998, allocations: 69.14 kB / 378.3 MB, free: 20.49 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001106/0.5999, allocations: 41.36 kB / 378.3 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/0.6003, allocations: 249.2 kB / 378.6 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.6004, allocations: 21.02 kB / 378.6 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.803e-05/0.6004, allocations: 28.94 kB / 378.6 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006477/0.6011, allocations: 247 kB / 378.9 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.6011, allocations: 5.25 kB / 378.9 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.6012, allocations: 9.656 kB / 378.9 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.6012, allocations: 7.094 kB / 378.9 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006485/0.6019, allocations: 225.2 kB / 379.1 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.6039, allocations: 0.8078 MB / 379.9 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007493/0.6047, allocations: 336.3 kB / 380.2 MB, free: 19.83 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004114/0.6051, allocations: 179.2 kB / 380.4 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.04e-05/0.6051, allocations: 12.31 kB / 380.4 MB, free: 19.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.6052, allocations: 37.86 kB / 380.5 MB, free: 19.77 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 2.885e-06/0.6052, allocations: 0 / 380.5 MB, free: 19.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=63): time 0.006047/0.6113, allocations: 1.759 MB / 382.2 MB, free: 19.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.6113, allocations: 58.69 kB / 382.3 MB, free: 19.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.6116, allocations: 175.2 kB / 382.5 MB, free: 19.03 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.6116, allocations: 38.78 kB / 382.5 MB, free: 19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.056e-05/0.6117, allocations: 195.4 kB / 382.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.6119, allocations: 213.5 kB / 382.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.612, allocations: 14.28 kB / 382.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.6121, allocations: 332 kB / 383.2 MB, free: 18.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.6124, allocations: 137.6 kB / 383.4 MB, free: 18.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003627/0.6128, allocations: 141.7 kB / 383.5 MB, free: 18.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004075/0.6132, allocations: 158.7 kB / 383.7 MB, free: 18.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.6132, allocations: 0 / 383.7 MB, free: 18.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001029/0.6143, allocations: 432.4 kB / 384.1 MB, free: 18.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.6143, allocations: 8.484 kB / 384.1 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.6144, allocations: 1.312 kB / 384.1 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.151e-05/0.6144, allocations: 6.375 kB / 384.1 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009469/0.6154, allocations: 124.9 kB / 384.2 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.6154, allocations: 3.281 kB / 384.2 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004509/0.6158, allocations: 31.91 kB / 384.3 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.786e-05/0.6159, allocations: 18.69 kB / 384.3 MB, free: 18.29 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.0001484/0.6161, allocations: 137 kB / 384.4 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.883e-05/0.6162, allocations: 34.03 kB / 384.4 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001642/0.6164, allocations: 51.55 kB / 384.5 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.143e-05/0.6164, allocations: 9.859 kB / 384.5 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.6164, allocations: 0 / 384.5 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.6164, allocations: 5.266 kB / 384.5 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002622/0.619, allocations: 1.273 MB / 385.8 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/0.6191, allocations: 8.062 kB / 385.8 MB, free: 17.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.6201, allocations: 128.2 kB / 385.9 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.822e-05/0.6202, allocations: 8.094 kB / 385.9 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.277e-05/0.6202, allocations: 15.16 kB / 385.9 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.356e-05/0.6202, allocations: 8.156 kB / 385.9 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.858e-06/0.6203, allocations: 9.562 kB / 386 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.6219, allocations: 1.02 MB / 387 MB, free: 16.96 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.6221, allocations: 112.5 kB / 387.1 MB, free: 16.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.019e-05/0.6222, allocations: 20.38 kB / 387.1 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004808/0.6227, allocations: 29.22 kB / 387.1 MB, free: 16.85 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.6228, allocations: 50.42 kB / 387.2 MB, free: 16.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.084e-05/0.6229, allocations: 26.48 kB / 387.2 MB, free: 16.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001704/0.6231, allocations: 145.7 kB / 387.3 MB, free: 16.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6231, allocations: 0 / 387.3 MB, free: 16.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006369/0.6237, allocations: 92.41 kB / 387.4 MB, free: 16.76 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.00268/0.6264, allocations: 2.812 MB / 390.3 MB, free: 30.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009898/0.6275, allocations: 382.4 kB / 390.6 MB, free: 30.38 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.6275, allocations: 0 / 390.6 MB, free: 30.38 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005301/0.628, allocations: 228.3 kB / 390.8 MB, free: 30.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008227/0.6289, allocations: 68.88 kB / 390.9 MB, free: 30.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.6313, allocations: 0.9394 MB / 391.9 MB, free: 29.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.6318, allocations: 0.8018 MB / 392.7 MB, free: 29.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003258/0.6322, allocations: 120.7 kB / 392.8 MB, free: 29.05 MB / 330.7 MB Notification: Performance of SimCode: time 1.914e-06/0.6322, allocations: 0 / 392.8 MB, free: 29.05 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.505/3.137, allocations: 5.836 MB / 398.6 MB, free: 28.58 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