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.1_Modelica.Mechanics.Translational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.2 MB / 185.7 MB, free: 1.406 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.254e-05/3.251e-05, allocations: 8 kB / 228.2 MB, free: 7.277 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08419/0.08425, allocations: 38.76 MB / 266.9 MB, free: 444 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.HeatLosses): time 0.005541/0.08984, allocations: 3.383 MB / 270.3 MB, free: 13.02 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003108/0.09299, allocations: 1.189 MB / 271.5 MB, free: 11.82 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003707/0.0934, allocations: 23.94 kB / 271.5 MB, free: 11.8 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.09365, allocations: 79.38 kB / 271.6 MB, free: 11.72 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006127/0.09428, allocations: 223.3 kB / 271.8 MB, free: 11.5 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.09542, allocations: 311.3 kB / 272.1 MB, free: 11.2 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009707/0.0964, allocations: 0.54 MB / 272.6 MB, free: 10.66 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003253/0.09674, allocations: 129.3 kB / 272.8 MB, free: 10.53 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006609/0.09742, allocations: 375.1 kB / 273.1 MB, free: 10.16 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007026/0.09814, allocations: 418.7 kB / 273.5 MB, free: 9.75 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000477/0.09863, allocations: 127.9 kB / 273.7 MB, free: 9.625 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.09881, allocations: 48 kB / 273.7 MB, free: 9.578 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.09908, allocations: 159.4 kB / 273.9 MB, free: 9.422 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002369/0.09933, allocations: 68 kB / 273.9 MB, free: 9.355 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001205/0.1005, allocations: 0.7442 MB / 274.7 MB, free: 8.609 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1006, allocations: 8 kB / 274.7 MB, free: 8.602 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1006, allocations: 0 / 274.7 MB, free: 8.602 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.576e-05/0.1006, allocations: 0 / 274.7 MB, free: 8.602 MB / 234.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.004891/0.1055, allocations: 1.171 MB / 275.9 MB, free: 7.379 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1056, allocations: 8.031 kB / 275.9 MB, free: 7.371 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003206/0.1059, allocations: 90.95 kB / 276 MB, free: 7.281 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008363/0.1067, allocations: 420.6 kB / 276.4 MB, free: 6.828 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.262e-05/0.1068, allocations: 58 kB / 276.4 MB, free: 6.773 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.1071, allocations: 75.91 kB / 276.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002666/0.1097, allocations: 0.7997 MB / 277.3 MB, free: 5.895 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.1098, allocations: 4 kB / 277.3 MB, free: 5.891 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.1099, allocations: 24 kB / 277.3 MB, free: 5.867 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/0.11, allocations: 16 kB / 277.3 MB, free: 5.852 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00346/0.1134, allocations: 0.8783 MB / 278.2 MB, free: 4.969 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007036/0.1205, allocations: 2.435 MB / 280.7 MB, free: 2.41 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002522/0.123, allocations: 0.7301 MB / 281.4 MB, free: 1.676 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001275/0.1232, allocations: 12.98 kB / 281.4 MB, free: 1.664 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001929/0.1251, allocations: 0.5439 MB / 281.9 MB, free: 1.109 MB / 234.7 MB Notification: Performance of pre-optimization done (n=86): time 3.627e-06/0.1252, allocations: 4 kB / 281.9 MB, free: 1.105 MB / 234.7 MB Notification: Performance of matching and sorting (n=106): time 0.01989/0.1451, allocations: 4.578 MB / 286.5 MB, free: 12.39 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.543e-05/0.1452, allocations: 68.34 kB / 286.6 MB, free: 12.32 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005746/0.1457, allocations: 349 kB / 286.9 MB, free: 11.97 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001439/0.1459, allocations: 57.69 kB / 287 MB, free: 11.91 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002662/0.1462, allocations: 268.9 kB / 287.3 MB, free: 11.64 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004559/0.1466, allocations: 362.9 kB / 287.6 MB, free: 11.28 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-05/0.1468, allocations: 20 kB / 287.6 MB, free: 11.26 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002035/0.147, allocations: 370.8 kB / 288 MB, free: 10.89 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/0.1487, allocations: 446.4 kB / 288.4 MB, free: 10.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/0.1505, allocations: 0.5267 MB / 289 MB, free: 9.91 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.152, allocations: 386.3 kB / 289.3 MB, free: 9.531 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.1521, allocations: 0 / 289.3 MB, free: 9.531 MB / 250.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005616/0.1577, allocations: 1.51 MB / 290.8 MB, free: 8.004 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.1578, allocations: 5.875 kB / 290.8 MB, free: 8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1578, allocations: 0 / 290.8 MB, free: 8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/0.1595, allocations: 0.5412 MB / 291.4 MB, free: 7.449 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.1611, allocations: 207.7 kB / 291.6 MB, free: 7.246 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006531/0.1677, allocations: 3.279 MB / 294.9 MB, free: 3.781 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00234/0.1701, allocations: 235.9 kB / 295.1 MB, free: 3.551 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.1702, allocations: 43.97 kB / 295.1 MB, free: 3.508 MB / 250.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.0005586/0.1708, allocations: 233.8 kB / 295.4 MB, free: 3.273 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/0.171, allocations: 71.16 kB / 295.4 MB, free: 3.203 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002973/0.1713, allocations: 103.1 kB / 295.5 MB, free: 3.098 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/0.1714, allocations: 8 kB / 295.5 MB, free: 3.09 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.1714, allocations: 0 / 295.5 MB, free: 3.09 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.1714, allocations: 11.97 kB / 295.6 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008111/0.1795, allocations: 2.663 MB / 298.2 MB, free: 312 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/0.1796, allocations: 4.219 kB / 298.2 MB, free: 308 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/0.1812, allocations: 183.8 kB / 298.4 MB, free: 124 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2124/0.3936, allocations: 0.5024 MB / 298.9 MB, free: 30.36 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.3939, allocations: 35.48 kB / 298.9 MB, free: 30.36 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005172/0.3991, allocations: 3.115 MB / 302.1 MB, free: 28.09 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.3991, allocations: 2.25 kB / 302.1 MB, free: 28.09 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006988/0.4061, allocations: 2.1 MB / 304.2 MB, free: 27.53 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005833/0.4067, allocations: 230.2 kB / 304.4 MB, free: 27.39 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002339/0.407, allocations: 32.16 kB / 304.4 MB, free: 27.37 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002524/0.4095, allocations: 277.1 kB / 304.7 MB, free: 27.36 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001704/0.4113, allocations: 423 kB / 305.1 MB, free: 27.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/0.4114, allocations: 40.42 kB / 305.1 MB, free: 27.29 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0004308/0.4119, allocations: 270 kB / 305.4 MB, free: 27.16 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.4119, allocations: 3.938 kB / 305.4 MB, free: 27.15 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001057/0.4129, allocations: 245.9 kB / 305.6 MB, free: 27.12 MB / 250.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.0003477/0.4133, allocations: 164.8 kB / 305.8 MB, free: 27 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00446/0.4178, allocations: 1.194 MB / 307 MB, free: 26.54 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.4178, allocations: 1.828 kB / 307 MB, free: 26.54 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002778/0.4206, allocations: 0.7841 MB / 307.8 MB, free: 26.19 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.4217, allocations: 101.2 kB / 307.9 MB, free: 26.15 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006793/0.4286, allocations: 2.357 MB / 310.2 MB, free: 24.77 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.4292, allocations: 0.9529 MB / 311.2 MB, free: 24.06 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0006505/0.4299, allocations: 79.73 kB / 311.3 MB, free: 24.04 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.4302, allocations: 56.97 kB / 311.3 MB, free: 24.03 MB / 250.7 MB Notification: Performance of SimCode: time 1.723e-06/0.4302, allocations: 0 / 311.3 MB, free: 24.03 MB / 250.7 MB Notification: Performance of Templates: time 0.03328/0.4635, allocations: 14.52 MB / 325.9 MB, free: 13.52 MB / 250.7 MB