Running command: translateModel(Modelica.Mechanics.Translational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|mass.s|mass.v|stop1.s|stop1.v|stop2.s|stop2.v|stop1.mode|stop1.startBackward|stop1.startForward|stop2.mode|stop2.startBackward|stop2.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.623/1.623, allocations: 171.2 MB / 185.7 MB, free: 1.398 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.192e-05, allocations: 0 / 228.1 MB, free: 7.344 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0803/0.08035, allocations: 38.76 MB / 266.9 MB, free: 0.5 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.004144/0.08455, allocations: 2.35 MB / 269.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003044/0.08766, allocations: 1.057 MB / 270.3 MB, free: 13.06 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003899/0.08812, allocations: 4 kB / 270.3 MB, free: 13.06 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003565/0.08849, allocations: 55.59 kB / 270.4 MB, free: 13 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004068/0.08891, allocations: 131.6 kB / 270.5 MB, free: 12.88 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.09022, allocations: 327.3 kB / 270.8 MB, free: 12.55 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000834/0.09108, allocations: 372.3 kB / 271.2 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.09126, allocations: 44.36 kB / 271.2 MB, free: 12.14 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00056/0.09184, allocations: 291.4 kB / 271.5 MB, free: 11.86 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002181/0.09403, allocations: 1.381 MB / 272.9 MB, free: 10.48 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000426/0.0945, allocations: 123.9 kB / 273 MB, free: 10.36 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002035/0.09472, allocations: 44 kB / 273.1 MB, free: 10.31 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.09501, allocations: 191.4 kB / 273.2 MB, free: 10.12 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001836/0.09521, allocations: 44 kB / 273.3 MB, free: 10.08 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001001/0.09622, allocations: 0.6082 MB / 273.9 MB, free: 9.473 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.09624, allocations: 0 / 273.9 MB, free: 9.473 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.09625, allocations: 0 / 273.9 MB, free: 9.473 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.482e-05/0.09628, allocations: 0 / 273.9 MB, free: 9.473 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.005975/0.1023, allocations: 1.232 MB / 275.1 MB, free: 8.191 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.1023, allocations: 8.031 kB / 275.1 MB, free: 8.184 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.1027, allocations: 83.05 kB / 275.2 MB, free: 8.102 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007568/0.1034, allocations: 398.7 kB / 275.6 MB, free: 7.668 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.012e-05/0.1035, allocations: 33 kB / 275.6 MB, free: 7.637 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.1037, allocations: 36 kB / 275.7 MB, free: 7.602 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002936/0.1066, allocations: 1.095 MB / 276.8 MB, free: 6.496 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.1067, allocations: 7.906 kB / 276.8 MB, free: 6.488 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/0.1068, allocations: 16 kB / 276.8 MB, free: 6.473 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.1068, allocations: 11.94 kB / 276.8 MB, free: 6.461 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004401/0.1112, allocations: 1.646 MB / 278.4 MB, free: 4.812 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006999/0.1183, allocations: 2.5 MB / 280.9 MB, free: 2.23 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.1211, allocations: 0.8912 MB / 281.8 MB, free: 1.32 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.1212, allocations: 8 kB / 281.8 MB, free: 1.312 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002393/0.1236, allocations: 0.8659 MB / 282.7 MB, free: 436 kB / 234.7 MB Notification: Performance of pre-optimization done (n=47): time 3.236e-06/0.1237, allocations: 0 / 282.7 MB, free: 436 kB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.02102/0.1447, allocations: 6.9 MB / 289.6 MB, free: 9.363 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.241e-05/0.1448, allocations: 85.11 kB / 289.7 MB, free: 9.262 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.1463, allocations: 0.8274 MB / 290.5 MB, free: 8.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002303/0.1465, allocations: 49.69 kB / 290.6 MB, free: 8.375 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.1469, allocations: 292.3 kB / 290.9 MB, free: 8.082 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002713/0.1472, allocations: 162 kB / 291 MB, free: 7.922 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.655e-05/0.1472, allocations: 15.98 kB / 291 MB, free: 7.906 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.1475, allocations: 382.8 kB / 291.4 MB, free: 7.523 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/0.1497, allocations: 0.79 MB / 292.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/0.1521, allocations: 0.8855 MB / 293.1 MB, free: 5.816 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002037/0.1542, allocations: 0.7177 MB / 293.8 MB, free: 5.102 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.1543, allocations: 3.953 kB / 293.8 MB, free: 5.098 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008192/0.1625, allocations: 3.552 MB / 297.4 MB, free: 1.527 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.1626, allocations: 10.03 kB / 297.4 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.1626, allocations: 0 / 297.4 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2101/0.3727, allocations: 1.699 MB / 299.1 MB, free: 32.19 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.3738, allocations: 118.3 kB / 299.2 MB, free: 32.19 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.3855, allocations: 6.266 MB / 305.4 MB, free: 28.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002842/0.3884, allocations: 305 kB / 305.7 MB, free: 28.7 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001602/0.3886, allocations: 25.94 kB / 305.8 MB, free: 28.69 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005728/0.3892, allocations: 258.1 kB / 306 MB, free: 28.53 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.3894, allocations: 70.77 kB / 306.1 MB, free: 28.53 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002769/0.3897, allocations: 105.1 kB / 306.2 MB, free: 28.46 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.3897, allocations: 5.516 kB / 306.2 MB, free: 28.46 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.3897, allocations: 0 / 306.2 MB, free: 28.46 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.3897, allocations: 4.422 kB / 306.2 MB, free: 28.46 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008194/0.3979, allocations: 4.162 MB / 310.4 MB, free: 27.49 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/0.398, allocations: 1.375 kB / 310.4 MB, free: 27.49 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009663/0.399, allocations: 95.7 kB / 310.5 MB, free: 27.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002671/0.4017, allocations: 1.664 MB / 312.1 MB, free: 27.17 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/0.4019, allocations: 24.7 kB / 312.1 MB, free: 27.16 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008764/0.4106, allocations: 5.997 MB / 318.1 MB, free: 21.89 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.4107, allocations: 2.719 kB / 318.1 MB, free: 21.89 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008154/0.4189, allocations: 4.316 MB / 322.5 MB, free: 17.53 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005126/0.4194, allocations: 205.7 kB / 322.7 MB, free: 17.31 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002033/0.4196, allocations: 24 kB / 322.7 MB, free: 17.29 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003129/0.4228, allocations: 349.4 kB / 323 MB, free: 16.95 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002483/0.4253, allocations: 0.651 MB / 323.7 MB, free: 16.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/0.4255, allocations: 23.97 kB / 323.7 MB, free: 16.27 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0009103/0.4264, allocations: 0.6709 MB / 324.4 MB, free: 15.61 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4264, allocations: 0 / 324.4 MB, free: 15.61 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001041/0.4275, allocations: 180 kB / 324.5 MB, free: 15.43 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003183/0.4278, allocations: 151.7 kB / 324.7 MB, free: 15.28 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004206/0.432, allocations: 1.826 MB / 326.5 MB, free: 13.43 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.4321, allocations: 2.297 kB / 326.5 MB, free: 13.43 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002511/0.4346, allocations: 1.048 MB / 327.6 MB, free: 12.36 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006725/0.4353, allocations: 63.47 kB / 327.6 MB, free: 12.3 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006473/0.4418, allocations: 2.256 MB / 329.9 MB, free: 10.01 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.4423, allocations: 0.9338 MB / 330.8 MB, free: 9.055 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003982/0.4427, allocations: 39.28 kB / 330.9 MB, free: 9.02 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.4429, allocations: 35.42 kB / 330.9 MB, free: 8.984 MB / 250.7 MB Notification: Performance of SimCode: time 9.01e-07/0.4429, allocations: 0 / 330.9 MB, free: 8.984 MB / 250.7 MB Notification: Performance of Templates: time 0.03265/0.4756, allocations: 13.8 MB / 344.7 MB, free: 11.2 MB / 266.7 MB