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_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.878/1.878, allocations: 194.9 MB / 208 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.341e-05/3.392e-05, allocations: 3.984 kB / 255.4 MB, free: 2.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07944/0.0795, allocations: 44.5 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3377/0.4172, allocations: 78.97 MB / 378.9 MB, free: 22.21 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/0.4175, allocations: 71.41 kB / 378.9 MB, free: 22.21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05994/0.4775, allocations: 14.73 MB / 393.7 MB, free: 20.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.807e-06/0.4775, allocations: 0 / 393.7 MB, free: 20.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.37e-05/0.4776, allocations: 15.62 kB / 393.7 MB, free: 20.1 MB / 314.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.002708/0.4803, allocations: 1.075 MB / 394.7 MB, free: 19.54 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.4803, allocations: 11.72 kB / 394.8 MB, free: 19.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000329/0.4807, allocations: 85.94 kB / 394.8 MB, free: 19.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007031/0.4814, allocations: 409.5 kB / 395.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.625e-05/0.4815, allocations: 54.38 kB / 395.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.4817, allocations: 75.3 kB / 395.4 MB, free: 19.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.4833, allocations: 0.7086 MB / 396.1 MB, free: 19.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.069e-05/0.4834, allocations: 7.922 kB / 396.1 MB, free: 19.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001135/0.4835, allocations: 29.41 kB / 396.1 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.4836, allocations: 19.44 kB / 396.1 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.4854, allocations: 0.7063 MB / 396.8 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005904/0.4913, allocations: 2.43 MB / 399.3 MB, free: 18.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.4926, allocations: 0.6202 MB / 399.9 MB, free: 18.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001123/0.4938, allocations: 409 kB / 400.3 MB, free: 18.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.4939, allocations: 12.36 kB / 400.3 MB, free: 18.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.4952, allocations: 497.7 kB / 400.8 MB, free: 18.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 6.171e-06/0.4952, allocations: 3.938 kB / 400.8 MB, free: 18.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.008076/0.5033, allocations: 2.943 MB / 403.7 MB, free: 17.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.5034, allocations: 63.81 kB / 403.8 MB, free: 17.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004536/0.5038, allocations: 308.4 kB / 404.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001868/0.504, allocations: 57.73 kB / 404.1 MB, free: 17.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.5042, allocations: 262.9 kB / 404.4 MB, free: 17.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.5046, allocations: 372 kB / 404.8 MB, free: 16.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.621e-05/0.5047, allocations: 25.81 kB / 404.8 MB, free: 16.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.5048, allocations: 377.5 kB / 405.2 MB, free: 16.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009067/0.5057, allocations: 353 kB / 405.5 MB, free: 16.51 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009859/0.5067, allocations: 449.5 kB / 405.9 MB, free: 16.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007815/0.5075, allocations: 303.6 kB / 406.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.898e-06/0.5075, allocations: 0 / 406.2 MB, free: 16.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003379/0.5109, allocations: 1.164 MB / 407.4 MB, free: 16.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.511, allocations: 9.406 kB / 407.4 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/0.511, allocations: 3.906 kB / 407.4 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001324/0.5124, allocations: 0.5511 MB / 408 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.5135, allocations: 199.3 kB / 408.2 MB, free: 16.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004334/0.5178, allocations: 3.23 MB / 411.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.5196, allocations: 242.4 kB / 411.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00017/0.5198, allocations: 41.5 kB / 411.7 MB, free: 13.77 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): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0003131/0.5201, allocations: 167.2 kB / 411.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001883/0.5203, allocations: 70.53 kB / 411.9 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002976/0.5233, allocations: 1.199 MB / 413.1 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.5234, allocations: 11.81 kB / 413.1 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.5234, allocations: 0 / 413.1 MB, free: 13.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.5234, allocations: 7.969 kB / 413.1 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005379/0.5288, allocations: 2.345 MB / 415.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.379e-05/0.5289, allocations: 0 / 415.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001257/0.5301, allocations: 191.2 kB / 415.7 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.5315, allocations: 0.5157 MB / 416.2 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001978/0.5317, allocations: 30.94 kB / 416.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004587/0.5363, allocations: 3.048 MB / 419.2 MB, free: 25.72 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.589e-06/0.5364, allocations: 16.02 kB / 419.3 MB, free: 25.71 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004113/0.5405, allocations: 1.709 MB / 421 MB, free: 25.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005572/0.5411, allocations: 233.7 kB / 421.2 MB, free: 24.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/0.5413, allocations: 37.58 kB / 421.2 MB, free: 24.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/0.5428, allocations: 242.8 kB / 421.5 MB, free: 24.9 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001186/0.544, allocations: 444 kB / 421.9 MB, free: 24.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/0.5441, allocations: 50.11 kB / 422 MB, free: 24.66 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003683/0.5445, allocations: 249.2 kB / 422.2 MB, free: 24.55 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.66e-07/0.5445, allocations: 0 / 422.2 MB, free: 24.55 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001129/0.5457, allocations: 246.8 kB / 422.4 MB, free: 24.55 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (90): * Single equations (assignments): 87 * 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.0003905/0.5461, allocations: 178.2 kB / 422.6 MB, free: 24.43 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002522/0.5486, allocations: 1.067 MB / 423.7 MB, free: 24.19 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.065e-06/0.5487, allocations: 0 / 423.7 MB, free: 24.19 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001885/0.5506, allocations: 0.7029 MB / 424.4 MB, free: 24.04 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009859/0.5516, allocations: 112.8 kB / 424.5 MB, free: 24 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005157/0.5568, allocations: 1.78 MB / 426.3 MB, free: 23.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006618/0.5575, allocations: 0.9474 MB / 427.2 MB, free: 22.21 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005503/0.558, allocations: 72.53 kB / 427.3 MB, free: 22.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002545/0.5583, allocations: 54.05 kB / 427.3 MB, free: 22.17 MB / 330.7 MB Notification: Performance of SimCode: time 2.362e-06/0.5583, allocations: 0 / 427.3 MB, free: 22.17 MB / 330.7 MB Notification: Performance of Templates: time 0.03123/0.5896, allocations: 14.89 MB / 442.2 MB, free: 12.08 MB / 330.7 MB