Running command: translateModel(Modelica.Mechanics.Translational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|damper.s_rel|damper.v_rel|massWithStopAndFriction.s|massWithStopAndFriction.v|springDamper.s_rel|springDamper.v_rel|springDamper1.s_rel|springDamper1.v_rel|brake.mode|brake.startBackward|brake.startForward|massWithStopAndFriction.mode|massWithStopAndFriction.startBackward|massWithStopAndFriction.startForward|supportFriction.mode|supportFriction.startBackward|supportFriction.startForward",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.351/2.351, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.836e-05/3.835e-05, allocations: 3.906 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3903, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.007472/0.3979, allocations: 3.379 MB / 306.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004402/0.4023, allocations: 1.189 MB / 307.9 MB, free: 9.109 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005109/0.4029, allocations: 20.97 kB / 307.9 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.4032, allocations: 75.38 kB / 307.9 MB, free: 9.027 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008746/0.4041, allocations: 227.3 kB / 308.2 MB, free: 8.805 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00151/0.4057, allocations: 323.3 kB / 308.5 MB, free: 8.488 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.4071, allocations: 0.5362 MB / 309 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004023/0.4075, allocations: 125.3 kB / 309.1 MB, free: 7.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008663/0.4084, allocations: 375.1 kB / 309.5 MB, free: 7.453 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009942/0.4094, allocations: 426.8 kB / 309.9 MB, free: 7.035 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004692/0.4099, allocations: 87.95 kB / 310 MB, free: 6.949 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.4101, allocations: 47.94 kB / 310.1 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003413/0.4105, allocations: 163.4 kB / 310.2 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003169/0.4108, allocations: 68 kB / 310.3 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.4124, allocations: 0.7419 MB / 311 MB, free: 5.934 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.4124, allocations: 0 / 311 MB, free: 5.934 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.4125, allocations: 0 / 311 MB, free: 5.934 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.772e-05/0.4125, allocations: 0 / 311 MB, free: 5.934 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.006518/0.419, allocations: 1.175 MB / 312.2 MB, free: 4.707 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.4191, allocations: 8.031 kB / 312.2 MB, free: 4.699 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004641/0.4196, allocations: 94.89 kB / 312.3 MB, free: 4.605 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.4208, allocations: 424.7 kB / 312.7 MB, free: 4.152 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.4209, allocations: 54 kB / 312.8 MB, free: 4.102 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002885/0.4212, allocations: 67.91 kB / 312.8 MB, free: 4.035 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00378/0.425, allocations: 0.8076 MB / 313.6 MB, free: 3.223 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.23e-05/0.4251, allocations: 7.906 kB / 313.7 MB, free: 3.215 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/0.4253, allocations: 32 kB / 313.7 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/0.4254, allocations: 19.95 kB / 313.7 MB, free: 3.164 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004902/0.4303, allocations: 0.8939 MB / 314.6 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0099/0.4402, allocations: 2.451 MB / 317 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003549/0.4438, allocations: 0.7309 MB / 317.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.444, allocations: 9 kB / 317.8 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002819/0.4468, allocations: 0.5595 MB / 318.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 4.649e-06/0.4468, allocations: 0 / 318.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.02157/0.4684, allocations: 4.469 MB / 322.8 MB, free: 9.773 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.4685, allocations: 68.39 kB / 322.9 MB, free: 9.695 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006324/0.4692, allocations: 341.1 kB / 323.2 MB, free: 9.355 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001903/0.4694, allocations: 53.69 kB / 323.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.4697, allocations: 319.4 kB / 323.6 MB, free: 8.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004519/0.4701, allocations: 359 kB / 323.9 MB, free: 8.625 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.784e-05/0.4703, allocations: 20 kB / 323.9 MB, free: 8.605 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002248/0.4705, allocations: 358.8 kB / 324.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/0.4723, allocations: 446.4 kB / 324.7 MB, free: 7.812 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001883/0.4742, allocations: 0.5383 MB / 325.3 MB, free: 7.254 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001636/0.4759, allocations: 402.3 kB / 325.7 MB, free: 6.859 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.4759, allocations: 0 / 325.7 MB, free: 6.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005477/0.4814, allocations: 1.338 MB / 327 MB, free: 5.504 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.4814, allocations: 4 kB / 327 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.4815, allocations: 7.984 kB / 327 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002019/0.4835, allocations: 0.6581 MB / 327.7 MB, free: 4.824 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001678/0.4852, allocations: 211.8 kB / 327.9 MB, free: 4.617 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00673/0.492, allocations: 3.304 MB / 331.2 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/0.4944, allocations: 239.9 kB / 331.4 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001477/0.4946, allocations: 40 kB / 331.5 MB, free: 0.8516 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * 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 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005516/0.4952, allocations: 225.6 kB / 331.7 MB, free: 0.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.4954, allocations: 67.44 kB / 331.7 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.4957, allocations: 99.02 kB / 331.8 MB, free: 472 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.459e-05/0.4957, allocations: 19.97 kB / 331.9 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.4957, allocations: 0 / 331.9 MB, free: 452 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.4958, allocations: 3.984 kB / 331.9 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008052/0.5038, allocations: 2.554 MB / 334.4 MB, free: 13.78 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.5039, allocations: 4 kB / 334.4 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.5056, allocations: 187.7 kB / 334.6 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001898/0.5075, allocations: 0.6231 MB / 335.2 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000191/0.5077, allocations: 35.95 kB / 335.3 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005962/0.5137, allocations: 3.143 MB / 338.4 MB, free: 9.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/0.5137, allocations: 7.969 kB / 338.4 MB, free: 9.582 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007183/0.5209, allocations: 1.962 MB / 340.4 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006807/0.5217, allocations: 232.1 kB / 340.6 MB, free: 7.285 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003439/0.522, allocations: 35.98 kB / 340.6 MB, free: 7.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003373/0.5254, allocations: 271.7 kB / 340.9 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002333/0.5278, allocations: 428.1 kB / 341.3 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002067/0.528, allocations: 43.95 kB / 341.4 MB, free: 6.523 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000652/0.5287, allocations: 263.2 kB / 341.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.5287, allocations: 0 / 341.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001764/0.5305, allocations: 252 kB / 341.9 MB, free: 6.016 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 86 * 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 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005521/0.531, allocations: 168.8 kB / 342 MB, free: 5.844 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00625/0.5373, allocations: 1.208 MB / 343.2 MB, free: 4.629 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.5374, allocations: 320 / 343.2 MB, free: 4.629 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003967/0.5414, allocations: 0.7465 MB / 344 MB, free: 3.871 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001554/0.543, allocations: 107.8 kB / 344.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00939/0.5524, allocations: 2.387 MB / 346.5 MB, free: 1.324 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009559/0.5534, allocations: 0.9556 MB / 347.4 MB, free: 352 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006603/0.5541, allocations: 59.42 kB / 347.5 MB, free: 292 kB / 282.7 MB Notification: Performance of SimCode: time 1.233e-06/0.5541, allocations: 3.938 kB / 347.5 MB, free: 288 kB / 282.7 MB Notification: Performance of Templates: time 0.04529/0.5994, allocations: 16.64 MB / 364.1 MB, free: 15.61 MB / 314.7 MB