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 1.938/1.938, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.188e-05/2.203e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2976, allocations: 44.5 MB / 294.1 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1223/0.4199, allocations: 78.3 MB / 372.4 MB, free: 3.672 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.4202, allocations: 75.89 kB / 372.5 MB, free: 3.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06313/0.4833, allocations: 14.61 MB / 387.1 MB, free: 4.914 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4834, allocations: 0 / 387.1 MB, free: 4.914 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.707e-05/0.4834, allocations: 16 kB / 387.1 MB, free: 4.898 MB / 330.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.003112/0.4865, allocations: 1.065 MB / 388.2 MB, free: 3.785 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4866, allocations: 8.031 kB / 388.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000375/0.487, allocations: 90.95 kB / 388.3 MB, free: 3.688 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008812/0.4879, allocations: 415.1 kB / 388.7 MB, free: 3.238 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.149e-05/0.488, allocations: 24 kB / 388.7 MB, free: 3.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/0.4881, allocations: 43.91 kB / 388.7 MB, free: 3.172 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001892/0.4901, allocations: 0.6797 MB / 389.4 MB, free: 2.492 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001647/0.4917, allocations: 0.6319 MB / 390.1 MB, free: 1.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.292e-05/0.4918, allocations: 4 kB / 390.1 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.4919, allocations: 0 / 390.1 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.09e-05/0.4919, allocations: 16 kB / 390.1 MB, free: 1.836 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006437/0.4984, allocations: 2.33 MB / 392.4 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.4998, allocations: 0.584 MB / 393 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008966/0.5007, allocations: 387.8 kB / 393.4 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.5008, allocations: 16.77 kB / 393.4 MB, free: 14.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001131/0.502, allocations: 480.4 kB / 393.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=89): time 4.973e-06/0.502, allocations: 0 / 393.9 MB, free: 13.92 MB / 346.7 MB Notification: Performance of matching and sorting (n=109): time 0.008178/0.5102, allocations: 2.608 MB / 396.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.5103, allocations: 76.64 kB / 396.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.5108, allocations: 277.3 kB / 396.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000171/0.511, allocations: 45.69 kB / 396.9 MB, free: 10.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002668/0.5112, allocations: 307.5 kB / 397.2 MB, free: 10.51 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004461/0.5117, allocations: 358.8 kB / 397.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.078e-05/0.5118, allocations: 3.984 kB / 397.5 MB, free: 10.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.512, allocations: 350.8 kB / 397.9 MB, free: 9.801 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008763/0.5129, allocations: 330.6 kB / 398.2 MB, free: 9.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009751/0.5139, allocations: 432.9 kB / 398.6 MB, free: 9.043 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009533/0.5149, allocations: 290.3 kB / 398.9 MB, free: 8.762 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.952e-06/0.5149, allocations: 0 / 398.9 MB, free: 8.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003416/0.5183, allocations: 1.081 MB / 400 MB, free: 7.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.5184, allocations: 4 kB / 400 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.917e-05/0.5184, allocations: 4 kB / 400 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001451/0.5199, allocations: 0.545 MB / 400.5 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.521, allocations: 207.7 kB / 400.7 MB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005647/0.5267, allocations: 3.236 MB / 404 MB, free: 3.492 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/0.5283, allocations: 215.9 kB / 404.2 MB, free: 3.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001643/0.5285, allocations: 39.98 kB / 404.2 MB, free: 3.242 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real 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.0004085/0.5289, allocations: 149.7 kB / 404.3 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002085/0.5291, allocations: 67.16 kB / 404.4 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003332/0.5325, allocations: 1.118 MB / 405.5 MB, free: 1.887 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/0.5325, allocations: 12 kB / 405.5 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.754e-06/0.5325, allocations: 4 kB / 405.5 MB, free: 1.871 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.5326, allocations: 3.984 kB / 405.6 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005919/0.5385, allocations: 2.213 MB / 407.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/0.5386, allocations: 0 / 407.8 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.5396, allocations: 179.8 kB / 407.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/0.541, allocations: 0.514 MB / 408.5 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.5412, allocations: 23.95 kB / 408.5 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004939/0.5462, allocations: 3.04 MB / 411.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.311e-06/0.5462, allocations: 0 / 411.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004319/0.5506, allocations: 1.651 MB / 413.2 MB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000623/0.5512, allocations: 228.2 kB / 413.4 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.5514, allocations: 19.95 kB / 413.4 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001547/0.553, allocations: 239.8 kB / 413.6 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001323/0.5543, allocations: 432.4 kB / 414.1 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.5545, allocations: 39.97 kB / 414.1 MB, free: 8.918 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003691/0.5549, allocations: 231 kB / 414.3 MB, free: 8.691 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.96e-07/0.5549, allocations: 0 / 414.3 MB, free: 8.691 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001157/0.5561, allocations: 215.9 kB / 414.5 MB, free: 8.48 MB / 362.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.0004123/0.5565, allocations: 156.8 kB / 414.7 MB, free: 8.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002545/0.5591, allocations: 1.034 MB / 415.7 MB, free: 7.266 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.473e-06/0.5591, allocations: 4.062 kB / 415.7 MB, free: 7.262 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.5608, allocations: 0.6313 MB / 416.4 MB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000911/0.5617, allocations: 91.39 kB / 416.5 MB, free: 6.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005357/0.5671, allocations: 1.741 MB / 418.2 MB, free: 4.727 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007815/0.5679, allocations: 0.9556 MB / 419.2 MB, free: 3.742 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000366/0.5683, allocations: 59.42 kB / 419.2 MB, free: 3.684 MB / 362.7 MB Notification: Performance of SimCode: time 1.984e-06/0.5683, allocations: 0 / 419.2 MB, free: 3.684 MB / 362.7 MB Notification: Performance of Templates: time 0.2305/0.7988, allocations: 16.57 MB / 435.8 MB, free: 104.4 MB / 362.7 MB