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_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.172e-05/3.171e-05, allocations: 4 kB / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08476/0.08482, allocations: 38.77 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.003884/0.08879, allocations: 2.349 MB / 269.2 MB, free: 14.76 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.09184, allocations: 1.057 MB / 270.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003483/0.09225, allocations: 4 kB / 270.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003441/0.09261, allocations: 55.59 kB / 270.3 MB, free: 13.64 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00041/0.09304, allocations: 127.6 kB / 270.5 MB, free: 13.52 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001238/0.09429, allocations: 319.4 kB / 270.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008666/0.09518, allocations: 372.3 kB / 271.1 MB, free: 12.84 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.09539, allocations: 44.34 kB / 271.2 MB, free: 12.8 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006191/0.09602, allocations: 299.3 kB / 271.5 MB, free: 12.5 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002273/0.09832, allocations: 1.385 MB / 272.9 MB, free: 11.12 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005046/0.09888, allocations: 123.9 kB / 273 MB, free: 11 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.09913, allocations: 36 kB / 273 MB, free: 10.96 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002943/0.09944, allocations: 191.4 kB / 273.2 MB, free: 10.77 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.09966, allocations: 44 kB / 273.3 MB, free: 10.73 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1008, allocations: 0.6082 MB / 273.9 MB, free: 10.12 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1009, allocations: 0 / 273.9 MB, free: 10.12 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.387e-06/0.1009, allocations: 0 / 273.9 MB, free: 10.12 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.784e-05/0.101, allocations: 0 / 273.9 MB, free: 10.12 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.006142/0.1071, allocations: 1.236 MB / 275.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.1072, allocations: 8.031 kB / 275.1 MB, free: 8.828 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.1076, allocations: 83.05 kB / 275.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008397/0.1084, allocations: 394.7 kB / 275.6 MB, free: 8.316 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.048e-05/0.1085, allocations: 29 kB / 275.6 MB, free: 8.289 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.1087, allocations: 36 kB / 275.6 MB, free: 8.254 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003206/0.1119, allocations: 1.107 MB / 276.7 MB, free: 7.137 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.177e-05/0.112, allocations: 3.906 kB / 276.7 MB, free: 7.133 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.1121, allocations: 16 kB / 276.8 MB, free: 7.117 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.1121, allocations: 8 kB / 276.8 MB, free: 7.109 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004741/0.1169, allocations: 1.647 MB / 278.4 MB, free: 5.461 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007811/0.1247, allocations: 2.504 MB / 280.9 MB, free: 2.875 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002944/0.1277, allocations: 0.8834 MB / 281.8 MB, free: 1.973 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.1279, allocations: 11.98 kB / 281.8 MB, free: 1.961 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002544/0.1305, allocations: 0.862 MB / 282.7 MB, free: 1.078 MB / 234.7 MB Notification: Performance of pre-optimization done (n=47): time 7.945e-06/0.1306, allocations: 3.984 kB / 282.7 MB, free: 1.074 MB / 234.7 MB Notification: Performance of matching and sorting (n=49): time 0.02125/0.1518, allocations: 6.905 MB / 289.6 MB, free: 10.01 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/0.1519, allocations: 81.11 kB / 289.7 MB, free: 9.91 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/0.1534, allocations: 0.8351 MB / 290.5 MB, free: 9.07 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002465/0.1537, allocations: 53.69 kB / 290.6 MB, free: 9.012 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.154, allocations: 310.8 kB / 290.9 MB, free: 8.703 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.1543, allocations: 162 kB / 291 MB, free: 8.543 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.205e-05/0.1544, allocations: 16 kB / 291 MB, free: 8.527 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1545, allocations: 334.8 kB / 291.4 MB, free: 8.191 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002182/0.1567, allocations: 0.79 MB / 292.1 MB, free: 7.402 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002358/0.1591, allocations: 0.8855 MB / 293 MB, free: 6.484 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001989/0.1612, allocations: 0.7215 MB / 293.8 MB, free: 5.766 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.305e-06/0.1612, allocations: 3.953 kB / 293.8 MB, free: 5.762 MB / 250.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.008261/0.1695, allocations: 3.502 MB / 297.3 MB, free: 2.242 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.1696, allocations: 8 kB / 297.3 MB, free: 2.234 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1696, allocations: 0 / 297.3 MB, free: 2.234 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003031/0.1726, allocations: 1.709 MB / 299 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.1738, allocations: 123.8 kB / 299.1 MB, free: 404 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.339/0.5128, allocations: 6.249 MB / 305.3 MB, free: 28.81 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004348/0.5172, allocations: 304.2 kB / 305.6 MB, free: 28.8 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003085/0.5176, allocations: 24.27 kB / 305.7 MB, free: 28.8 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.001009/0.5186, allocations: 258.5 kB / 305.9 MB, free: 28.64 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003348/0.519, allocations: 74.98 kB / 306 MB, free: 28.64 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004432/0.5195, allocations: 99.36 kB / 306.1 MB, free: 28.57 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/0.5195, allocations: 9.938 kB / 306.1 MB, free: 28.57 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.5195, allocations: 1.031 kB / 306.1 MB, free: 28.57 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.5196, allocations: 2.203 kB / 306.1 MB, free: 28.57 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0124/0.532, allocations: 4.162 MB / 310.3 MB, free: 27.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/0.532, allocations: 0 / 310.3 MB, free: 27.6 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/0.5335, allocations: 91.92 kB / 310.4 MB, free: 27.59 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004629/0.5382, allocations: 1.673 MB / 312 MB, free: 27.27 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002462/0.5385, allocations: 20.48 kB / 312 MB, free: 27.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0142/0.5528, allocations: 5.994 MB / 318 MB, free: 22.29 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.5528, allocations: 3.328 kB / 318 MB, free: 22.29 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/0.5666, allocations: 4.313 MB / 322.4 MB, free: 17.95 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008095/0.5675, allocations: 207.5 kB / 322.6 MB, free: 17.73 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003291/0.5679, allocations: 25.73 kB / 322.6 MB, free: 17.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004744/0.5726, allocations: 358.7 kB / 322.9 MB, free: 17.36 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003937/0.5766, allocations: 0.6354 MB / 323.6 MB, free: 16.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003057/0.577, allocations: 35.95 kB / 323.6 MB, free: 16.69 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001477/0.5785, allocations: 0.6631 MB / 324.3 MB, free: 16.03 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.492e-06/0.5786, allocations: 4 kB / 324.3 MB, free: 16.03 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001862/0.5804, allocations: 180 kB / 324.4 MB, free: 15.85 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.0005333/0.581, allocations: 156.1 kB / 324.6 MB, free: 15.7 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.006655/0.5877, allocations: 1.827 MB / 326.4 MB, free: 13.85 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.5878, allocations: 0 / 326.4 MB, free: 13.85 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003714/0.5915, allocations: 1.005 MB / 327.4 MB, free: 12.82 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.5927, allocations: 62.97 kB / 327.5 MB, free: 12.75 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.603, allocations: 2.306 MB / 329.8 MB, free: 10.42 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007052/0.6038, allocations: 0.9338 MB / 330.7 MB, free: 9.461 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004067/0.6042, allocations: 35.42 kB / 330.8 MB, free: 9.426 MB / 250.7 MB Notification: Performance of SimCode: time 1.623e-06/0.6042, allocations: 0 / 330.8 MB, free: 9.426 MB / 250.7 MB Notification: Performance of Templates: time 0.03963/0.6439, allocations: 12.85 MB / 343.6 MB, free: 12.57 MB / 266.7 MB