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.804/1.804, allocations: 194.9 MB / 210.6 MB, free: 8.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.678e-05/2.695e-05, allocations: 4 kB / 258.8 MB, free: 7.855 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2906, allocations: 44.5 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005232/0.2959, allocations: 3.375 MB / 306.7 MB, free: 10.16 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.2992, allocations: 1.182 MB / 307.9 MB, free: 8.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004635/0.2997, allocations: 19.94 kB / 307.9 MB, free: 8.961 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.2999, allocations: 75.45 kB / 308 MB, free: 8.887 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006392/0.3006, allocations: 227.2 kB / 308.2 MB, free: 8.664 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.3017, allocations: 323.3 kB / 308.5 MB, free: 8.348 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3028, allocations: 0.5362 MB / 309 MB, free: 7.805 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003291/0.3031, allocations: 133.3 kB / 309.2 MB, free: 7.672 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008168/0.3039, allocations: 367.1 kB / 309.5 MB, free: 7.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007522/0.3047, allocations: 430.8 kB / 310 MB, free: 6.891 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003563/0.3051, allocations: 83.95 kB / 310 MB, free: 6.809 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002085/0.3053, allocations: 44 kB / 310.1 MB, free: 6.766 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002497/0.3056, allocations: 163.4 kB / 310.2 MB, free: 6.605 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003139/0.3059, allocations: 75.94 kB / 310.3 MB, free: 6.531 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001193/0.3071, allocations: 0.7347 MB / 311 MB, free: 5.797 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3071, allocations: 0 / 311 MB, free: 5.797 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3071, allocations: 4 kB / 311 MB, free: 5.793 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.561e-05/0.3072, allocations: 0 / 311 MB, free: 5.793 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.004863/0.312, allocations: 1.171 MB / 312.2 MB, free: 4.57 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3121, allocations: 11.97 kB / 312.2 MB, free: 4.559 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003428/0.3125, allocations: 87.02 kB / 312.3 MB, free: 4.473 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008689/0.3133, allocations: 424.7 kB / 312.7 MB, free: 4.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.565e-05/0.3134, allocations: 57.94 kB / 312.8 MB, free: 3.965 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000205/0.3137, allocations: 71.91 kB / 312.9 MB, free: 3.895 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002668/0.3163, allocations: 0.8076 MB / 313.7 MB, free: 3.082 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.3164, allocations: 11.91 kB / 313.7 MB, free: 3.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.3165, allocations: 24 kB / 313.7 MB, free: 3.047 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.3166, allocations: 19.95 kB / 313.7 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003448/0.32, allocations: 0.8978 MB / 314.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007247/0.3273, allocations: 2.455 MB / 317.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.3298, allocations: 0.7269 MB / 317.8 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001422/0.33, allocations: 13 kB / 317.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001945/0.3319, allocations: 0.5556 MB / 318.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=86): time 3.797e-06/0.332, allocations: 0 / 318.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.02451/0.3565, allocations: 4.481 MB / 322.8 MB, free: 9.617 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.3566, allocations: 60.41 kB / 322.9 MB, free: 9.547 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008211/0.3574, allocations: 345 kB / 323.2 MB, free: 9.203 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002444/0.3577, allocations: 53.7 kB / 323.3 MB, free: 9.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003312/0.358, allocations: 276.9 kB / 323.6 MB, free: 8.867 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005727/0.3586, allocations: 359 kB / 323.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.3588, allocations: 20 kB / 323.9 MB, free: 8.492 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002284/0.359, allocations: 374.8 kB / 324.3 MB, free: 8.117 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/0.3616, allocations: 450.3 kB / 324.7 MB, free: 7.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00267/0.3643, allocations: 0.5384 MB / 325.3 MB, free: 7.121 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002255/0.3666, allocations: 398.3 kB / 325.7 MB, free: 6.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3666, allocations: 0 / 325.7 MB, free: 6.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.007651/0.3743, allocations: 1.373 MB / 327 MB, free: 5.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/0.3744, allocations: 4 kB / 327 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.3744, allocations: 0 / 327 MB, free: 5.336 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002783/0.3772, allocations: 0.6505 MB / 327.7 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002314/0.3795, allocations: 211.7 kB / 327.9 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009111/0.3887, allocations: 3.315 MB / 331.2 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003176/0.3919, allocations: 235.9 kB / 331.4 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002263/0.3922, allocations: 43.94 kB / 331.5 MB, free: 0.6914 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.0007553/0.393, allocations: 221.6 kB / 331.7 MB, free: 480 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003348/0.3933, allocations: 63.25 kB / 331.8 MB, free: 416 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004168/0.3938, allocations: 103 kB / 331.9 MB, free: 312 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/0.3938, allocations: 12 kB / 331.9 MB, free: 300 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.3938, allocations: 7.984 kB / 331.9 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.852e-05/0.3939, allocations: 3.984 kB / 331.9 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009917/0.4038, allocations: 2.558 MB / 334.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.4038, allocations: 0 / 334.5 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/0.4054, allocations: 187.9 kB / 334.6 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001754/0.4072, allocations: 0.6193 MB / 335.3 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.4073, allocations: 39.95 kB / 335.3 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005382/0.4127, allocations: 3.143 MB / 338.4 MB, free: 9.434 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.4127, allocations: 7.969 kB / 338.4 MB, free: 9.426 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00655/0.4193, allocations: 1.958 MB / 340.4 MB, free: 7.379 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005132/0.4198, allocations: 236.1 kB / 340.6 MB, free: 7.129 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002395/0.4201, allocations: 31.98 kB / 340.7 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002459/0.4226, allocations: 275.7 kB / 340.9 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001602/0.4242, allocations: 428.1 kB / 341.4 MB, free: 6.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/0.4243, allocations: 40.33 kB / 341.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004142/0.4247, allocations: 271.1 kB / 341.7 MB, free: 6.102 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4248, allocations: 4 kB / 341.7 MB, free: 6.098 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001037/0.4258, allocations: 248 kB / 341.9 MB, free: 5.855 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.0003756/0.4262, allocations: 163.7 kB / 342.1 MB, free: 5.691 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004016/0.4302, allocations: 1.208 MB / 343.3 MB, free: 4.477 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4303, allocations: 3.938 kB / 343.3 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002652/0.4329, allocations: 0.7937 MB / 344.1 MB, free: 3.668 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009756/0.4339, allocations: 102.9 kB / 344.2 MB, free: 3.57 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006586/0.4405, allocations: 2.347 MB / 346.5 MB, free: 1.172 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006891/0.4412, allocations: 0.9478 MB / 347.5 MB, free: 204 kB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0006193/0.4419, allocations: 81.38 kB / 347.5 MB, free: 120 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003201/0.4422, allocations: 63.41 kB / 347.6 MB, free: 56 kB / 282.7 MB Notification: Performance of SimCode: time 1.162e-06/0.4422, allocations: 0 / 347.6 MB, free: 56 kB / 282.7 MB Notification: Performance of Templates: time 0.0446/0.4868, allocations: 15.39 MB / 363 MB, free: 0.6758 MB / 298.7 MB