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_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.953/1.953, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.609e-05/4.617e-05, allocations: 4 kB / 292.1 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09412/0.0942, allocations: 50.4 MB / 342.5 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4196/0.5139, allocations: 85.78 MB / 428.3 MB, free: 8.504 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.5142, allocations: 76.64 kB / 428.4 MB, free: 8.461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06416/0.5783, allocations: 15.11 MB / 443.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.915e-06/0.5784, allocations: 0 / 443.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.71e-05/0.5784, allocations: 15.38 kB / 443.5 MB, free: 11.35 MB / 362.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.00307/0.5815, allocations: 1.063 MB / 444.6 MB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/0.5816, allocations: 12.03 kB / 444.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003486/0.5819, allocations: 90.91 kB / 444.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008227/0.5828, allocations: 421.7 kB / 445.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.657e-05/0.5829, allocations: 54.31 kB / 445.2 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/0.5831, allocations: 70.34 kB / 445.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002023/0.5851, allocations: 0.7116 MB / 445.9 MB, free: 9.227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.937e-05/0.5852, allocations: 0 / 445.9 MB, free: 9.227 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001174/0.5853, allocations: 28.69 kB / 446 MB, free: 9.219 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.756e-05/0.5853, allocations: 16 kB / 446 MB, free: 9.203 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001857/0.5872, allocations: 0.7038 MB / 446.7 MB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006171/0.5934, allocations: 2.446 MB / 449.1 MB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001363/0.5948, allocations: 0.6157 MB / 449.8 MB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009013/0.5957, allocations: 418.1 kB / 450.2 MB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/0.5959, allocations: 12.77 kB / 450.2 MB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00115/0.597, allocations: 499.9 kB / 450.7 MB, free: 5.684 MB / 362.7 MB Notification: Performance of pre-optimization done (n=89): time 4.909e-06/0.597, allocations: 0 / 450.7 MB, free: 5.684 MB / 362.7 MB Notification: Performance of matching and sorting (n=109): time 0.008566/0.6056, allocations: 2.941 MB / 453.6 MB, free: 3.316 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/0.6057, allocations: 64.41 kB / 453.7 MB, free: 3.242 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004926/0.6062, allocations: 312.3 kB / 454 MB, free: 2.988 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001482/0.6064, allocations: 60.38 kB / 454 MB, free: 2.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002591/0.6067, allocations: 257 kB / 454.3 MB, free: 2.672 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/0.6071, allocations: 374.8 kB / 454.6 MB, free: 2.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.16e-05/0.6072, allocations: 20 kB / 454.7 MB, free: 2.281 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002424/0.6075, allocations: 374.8 kB / 455 MB, free: 1.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009903/0.6085, allocations: 354.6 kB / 455.4 MB, free: 1.562 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.6096, allocations: 452.8 kB / 455.8 MB, free: 1.098 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008261/0.6104, allocations: 304.9 kB / 456.1 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.6104, allocations: 4 kB / 456.1 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003533/0.614, allocations: 1.174 MB / 457.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.614, allocations: 4 kB / 457.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.6141, allocations: 4 kB / 457.3 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/0.6156, allocations: 0.5334 MB / 457.8 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.6167, allocations: 203.7 kB / 458 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005382/0.6221, allocations: 3.229 MB / 461.3 MB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/0.6237, allocations: 239.9 kB / 461.5 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000147/0.6239, allocations: 39.98 kB / 461.5 MB, free: 11.17 MB / 378.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.0003432/0.6242, allocations: 167.9 kB / 461.7 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/0.6244, allocations: 71.2 kB / 461.8 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003364/0.6278, allocations: 1.193 MB / 463 MB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/0.6279, allocations: 8 kB / 463 MB, free: 9.703 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.928e-06/0.6279, allocations: 3.953 kB / 463 MB, free: 9.699 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-05/0.6279, allocations: 11.97 kB / 463 MB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005935/0.6339, allocations: 2.361 MB / 465.3 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.841e-06/0.6339, allocations: 0 / 465.3 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/0.635, allocations: 188 kB / 465.5 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/0.6365, allocations: 0.5139 MB / 466 MB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.6366, allocations: 35.97 kB / 466.1 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004785/0.6414, allocations: 3.046 MB / 469.1 MB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.979e-06/0.6415, allocations: 4.031 kB / 469.1 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004392/0.6459, allocations: 1.712 MB / 470.8 MB, free: 1.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006099/0.6465, allocations: 236.1 kB / 471.1 MB, free: 1.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002029/0.6467, allocations: 31.98 kB / 471.1 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.6483, allocations: 247.8 kB / 471.3 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001325/0.6497, allocations: 440.1 kB / 471.8 MB, free: 488 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001511/0.6498, allocations: 43.97 kB / 471.8 MB, free: 444 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000431/0.6503, allocations: 257.1 kB / 472.1 MB, free: 184 kB / 378.7 MB Notification: Performance of sort global known variables: time 3.283e-06/0.6503, allocations: 0 / 472.1 MB, free: 184 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.001178/0.6515, allocations: 248 kB / 472.3 MB, free: 15.93 MB / 394.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.0004057/0.6519, allocations: 171.2 kB / 472.5 MB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002689/0.6546, allocations: 1.073 MB / 473.6 MB, free: 14.67 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.298e-06/0.6547, allocations: 0 / 473.6 MB, free: 14.67 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001985/0.6567, allocations: 0.7005 MB / 474.3 MB, free: 13.96 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009162/0.6576, allocations: 114.2 kB / 474.4 MB, free: 13.85 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005373/0.663, allocations: 1.764 MB / 476.1 MB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007778/0.6638, allocations: 0.9437 MB / 477.1 MB, free: 11.07 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005425/0.6644, allocations: 81.36 kB / 477.2 MB, free: 10.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002654/0.6646, allocations: 55.42 kB / 477.2 MB, free: 10.93 MB / 394.7 MB Notification: Performance of SimCode: time 1.874e-06/0.6647, allocations: 0 / 477.2 MB, free: 10.93 MB / 394.7 MB Notification: Performance of Templates: time 0.04473/0.7094, allocations: 14.88 MB / 492.1 MB, free: 12.09 MB / 410.7 MB