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.1_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.987e-05/2.958e-05, allocations: 0 / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08457, allocations: 38.77 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005645/0.09027, allocations: 3.382 MB / 270.3 MB, free: 13.72 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004358/0.0947, allocations: 1.193 MB / 271.5 MB, free: 12.52 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007884/0.09556, allocations: 15.94 kB / 271.5 MB, free: 12.51 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003844/0.09596, allocations: 79.38 kB / 271.6 MB, free: 12.43 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.09706, allocations: 231.2 kB / 271.8 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.09888, allocations: 307.3 kB / 272.1 MB, free: 11.9 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001792/0.1007, allocations: 0.5323 MB / 272.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004804/0.1012, allocations: 133.3 kB / 272.7 MB, free: 11.23 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.1023, allocations: 367.1 kB / 273.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001091/0.1034, allocations: 418.7 kB / 273.5 MB, free: 10.46 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006916/0.1041, allocations: 131.9 kB / 273.6 MB, free: 10.34 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003002/0.1045, allocations: 44 kB / 273.7 MB, free: 10.29 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003351/0.1048, allocations: 167.4 kB / 273.8 MB, free: 10.13 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.1052, allocations: 72 kB / 273.9 MB, free: 10.06 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001713/0.1069, allocations: 0.7404 MB / 274.7 MB, free: 9.316 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.107, allocations: 0 / 274.7 MB, free: 9.316 MB / 234.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.107, allocations: 0 / 274.7 MB, free: 9.316 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.982e-05/0.107, allocations: 0 / 274.7 MB, free: 9.316 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.006942/0.114, allocations: 1.175 MB / 275.8 MB, free: 8.09 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.015e-05/0.1141, allocations: 12.03 kB / 275.8 MB, free: 8.078 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006109/0.1147, allocations: 90.95 kB / 275.9 MB, free: 7.988 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001397/0.1161, allocations: 424.5 kB / 276.3 MB, free: 7.531 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.1163, allocations: 58 kB / 276.4 MB, free: 7.477 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003141/0.1166, allocations: 71.91 kB / 276.5 MB, free: 7.406 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003976/0.1206, allocations: 0.7959 MB / 277.3 MB, free: 6.605 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.546e-05/0.1207, allocations: 4 kB / 277.3 MB, free: 6.602 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002962/0.1211, allocations: 28 kB / 277.3 MB, free: 6.574 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.086e-05/0.1211, allocations: 16 kB / 277.3 MB, free: 6.559 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004945/0.1261, allocations: 0.8744 MB / 278.2 MB, free: 5.68 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01067/0.1368, allocations: 2.431 MB / 280.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003517/0.1404, allocations: 0.7262 MB / 281.3 MB, free: 2.391 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002346/0.1407, allocations: 12.98 kB / 281.4 MB, free: 2.379 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002821/0.1435, allocations: 0.5478 MB / 281.9 MB, free: 1.82 MB / 234.7 MB Notification: Performance of pre-optimization done (n=86): time 6.973e-06/0.1436, allocations: 3.938 kB / 281.9 MB, free: 1.816 MB / 234.7 MB Notification: Performance of matching and sorting (n=106): time 0.02712/0.1707, allocations: 4.594 MB / 286.5 MB, free: 13.09 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.712e-05/0.1708, allocations: 60.41 kB / 286.6 MB, free: 13.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008515/0.1717, allocations: 349 kB / 286.9 MB, free: 12.68 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002507/0.172, allocations: 61.69 kB / 287 MB, free: 12.61 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003351/0.1723, allocations: 315.4 kB / 287.3 MB, free: 12.3 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005968/0.1729, allocations: 359 kB / 287.6 MB, free: 11.94 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.1731, allocations: 20 kB / 287.6 MB, free: 11.92 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.1733, allocations: 350.8 kB / 288 MB, free: 11.57 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.1758, allocations: 442.4 kB / 288.4 MB, free: 11.14 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002482/0.1783, allocations: 0.5306 MB / 289 MB, free: 10.59 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001913/0.1802, allocations: 382.4 kB / 289.3 MB, free: 10.21 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.1803, allocations: 4 kB / 289.3 MB, free: 10.21 MB / 250.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005854/0.1861, allocations: 1.483 MB / 290.8 MB, free: 8.711 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.1862, allocations: 4 kB / 290.8 MB, free: 8.707 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.1863, allocations: 4 kB / 290.8 MB, free: 8.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.188, allocations: 0.5334 MB / 291.4 MB, free: 8.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.1897, allocations: 215.7 kB / 291.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006685/0.1964, allocations: 3.28 MB / 294.8 MB, free: 4.484 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002482/0.199, allocations: 239.8 kB / 295.1 MB, free: 4.25 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002155/0.1992, allocations: 32.16 kB / 295.1 MB, free: 4.219 MB / 250.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.0006553/0.1999, allocations: 229.5 kB / 295.3 MB, free: 3.988 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002447/0.2002, allocations: 67.25 kB / 295.4 MB, free: 3.922 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003252/0.2005, allocations: 103.1 kB / 295.5 MB, free: 3.816 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/0.2005, allocations: 15.98 kB / 295.5 MB, free: 3.801 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.2006, allocations: 128 / 295.5 MB, free: 3.801 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.2006, allocations: 7.984 kB / 295.5 MB, free: 3.793 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008705/0.2093, allocations: 2.675 MB / 298.2 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/0.2094, allocations: 0 / 298.2 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001651/0.211, allocations: 187.7 kB / 298.4 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001642/0.2127, allocations: 0.5022 MB / 298.9 MB, free: 320 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002109/0.213, allocations: 35.95 kB / 298.9 MB, free: 284 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.215/0.428, allocations: 3.118 MB / 302 MB, free: 28.27 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.974e-06/0.4281, allocations: 5.938 kB / 302 MB, free: 28.27 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007363/0.4354, allocations: 2.092 MB / 304.1 MB, free: 27.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000666/0.4362, allocations: 227 kB / 304.4 MB, free: 27.69 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.4364, allocations: 32.34 kB / 304.4 MB, free: 27.67 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002565/0.439, allocations: 274.2 kB / 304.7 MB, free: 27.65 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001801/0.4408, allocations: 429.4 kB / 305.1 MB, free: 27.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/0.441, allocations: 40.23 kB / 305.1 MB, free: 27.59 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004702/0.4415, allocations: 270.3 kB / 305.4 MB, free: 27.45 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.4415, allocations: 0 / 305.4 MB, free: 27.45 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001196/0.4427, allocations: 243.8 kB / 305.6 MB, free: 27.41 MB / 250.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.0003864/0.4432, allocations: 157.8 kB / 305.8 MB, free: 27.3 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004378/0.4475, allocations: 1.196 MB / 307 MB, free: 26.84 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/0.4476, allocations: 3.938 kB / 307 MB, free: 26.84 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002683/0.4503, allocations: 0.7418 MB / 307.7 MB, free: 26.52 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.4515, allocations: 100 kB / 307.8 MB, free: 26.48 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006833/0.4584, allocations: 2.388 MB / 310.2 MB, free: 25.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006767/0.4591, allocations: 0.9517 MB / 311.1 MB, free: 24.36 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004778/0.4596, allocations: 64.48 kB / 311.2 MB, free: 24.35 MB / 250.7 MB Notification: Performance of SimCode: time 1.593e-06/0.4597, allocations: 7.281 kB / 311.2 MB, free: 24.35 MB / 250.7 MB Notification: Performance of Templates: time 0.02852/0.4882, allocations: 16.3 MB / 327.5 MB, free: 12.23 MB / 250.7 MB