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_trunk_cpp_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.177/2.177, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.123e-05/3.113e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 50.42 MB / 345 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.00578/0.116, allocations: 3.405 MB / 348.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003374/0.1195, allocations: 1.232 MB / 349.6 MB, free: 4.297 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005493/0.1201, allocations: 15.94 kB / 349.6 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002676/0.1204, allocations: 79.38 kB / 349.7 MB, free: 4.203 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007068/0.1211, allocations: 231.3 kB / 349.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.1224, allocations: 311.3 kB / 350.2 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001366/0.1238, allocations: 0.5285 MB / 350.8 MB, free: 3.137 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.1242, allocations: 145.3 kB / 350.9 MB, free: 2.996 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000775/0.125, allocations: 371.1 kB / 351.3 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007969/0.1258, allocations: 430.7 kB / 351.7 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.1262, allocations: 79.97 kB / 351.8 MB, free: 2.133 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000193/0.1264, allocations: 40 kB / 351.8 MB, free: 2.094 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002504/0.1266, allocations: 171.4 kB / 352 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.1269, allocations: 71.94 kB / 352 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00126/0.1282, allocations: 0.7326 MB / 352.8 MB, free: 1.121 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1282, allocations: 0 / 352.8 MB, free: 1.121 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1282, allocations: 0 / 352.8 MB, free: 1.121 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.519e-05/0.1283, allocations: 4 kB / 352.8 MB, free: 1.117 MB / 282.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.005073/0.1333, allocations: 1.177 MB / 354 MB, free: 15.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.1334, allocations: 8.031 kB / 354 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000426/0.1338, allocations: 90.97 kB / 354.1 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009285/0.1348, allocations: 420.7 kB / 354.5 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-05/0.1349, allocations: 54 kB / 354.5 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.1351, allocations: 67.91 kB / 354.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002873/0.138, allocations: 0.8154 MB / 355.4 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.581e-05/0.1381, allocations: 7.938 kB / 355.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.1382, allocations: 35.94 kB / 355.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.1383, allocations: 16 kB / 355.5 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003685/0.142, allocations: 0.8939 MB / 356.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007768/0.1498, allocations: 2.447 MB / 358.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.1525, allocations: 0.7338 MB / 359.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001728/0.1528, allocations: 20.98 kB / 359.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002063/0.1548, allocations: 0.5633 MB / 360.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of pre-optimization done (n=86): time 4.879e-06/0.1549, allocations: 0 / 360.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=106): time 0.02057/0.1755, allocations: 4.454 MB / 364.6 MB, free: 4.961 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.1756, allocations: 64.41 kB / 364.6 MB, free: 4.887 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006187/0.1762, allocations: 345 kB / 365 MB, free: 4.547 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.1765, allocations: 53.7 kB / 365 MB, free: 4.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002593/0.1768, allocations: 319.4 kB / 365.3 MB, free: 4.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005018/0.1773, allocations: 362.9 kB / 365.7 MB, free: 3.812 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.948e-05/0.1774, allocations: 20 kB / 365.7 MB, free: 3.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1776, allocations: 354.8 kB / 366.1 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001834/0.1794, allocations: 450.3 kB / 366.5 MB, free: 2.996 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002026/0.1815, allocations: 0.5345 MB / 367 MB, free: 2.441 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.1833, allocations: 398.3 kB / 367.4 MB, free: 2.059 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.1833, allocations: 0 / 367.4 MB, free: 2.059 MB / 298.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005679/0.189, allocations: 1.346 MB / 368.8 MB, free: 0.6953 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.635e-05/0.1891, allocations: 8 kB / 368.8 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.1891, allocations: 0 / 368.8 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001963/0.1911, allocations: 0.6543 MB / 369.4 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.1928, allocations: 203.7 kB / 369.6 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/0.1992, allocations: 3.317 MB / 372.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/0.2017, allocations: 239.9 kB / 373.2 MB, free: 12.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/0.2019, allocations: 36.14 kB / 373.2 MB, free: 12.05 MB / 314.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.0005508/0.2025, allocations: 221.6 kB / 373.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.2027, allocations: 71.34 kB / 373.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002985/0.203, allocations: 107 kB / 373.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.203, allocations: 12 kB / 373.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.2031, allocations: 0 / 373.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.55e-05/0.2031, allocations: 11.94 kB / 373.6 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00815/0.2112, allocations: 2.55 MB / 376.2 MB, free: 8.969 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.757e-05/0.2113, allocations: 4 kB / 376.2 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001678/0.213, allocations: 187.9 kB / 376.4 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.215, allocations: 0.6231 MB / 377 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002292/0.2152, allocations: 35.92 kB / 377 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005799/0.221, allocations: 3.143 MB / 380.2 MB, free: 4.781 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.2211, allocations: 0 / 380.2 MB, free: 4.781 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00714/0.2283, allocations: 1.977 MB / 382.1 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006955/0.229, allocations: 228.2 kB / 382.4 MB, free: 2.473 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002531/0.2293, allocations: 28 kB / 382.4 MB, free: 2.445 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002698/0.232, allocations: 275.7 kB / 382.7 MB, free: 2.176 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001765/0.2338, allocations: 432.1 kB / 383.1 MB, free: 1.754 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001985/0.234, allocations: 39.97 kB / 383.1 MB, free: 1.715 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004865/0.2345, allocations: 267.1 kB / 383.4 MB, free: 1.453 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.2346, allocations: 0 / 383.4 MB, free: 1.453 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001249/0.2358, allocations: 248 kB / 383.6 MB, free: 1.211 MB / 314.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.0004474/0.2363, allocations: 172.8 kB / 383.8 MB, free: 1.031 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004831/0.2411, allocations: 1.216 MB / 385 MB, free: 15.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.2412, allocations: 3.938 kB / 385 MB, free: 15.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00273/0.2439, allocations: 0.7351 MB / 385.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.2451, allocations: 105.4 kB / 385.9 MB, free: 14.95 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006991/0.2522, allocations: 2.402 MB / 388.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/0.2529, allocations: 0.9478 MB / 389.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004658/0.2534, allocations: 63.41 kB / 389.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.2534, allocations: 0 / 389.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of Templates: time 0.3098/0.5632, allocations: 16.64 MB / 405.9 MB, free: 50.65 MB / 330.7 MB