Running command: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 2.328/2.328, allocations: 194.9 MB / 211.2 MB, free: 8.145 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.75e-05/3.763e-05, allocations: 7.984 kB / 258.8 MB, free: 8.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3435, allocations: 44.5 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003501/0.3471, allocations: 2.003 MB / 305.3 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.3483, allocations: 344.8 kB / 305.6 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002506/0.3486, allocations: 6.844 kB / 305.6 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.3487, allocations: 39.94 kB / 305.7 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003804/0.3491, allocations: 108.3 kB / 305.8 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.3495, allocations: 64.08 kB / 305.8 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004564/0.3499, allocations: 193.1 kB / 306 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.3502, allocations: 56.38 kB / 306.1 MB, free: 10.5 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.3504, allocations: 102 kB / 306.2 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.3506, allocations: 133.4 kB / 306.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.191e-05/0.3507, allocations: 12.72 kB / 306.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.694e-05/0.3508, allocations: 12.16 kB / 306.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.916e-05/0.3509, allocations: 52.86 kB / 306.4 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.153e-05/0.351, allocations: 30.22 kB / 306.4 MB, free: 10.33 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000419/0.3514, allocations: 255.5 kB / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.3514, allocations: 0 / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3514, allocations: 1.219 kB / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.647e-05/0.3515, allocations: 0 / 306.7 MB, free: 10.14 MB / 250.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.001586/0.3531, allocations: 0.5749 MB / 307.2 MB, free: 9.645 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.3531, allocations: 7.75 kB / 307.2 MB, free: 9.645 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.3533, allocations: 33.75 kB / 307.3 MB, free: 9.629 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004817/0.3538, allocations: 256.9 kB / 307.5 MB, free: 9.34 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.548e-05/0.3538, allocations: 20.56 kB / 307.6 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.372e-05/0.3539, allocations: 31.98 kB / 307.6 MB, free: 9.289 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009322/0.3549, allocations: 288.8 kB / 307.9 MB, free: 8.996 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.3549, allocations: 3.906 kB / 307.9 MB, free: 8.992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.355, allocations: 12 kB / 307.9 MB, free: 8.98 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.355, allocations: 8 kB / 307.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.356, allocations: 282.1 kB / 308.2 MB, free: 8.699 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.3582, allocations: 0.8028 MB / 309 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.3593, allocations: 367.3 kB / 309.3 MB, free: 7.469 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.592e-05/0.3594, allocations: 8 kB / 309.3 MB, free: 7.461 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.3594, allocations: 34.56 kB / 309.4 MB, free: 7.418 MB / 250.7 MB Notification: Performance of pre-optimization done (n=43): time 3.226e-06/0.3594, allocations: 4 kB / 309.4 MB, free: 7.414 MB / 250.7 MB Notification: Performance of matching and sorting (n=63): time 0.007756/0.3672, allocations: 2.041 MB / 311.4 MB, free: 5.281 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.3673, allocations: 55.97 kB / 311.5 MB, free: 5.211 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.3676, allocations: 171.4 kB / 311.6 MB, free: 5.039 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.361e-05/0.3677, allocations: 33.7 kB / 311.7 MB, free: 5 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.3678, allocations: 207.4 kB / 311.9 MB, free: 4.797 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002487/0.3681, allocations: 216.8 kB / 312.1 MB, free: 4.582 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.3681, allocations: 16 kB / 312.1 MB, free: 4.566 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.3683, allocations: 334.8 kB / 312.4 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000659/0.369, allocations: 165 kB / 312.6 MB, free: 4.07 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000611/0.3696, allocations: 180.9 kB / 312.8 MB, free: 3.898 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006473/0.3703, allocations: 186.1 kB / 312.9 MB, free: 3.715 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3703, allocations: 4 kB / 312.9 MB, free: 3.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001497/0.3718, allocations: 486.9 kB / 313.4 MB, free: 3.227 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.3719, allocations: 4 kB / 313.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.709e-06/0.3719, allocations: 0 / 313.4 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/0.3719, allocations: 4 kB / 313.4 MB, free: 3.219 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009703/0.3729, allocations: 131.8 kB / 313.6 MB, free: 3.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.516e-05/0.3729, allocations: 4 kB / 313.6 MB, free: 3.086 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000428/0.3734, allocations: 27.98 kB / 313.6 MB, free: 3.059 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.579e-05/0.3734, allocations: 16 kB / 313.6 MB, free: 3.043 MB / 250.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.0002632/0.3737, allocations: 157.7 kB / 313.8 MB, free: 2.879 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.3738, allocations: 43.53 kB / 313.8 MB, free: 2.836 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001616/0.374, allocations: 47.34 kB / 313.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.374, allocations: 8 kB / 313.9 MB, free: 2.773 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.3741, allocations: 3.953 kB / 313.9 MB, free: 2.77 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3741, allocations: 3.984 kB / 313.9 MB, free: 2.766 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003359/0.3774, allocations: 1.321 MB / 315.2 MB, free: 1.332 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.3775, allocations: 4 kB / 315.2 MB, free: 1.328 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.3785, allocations: 136.3 kB / 315.3 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.528e-05/0.3786, allocations: 8 kB / 315.3 MB, free: 1.188 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.289e-05/0.3786, allocations: 16 kB / 315.3 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.507e-05/0.3787, allocations: 15.94 kB / 315.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.3787, allocations: 4 kB / 315.4 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002559/0.3812, allocations: 1.108 MB / 316.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.3815, allocations: 116.7 kB / 316.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.954e-05/0.3816, allocations: 16 kB / 316.6 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/0.3821, allocations: 35.98 kB / 316.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3822, allocations: 51.92 kB / 316.7 MB, free: 15.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.224e-05/0.3823, allocations: 23.98 kB / 316.7 MB, free: 15.61 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.3825, allocations: 143.4 kB / 316.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.3825, allocations: 4 kB / 316.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005877/0.3831, allocations: 92 kB / 316.9 MB, free: 15.37 MB / 266.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.0001915/0.3833, allocations: 123 kB / 317.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.3848, allocations: 450.7 kB / 317.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.3848, allocations: 0 / 317.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008149/0.3856, allocations: 264.7 kB / 317.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008046/0.3865, allocations: 71.67 kB / 317.8 MB, free: 14.47 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00293/0.3894, allocations: 1.218 MB / 319.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.39, allocations: 0.8013 MB / 319.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/0.3903, allocations: 43.42 kB / 319.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of SimCode: time 1.743e-06/0.3903, allocations: 0 / 319.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Templates: time 0.01204/0.4023, allocations: 4.406 MB / 324.3 MB, free: 7.891 MB / 266.7 MB