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.2_cpp_Modelica.Mechanics.Translational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 2.023/2.023, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.597e-05/3.553e-05, allocations: 4 kB / 258.8 MB, free: 8.695 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4187/0.4188, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Friction): time 0.005551/0.4244, allocations: 2.341 MB / 305.6 MB, free: 10.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003904/0.4283, allocations: 1.041 MB / 306.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005458/0.429, allocations: 9.5 kB / 306.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004653/0.4294, allocations: 59.66 kB / 306.7 MB, free: 9.988 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006879/0.4302, allocations: 127.8 kB / 306.9 MB, free: 9.871 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001833/0.432, allocations: 314.7 kB / 307.2 MB, free: 9.625 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001404/0.4334, allocations: 368.2 kB / 307.5 MB, free: 9.336 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002366/0.4337, allocations: 48.64 kB / 307.6 MB, free: 9.309 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000929/0.4347, allocations: 294 kB / 307.9 MB, free: 9.109 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003329/0.438, allocations: 1.404 MB / 309.3 MB, free: 7.703 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005281/0.4386, allocations: 63.97 kB / 309.3 MB, free: 7.641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002535/0.4389, allocations: 36 kB / 309.4 MB, free: 7.605 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004339/0.4394, allocations: 195.4 kB / 309.6 MB, free: 7.414 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00031/0.4397, allocations: 44 kB / 309.6 MB, free: 7.371 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.4412, allocations: 0.598 MB / 310.2 MB, free: 6.773 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4412, allocations: 0 / 310.2 MB, free: 6.773 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.328e-06/0.4413, allocations: 0 / 310.2 MB, free: 6.773 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.221e-05/0.4413, allocations: 4 kB / 310.2 MB, free: 6.77 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.008348/0.4497, allocations: 1.232 MB / 311.4 MB, free: 5.488 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.003e-05/0.4498, allocations: 8.031 kB / 311.4 MB, free: 5.48 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004451/0.4502, allocations: 79.02 kB / 311.5 MB, free: 5.402 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.4514, allocations: 398.8 kB / 311.9 MB, free: 4.969 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.133e-05/0.4516, allocations: 29 kB / 311.9 MB, free: 4.938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000218/0.4518, allocations: 43.84 kB / 312 MB, free: 4.895 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004584/0.4564, allocations: 1.157 MB / 313.1 MB, free: 3.73 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.135e-05/0.4565, allocations: 8 kB / 313.1 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000168/0.4567, allocations: 12 kB / 313.2 MB, free: 3.711 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.4567, allocations: 8 kB / 313.2 MB, free: 3.703 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007314/0.464, allocations: 1.779 MB / 314.9 MB, free: 1.926 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0113/0.4754, allocations: 2.557 MB / 317.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004423/0.4799, allocations: 0.942 MB / 318.4 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000193/0.4801, allocations: 7.984 kB / 318.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003817/0.484, allocations: 0.9123 MB / 319.4 MB, free: 13.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=47): time 5.43e-06/0.484, allocations: 0 / 319.4 MB, free: 13.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.03023/0.5143, allocations: 6.035 MB / 325.4 MB, free: 7.191 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.989e-05/0.5144, allocations: 85.11 kB / 325.5 MB, free: 7.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002579/0.517, allocations: 0.8352 MB / 326.3 MB, free: 6.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003229/0.5174, allocations: 49.69 kB / 326.4 MB, free: 6.195 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004014/0.5178, allocations: 318.8 kB / 326.7 MB, free: 5.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003689/0.5182, allocations: 162 kB / 326.8 MB, free: 5.723 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.5183, allocations: 12 kB / 326.8 MB, free: 5.711 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.5186, allocations: 338.8 kB / 327.2 MB, free: 5.371 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003319/0.5219, allocations: 0.8564 MB / 328 MB, free: 4.512 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003551/0.5255, allocations: 0.9558 MB / 329 MB, free: 3.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/0.5286, allocations: 0.7706 MB / 329.8 MB, free: 2.758 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.016e-06/0.5287, allocations: 0 / 329.8 MB, free: 2.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.009433/0.5381, allocations: 2.46 MB / 332.2 MB, free: 288 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.793e-05/0.5382, allocations: 8.031 kB / 332.2 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.036e-05/0.5382, allocations: 11.89 kB / 332.2 MB, free: 268 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004908/0.5432, allocations: 1.892 MB / 334.1 MB, free: 14.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001519/0.5448, allocations: 123.8 kB / 334.3 MB, free: 14.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01785/0.5627, allocations: 6.457 MB / 340.7 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004246/0.567, allocations: 311.6 kB / 341 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002574/0.5673, allocations: 20 kB / 341 MB, free: 7.16 MB / 282.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.0008361/0.5681, allocations: 252 kB / 341.3 MB, free: 6.906 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003088/0.5685, allocations: 79.09 kB / 341.4 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003992/0.5689, allocations: 98.17 kB / 341.5 MB, free: 6.719 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.5689, allocations: 4 kB / 341.5 MB, free: 6.715 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.5689, allocations: 4 kB / 341.5 MB, free: 6.711 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.569, allocations: 4 kB / 341.5 MB, free: 6.707 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.5793, allocations: 3.139 MB / 344.6 MB, free: 3.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.969e-05/0.5794, allocations: 4.125 kB / 344.6 MB, free: 3.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/0.5809, allocations: 96 kB / 344.7 MB, free: 3.402 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004944/0.5858, allocations: 1.869 MB / 346.6 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002293/0.5861, allocations: 23.97 kB / 346.6 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01591/0.602, allocations: 6.184 MB / 352.8 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.6021, allocations: 4.062 kB / 352.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/0.6148, allocations: 3.303 MB / 356.1 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000798/0.6157, allocations: 212.2 kB / 356.3 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.616, allocations: 20 kB / 356.3 MB, free: 7.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004526/0.6206, allocations: 347.6 kB / 356.7 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003729/0.6243, allocations: 0.6432 MB / 357.3 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002183/0.6246, allocations: 27.95 kB / 357.3 MB, free: 6.402 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001526/0.6262, allocations: 0.6748 MB / 358 MB, free: 5.734 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6262, allocations: 0 / 358 MB, free: 5.734 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001224/0.6274, allocations: 192 kB / 358.2 MB, free: 5.547 MB / 298.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.0004062/0.6278, allocations: 144 kB / 358.3 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005182/0.633, allocations: 1.956 MB / 360.3 MB, free: 3.414 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.6331, allocations: 0 / 360.3 MB, free: 3.414 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002786/0.6359, allocations: 1.06 MB / 361.3 MB, free: 2.328 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007256/0.6367, allocations: 66.84 kB / 361.4 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007435/0.6441, allocations: 2.31 MB / 363.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006902/0.6449, allocations: 0.9338 MB / 364.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002896/0.6452, allocations: 35.41 kB / 364.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6452, allocations: 0 / 364.7 MB, free: 14.91 MB / 314.7 MB Notification: Performance of Templates: time 0.02871/0.6739, allocations: 13.04 MB / 377.7 MB, free: 1.859 MB / 314.7 MB