Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.66/1.66, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.733e-05/2.728e-05, allocations: 4 kB / 228.1 MB, free: 7.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08066/0.08071, allocations: 38.77 MB / 266.9 MB, free: 496 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003282/0.08405, allocations: 1.888 MB / 268.8 MB, free: 14.57 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002177/0.08628, allocations: 0.8865 MB / 269.7 MB, free: 13.68 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001991/0.08652, allocations: 4 kB / 269.7 MB, free: 13.68 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.08669, allocations: 31.77 kB / 269.7 MB, free: 13.65 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005339/0.08723, allocations: 143.5 kB / 269.9 MB, free: 13.51 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.08769, allocations: 135.8 kB / 270 MB, free: 13.38 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004142/0.08811, allocations: 219.6 kB / 270.2 MB, free: 13.16 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.08829, allocations: 40.41 kB / 270.3 MB, free: 13.12 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003505/0.08865, allocations: 159.6 kB / 270.4 MB, free: 12.96 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003971/0.08906, allocations: 207.4 kB / 270.6 MB, free: 12.76 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002812/0.08936, allocations: 83.88 kB / 270.7 MB, free: 12.68 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.107e-05/0.08947, allocations: 24 kB / 270.7 MB, free: 12.66 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.08963, allocations: 87.72 kB / 270.8 MB, free: 12.57 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.08976, allocations: 28 kB / 270.8 MB, free: 12.54 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005926/0.09036, allocations: 351.4 kB / 271.2 MB, free: 12.2 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.09038, allocations: 0 / 271.2 MB, free: 12.2 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.09039, allocations: 0 / 271.2 MB, free: 12.2 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.09041, allocations: 0 / 271.2 MB, free: 12.2 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001634/0.09206, allocations: 0.6005 MB / 271.8 MB, free: 11.55 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.09212, allocations: 8.031 kB / 271.8 MB, free: 11.54 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005449/0.09268, allocations: 55.59 kB / 271.8 MB, free: 11.49 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006604/0.09335, allocations: 302.2 kB / 272.1 MB, free: 11.15 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001661/0.09354, allocations: 88.02 kB / 272.2 MB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.09366, allocations: 35.98 kB / 272.3 MB, free: 11.02 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.09496, allocations: 416.9 kB / 272.7 MB, free: 10.6 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.09501, allocations: 3.906 kB / 272.7 MB, free: 10.6 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.837e-05/0.09508, allocations: 12 kB / 272.7 MB, free: 10.59 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.0951, allocations: 11.98 kB / 272.7 MB, free: 10.57 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001733/0.09685, allocations: 490.2 kB / 273.2 MB, free: 10.09 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/0.09963, allocations: 0.9891 MB / 274.2 MB, free: 9.047 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001459/0.1011, allocations: 412.3 kB / 274.6 MB, free: 8.633 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.334e-05/0.1012, allocations: 4.438 kB / 274.6 MB, free: 8.629 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.1013, allocations: 39.19 kB / 274.6 MB, free: 8.582 MB / 234.7 MB Notification: Performance of pre-optimization done (n=49): time 1.29e-05/0.1013, allocations: 4 kB / 274.6 MB, free: 8.578 MB / 234.7 MB Notification: Performance of matching and sorting (n=55): time 0.009103/0.1104, allocations: 2.203 MB / 276.8 MB, free: 6.266 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.1105, allocations: 97.61 kB / 276.9 MB, free: 6.152 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.111, allocations: 239.2 kB / 277.1 MB, free: 5.91 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.768e-05/0.1111, allocations: 33.7 kB / 277.2 MB, free: 5.871 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.1113, allocations: 141 kB / 277.3 MB, free: 5.727 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002262/0.1115, allocations: 177.4 kB / 277.5 MB, free: 5.551 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.464e-05/0.1116, allocations: 12 kB / 277.5 MB, free: 5.539 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1117, allocations: 338.8 kB / 277.8 MB, free: 5.199 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000834/0.1126, allocations: 209 kB / 278 MB, free: 4.996 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008384/0.1134, allocations: 244.6 kB / 278.3 MB, free: 4.75 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007836/0.1142, allocations: 198.2 kB / 278.5 MB, free: 4.555 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1143, allocations: 0 / 278.5 MB, free: 4.555 MB / 234.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002214/0.1165, allocations: 0.629 MB / 279.1 MB, free: 3.918 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.1165, allocations: 4 kB / 279.1 MB, free: 3.914 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1166, allocations: 0 / 279.1 MB, free: 3.914 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.1178, allocations: 250.1 kB / 279.3 MB, free: 3.668 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006011/0.1184, allocations: 75.84 kB / 279.4 MB, free: 3.594 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006388/0.1248, allocations: 2.743 MB / 282.2 MB, free: 0.7148 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005887/0.1255, allocations: 35.94 kB / 282.2 MB, free: 0.6797 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.33e-05/0.1255, allocations: 20 kB / 282.2 MB, free: 0.6602 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003102/0.1259, allocations: 173.8 kB / 282.4 MB, free: 492 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.126, allocations: 31.62 kB / 282.4 MB, free: 460 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.1262, allocations: 51.3 kB / 282.5 MB, free: 412 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.1262, allocations: 4 kB / 282.5 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1262, allocations: 0 / 282.5 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.1262, allocations: 0 / 282.5 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003779/0.13, allocations: 1.284 MB / 283.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.1301, allocations: 0 / 283.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006681/0.1308, allocations: 71.94 kB / 283.8 MB, free: 14.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001165/0.1319, allocations: 240.6 kB / 284 MB, free: 14.74 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.379e-05/0.1321, allocations: 15.95 kB / 284.1 MB, free: 14.72 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006152/0.1382, allocations: 2.658 MB / 286.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1383, allocations: 4.062 kB / 286.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003244/0.1415, allocations: 0.9823 MB / 287.7 MB, free: 10.92 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.1419, allocations: 156.7 kB / 287.9 MB, free: 10.75 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.142, allocations: 12 kB / 287.9 MB, free: 10.74 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.1426, allocations: 40.03 kB / 287.9 MB, free: 10.7 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002714/0.1429, allocations: 76.23 kB / 288 MB, free: 10.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-05/0.143, allocations: 19.98 kB / 288 MB, free: 10.61 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003777/0.1433, allocations: 193.8 kB / 288.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1434, allocations: 0 / 288.2 MB, free: 10.42 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0008599/0.1442, allocations: 152 kB / 288.3 MB, free: 10.27 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003895/0.1446, allocations: 163 kB / 288.5 MB, free: 10.1 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00241/0.1471, allocations: 0.6995 MB / 289.2 MB, free: 9.391 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.1471, allocations: 0 / 289.2 MB, free: 9.391 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.1486, allocations: 491.7 kB / 289.7 MB, free: 8.898 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.1492, allocations: 32.42 kB / 289.7 MB, free: 8.867 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.1517, allocations: 0.9449 MB / 290.7 MB, free: 7.891 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.1523, allocations: 0.8048 MB / 291.5 MB, free: 7.062 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0004432/0.1527, allocations: 58.95 kB / 291.5 MB, free: 7.008 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.1529, allocations: 31.41 kB / 291.6 MB, free: 6.977 MB / 250.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1529, allocations: 0 / 291.6 MB, free: 6.977 MB / 250.7 MB Notification: Performance of Templates: time 0.02105/0.174, allocations: 6.922 MB / 298.5 MB, free: 56 kB / 250.7 MB "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:DriveSine.amplitude,DriveSine.freqHz,DriveSine.offset,DriveSine.phase,DriveSine.startTime,Inertia1.J,Inertia2.J,Inertia2.phi,Inertia2.w,fixed.flange.phi,fixed.phi0,gear.eta_mf1_0,gear.eta_mf2_0,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_support,gear.ratio,gear.support.phi,gear.tau_bf1_0,gear.tau_bf2_0,gear.tau_bf_a_0,load.duration,load.height,load.offset,load.startTime,time,torque1.phi_support,torque1.support.phi,torque2.phi_support,torque2.support.phi