Running command: translateModel(Modelica.Mechanics.Translational.Examples.ElastoGap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|elastoGap1.v_rel|elastoGap2.s_rel|springDamper1.v_rel|springDamper2.s_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.ElastoGap") Notification: Performance of loadModel(Modelica): time 2.166/2.166, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.983e-05/2.985e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.111, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.ElastoGap): time 0.003569/0.1147, allocations: 2.028 MB / 347 MB, free: 6.918 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.116, allocations: 362.8 kB / 347.4 MB, free: 6.562 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002437/0.1163, allocations: 8 kB / 347.4 MB, free: 6.555 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001117/0.1164, allocations: 39.69 kB / 347.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.1167, allocations: 107.6 kB / 347.5 MB, free: 6.41 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003751/0.1171, allocations: 63.92 kB / 347.6 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.1176, allocations: 191.5 kB / 347.8 MB, free: 6.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.1178, allocations: 60.94 kB / 347.8 MB, free: 6.102 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001737/0.118, allocations: 103.8 kB / 347.9 MB, free: 6 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002456/0.1182, allocations: 127.6 kB / 348 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.17e-05/0.1183, allocations: 12 kB / 348.1 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.624e-05/0.1184, allocations: 16 kB / 348.1 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.749e-05/0.1185, allocations: 43.83 kB / 348.1 MB, free: 5.805 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.161e-05/0.1186, allocations: 31.94 kB / 348.1 MB, free: 5.773 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003762/0.1189, allocations: 259.5 kB / 348.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.119, allocations: 0 / 348.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.119, allocations: 4 kB / 348.4 MB, free: 5.516 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.119, allocations: 0 / 348.4 MB, free: 5.516 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.001512/0.1205, allocations: 0.5732 MB / 349 MB, free: 4.891 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.1206, allocations: 12.03 kB / 349 MB, free: 4.879 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1207, allocations: 39.52 kB / 349 MB, free: 4.84 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000464/0.1212, allocations: 270.1 kB / 349.3 MB, free: 4.535 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.475e-05/0.1213, allocations: 24.56 kB / 349.3 MB, free: 4.512 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.014e-05/0.1214, allocations: 24 kB / 349.3 MB, free: 4.488 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000871/0.1222, allocations: 280.8 kB / 349.6 MB, free: 4.211 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.1223, allocations: 4 kB / 349.6 MB, free: 4.207 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.054e-05/0.1223, allocations: 8 kB / 349.6 MB, free: 4.199 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.1224, allocations: 8 kB / 349.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.1234, allocations: 290 kB / 349.9 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001983/0.1254, allocations: 0.7952 MB / 350.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.1264, allocations: 371.2 kB / 351.1 MB, free: 2.684 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.471e-05/0.1265, allocations: 11.98 kB / 351.1 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.759e-05/0.1266, allocations: 38.56 kB / 351.1 MB, free: 2.625 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.667e-06/0.1266, allocations: 0 / 351.1 MB, free: 2.625 MB / 282.7 MB Notification: Performance of matching and sorting (n=63): time 0.00763/0.1342, allocations: 2.027 MB / 353.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.1343, allocations: 63.97 kB / 353.2 MB, free: 448 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.1346, allocations: 174.1 kB / 353.4 MB, free: 268 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.487e-05/0.1346, allocations: 41.7 kB / 353.4 MB, free: 220 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.1348, allocations: 199.5 kB / 353.6 MB, free: 20 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002515/0.135, allocations: 217 kB / 353.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.1351, allocations: 8 kB / 353.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1352, allocations: 334.8 kB / 354.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005912/0.1358, allocations: 173 kB / 354.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005673/0.1364, allocations: 169 kB / 354.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006269/0.1371, allocations: 190.2 kB / 354.7 MB, free: 14.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.1371, allocations: 0 / 354.7 MB, free: 14.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001424/0.1385, allocations: 494.5 kB / 355.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.1386, allocations: 8 kB / 355.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.1386, allocations: 0 / 355.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.1386, allocations: 4 kB / 355.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009275/0.1395, allocations: 123.8 kB / 355.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.1396, allocations: 4 kB / 355.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.14, allocations: 31.98 kB / 355.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.14, allocations: 19.98 kB / 355.4 MB, free: 14.27 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.0002408/0.1403, allocations: 153.8 kB / 355.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.489e-05/0.1404, allocations: 35.58 kB / 355.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.1406, allocations: 47.34 kB / 355.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.1406, allocations: 8 kB / 355.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.1406, allocations: 0 / 355.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.1406, allocations: 3.984 kB / 355.6 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003141/0.1438, allocations: 1.333 MB / 356.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.1438, allocations: 8 kB / 356.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009881/0.1448, allocations: 131.8 kB / 357.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-05/0.1449, allocations: 8 kB / 357.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.765e-05/0.1449, allocations: 16 kB / 357.1 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-05/0.145, allocations: 11.94 kB / 357.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.145, allocations: 7.938 kB / 357.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002472/0.1475, allocations: 1.115 MB / 358.2 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.1477, allocations: 120.8 kB / 358.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.313e-05/0.1478, allocations: 16 kB / 358.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004548/0.1483, allocations: 31.98 kB / 358.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.1484, allocations: 51.83 kB / 358.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.988e-05/0.1485, allocations: 20 kB / 358.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001847/0.1487, allocations: 140.6 kB / 358.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1487, allocations: 0 / 358.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006145/0.1493, allocations: 96 kB / 358.7 MB, free: 10.6 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.0001956/0.1495, allocations: 119.1 kB / 358.8 MB, free: 10.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.151, allocations: 454.7 kB / 359.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.151, allocations: 0 / 359.2 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007965/0.1518, allocations: 259.7 kB / 359.5 MB, free: 9.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007961/0.1526, allocations: 80.69 kB / 359.6 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.1556, allocations: 1.222 MB / 360.8 MB, free: 8.379 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.1561, allocations: 0.8013 MB / 361.6 MB, free: 7.551 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002627/0.1564, allocations: 47.42 kB / 361.6 MB, free: 7.504 MB / 298.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1564, allocations: 0 / 361.6 MB, free: 7.504 MB / 298.7 MB Notification: Performance of Templates: time 0.01183/0.1682, allocations: 4.405 MB / 366.1 MB, free: 3.113 MB / 298.7 MB