Notification: Performance of loadModel(Modelica): time 1.501/1.501, allocations: 194.3 MB / 200.5 MB, free: 5.305 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 1.145e-05/1.159e-05, allocations: 1.125 kB / 247.1 MB, free: 4.855 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0585/0.05859, allocations: 44.32 MB / 291.4 MB, free: 9.543 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2224/0.2811, allocations: 74.86 MB / 366.3 MB, free: 6.93 MB / 296.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.2814, allocations: 79.22 kB / 366.4 MB, free: 6.922 MB / 296.6 MB Notification: Performance of FrontEnd: time 0.04037/0.3219, allocations: 8.909 MB / 375.3 MB, free: 5.348 MB / 296.6 MB Notification: Performance of Transformations before backend: time 2.004e-05/0.322, allocations: 7.75 kB / 375.3 MB, free: 5.348 MB / 296.6 MB Notification: Performance of Generate backend data structure: time 0.0009672/0.323, allocations: 0.5668 MB / 375.8 MB, free: 4.871 MB / 296.6 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.3231, allocations: 11.62 kB / 375.9 MB, free: 4.867 MB / 296.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000436/0.3236, allocations: 50.5 kB / 375.9 MB, free: 4.844 MB / 296.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000412/0.3241, allocations: 273.7 kB / 376.2 MB, free: 4.602 MB / 296.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.3243, allocations: 75.48 kB / 376.2 MB, free: 4.535 MB / 296.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.3244, allocations: 22.69 kB / 376.3 MB, free: 4.535 MB / 296.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000749/0.3252, allocations: 356 kB / 376.6 MB, free: 4.48 MB / 296.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006034/0.3259, allocations: 319.7 kB / 376.9 MB, free: 4.352 MB / 296.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.326, allocations: 7.438 kB / 376.9 MB, free: 4.348 MB / 296.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.938e-05/0.3261, allocations: 3.906 kB / 376.9 MB, free: 4.344 MB / 296.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3262, allocations: 11.72 kB / 377 MB, free: 4.34 MB / 296.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002124/0.3283, allocations: 1.101 MB / 378.1 MB, free: 3.668 MB / 296.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005014/0.3289, allocations: 271.2 kB / 378.3 MB, free: 3.621 MB / 296.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.3293, allocations: 152.6 kB / 378.5 MB, free: 3.605 MB / 296.6 MB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.3294, allocations: 3.906 kB / 378.5 MB, free: 3.605 MB / 296.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.3295, allocations: 38.34 kB / 378.5 MB, free: 3.566 MB / 296.6 MB Notification: Performance of pre-optimization done (n=43): time 6.774e-06/0.3295, allocations: 3.984 kB / 378.5 MB, free: 3.562 MB / 296.6 MB Notification: Performance of matching and sorting (n=45): time 0.003163/0.3327, allocations: 1.226 MB / 379.7 MB, free: 2.934 MB / 296.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.3329, allocations: 84.77 kB / 379.8 MB, free: 2.836 MB / 296.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.3332, allocations: 186.5 kB / 380 MB, free: 18.73 MB / 312.6 MB Notification: Performance of collectPreVariables (initialization): time 5.28e-05/0.3333, allocations: 37.42 kB / 380 MB, free: 18.69 MB / 312.6 MB Notification: Performance of collectInitialEqns (initialization): time 7.424e-05/0.3334, allocations: 124.2 kB / 380.2 MB, free: 18.57 MB / 312.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.3336, allocations: 136.9 kB / 380.3 MB, free: 18.47 MB / 312.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/0.3337, allocations: 0 / 380.3 MB, free: 18.47 MB / 312.6 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3339, allocations: 342.1 kB / 380.6 MB, free: 18.15 MB / 312.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000309/0.3342, allocations: 140.4 kB / 380.8 MB, free: 18.14 MB / 312.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.3346, allocations: 203.8 kB / 381 MB, free: 18.07 MB / 312.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004485/0.3351, allocations: 136.4 kB / 381.1 MB, free: 18.05 MB / 312.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.003e-06/0.3352, allocations: 0 / 381.1 MB, free: 18.05 MB / 312.6 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001225/0.3365, allocations: 475.6 kB / 381.6 MB, free: 17.95 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.3366, allocations: 19.45 kB / 381.6 MB, free: 17.94 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.8e-06/0.3366, allocations: 0 / 381.6 MB, free: 17.94 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009148/0.3376, allocations: 229 kB / 381.8 MB, free: 17.89 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003461/0.338, allocations: 49.22 kB / 381.9 MB, free: 17.88 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00413/0.3422, allocations: 2.405 MB / 384.3 MB, free: 16.38 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.3427, allocations: 31.47 kB / 384.3 MB, free: 16.37 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-05/0.3429, allocations: 22.83 kB / 384.3 MB, free: 16.36 MB / 312.6 MB Warning: There are iteration variables with default zero start attribute. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). Notification: Performance of prepare postOptimizeDAE: time 0.0001121/0.343, allocations: 75.8 kB / 384.4 MB, free: 16.29 MB / 312.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.3432, allocations: 27.31 kB / 384.4 MB, free: 16.28 MB / 312.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.156e-05/0.3433, allocations: 38.34 kB / 384.4 MB, free: 16.27 MB / 312.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.753e-06/0.3434, allocations: 3.938 kB / 384.5 MB, free: 16.27 MB / 312.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.61e-06/0.3435, allocations: 4 kB / 384.5 MB, free: 16.27 MB / 312.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.612e-06/0.3435, allocations: 3.984 kB / 384.5 MB, free: 16.26 MB / 312.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.3456, allocations: 0.9433 MB / 385.4 MB, free: 15.85 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3457, allocations: 0 / 385.4 MB, free: 15.85 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003531/0.3461, allocations: 50.19 kB / 385.5 MB, free: 15.83 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008296/0.347, allocations: 220.1 kB / 385.7 MB, free: 15.79 MB / 312.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.379e-05/0.3471, allocations: 7.953 kB / 385.7 MB, free: 15.78 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003625/0.3508, allocations: 2.347 MB / 388 MB, free: 14.29 MB / 312.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.3509, allocations: 0 / 388 MB, free: 14.29 MB / 312.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001661/0.3526, allocations: 0.7223 MB / 388.7 MB, free: 14.06 MB / 312.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.3529, allocations: 145.4 kB / 388.9 MB, free: 13.94 MB / 312.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.8e-05/0.353, allocations: 4.125 kB / 388.9 MB, free: 13.93 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.3535, allocations: 23.11 kB / 388.9 MB, free: 13.93 MB / 312.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001263/0.3537, allocations: 46.22 kB / 389 MB, free: 13.91 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.826e-05/0.3538, allocations: 14.86 kB / 389 MB, free: 13.9 MB / 312.6 MB Notification: Performance of sort global known variables: time 0.0001458/0.354, allocations: 156 kB / 389.1 MB, free: 13.81 MB / 312.6 MB Notification: Performance of remove unused functions: time 0.0007978/0.3549, allocations: 114.9 kB / 389.2 MB, free: 13.8 MB / 312.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.0001787/0.3551, allocations: 103.6 kB / 389.3 MB, free: 13.74 MB / 312.6 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.3563, allocations: 492.2 kB / 389.8 MB, free: 13.61 MB / 312.6 MB Notification: Performance of simCode: created event and clocks part: time 3.492e-06/0.3563, allocations: 4.25 kB / 389.8 MB, free: 13.6 MB / 312.6 MB Notification: Performance of simCode: created simulation system equations: time 0.000618/0.357, allocations: 325.2 kB / 390.1 MB, free: 13.47 MB / 312.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003781/0.3574, allocations: 19.55 kB / 390.2 MB, free: 13.46 MB / 312.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00135/0.3589, allocations: 0.5253 MB / 390.7 MB, free: 13.18 MB / 312.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003873/0.3593, allocations: 0.8147 MB / 391.5 MB, free: 12.42 MB / 312.6 MB Notification: Performance of SimCode: time 3.073e-06/0.3594, allocations: 0 / 391.5 MB, free: 12.42 MB / 312.6 MB Notification: Performance of Templates: time 0.0541/0.4135, allocations: 6.694 MB / 398.2 MB, free: 9.051 MB / 312.6 MB "Error: Could not read variable gear.Backward in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Backward from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Forward in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Forward from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Free in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Free from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Stuck in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Stuck from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Unknown in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Unknown from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.der(w_a) in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.der(w_a) from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitAngularAcceleration in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitAngularAcceleration from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitTorque in file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitTorque from file Modelica_3.2.2__O1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! " Variables in the reference:Inertia1.J,Inertia1.a,der(Inertia1.phi),der(Inertia1.w),Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.w,Inertia2.J,Inertia2.a,der(Inertia2.phi),der(Inertia2.w),Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.w,Time,gear.Backward,gear.Forward,gear.Free,gear.Stuck,gear.Unknown,gear.a_a,der(gear.phi_a),der(gear.w_a),gear.eta_mf1,gear.eta_mf1_0,gear.eta_mf2,gear.eta_mf2_0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.phi_support,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf1_0,gear.tau_bf2,gear.tau_bf2_0,gear.tau_bf_a,gear.tau_bf_a_0,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.unitAngularAcceleration,gear.unitTorque,gear.w_a,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.tau,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.tau Variables in the result:Inertia1.J,Inertia1.a,Inertia1.flange_a.phi,Inertia1.flange_a.tau,Inertia1.flange_b.phi,Inertia1.flange_b.tau,Inertia1.phi,Inertia1.w,Inertia2.J,Inertia2.a,Inertia2.flange_a.phi,Inertia2.flange_a.tau,Inertia2.flange_b.phi,Inertia2.flange_b.tau,Inertia2.phi,Inertia2.w,der(Inertia1.w),der(Inertia2.phi),der(Inertia2.w),der(gear.phi_a),gear.a_a,gear.eta_mf1,gear.eta_mf1_0,gear.eta_mf2,gear.eta_mf2_0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.ideal,gear.interpolation_result[1,1],gear.interpolation_result[1,2],gear.interpolation_result[1,3],gear.interpolation_result[1,4],gear.locked,gear.lossPower,gear.lossTable[1,1],gear.lossTable[1,2],gear.lossTable[1,3],gear.lossTable[1,4],gear.lossTable[1,5],gear.mode,gear.phi_a,gear.phi_b,gear.phi_support,gear.quadrant1,gear.quadrant1_p,gear.quadrant2,gear.quadrant2_p,gear.quadrant3,gear.quadrant3_m,gear.quadrant4,gear.quadrant4_m,gear.ratio,gear.sa,gear.startBackward,gear.startForward,gear.tauLoss,gear.tauLossMax,gear.tauLossMax_p,gear.tauLossMin,gear.tauLossMin_m,gear.tau_aPos,gear.tau_bf1,gear.tau_bf1_0,gear.tau_bf2,gear.tau_bf2_0,gear.tau_bf_a,gear.tau_bf_a_0,gear.tau_eta,gear.tau_etaPos,gear.tau_eta_m,gear.tau_eta_p,gear.w_a,step.height,step.offset,step.startTime,step.y,step1.height,step1.offset,step1.startTime,step1.y,time,torque1.flange.phi,torque1.flange.tau,torque1.phi_support,torque1.tau,torque2.flange.phi,torque2.flange.tau,torque2.phi_support,torque2.tau