Notification: Performance of loadModel(Modelica): time 1.469/1.469, allocations: 194.3 MB / 200.6 MB, free: 5.301 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 7.962e-06/8.031e-06, allocations: 0 / 247.1 MB, free: 4.832 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0575/0.05758, allocations: 44.31 MB / 291.4 MB, free: 9.555 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2179/0.2756, allocations: 74.87 MB / 366.3 MB, free: 7 MB / 296.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.2759, allocations: 75.2 kB / 366.4 MB, free: 6.996 MB / 296.6 MB Notification: Performance of FrontEnd: time 0.03447/0.3104, allocations: 8.909 MB / 375.3 MB, free: 5.422 MB / 296.6 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.3105, allocations: 7.516 kB / 375.3 MB, free: 5.422 MB / 296.6 MB Notification: Performance of Generate backend data structure: time 0.0008776/0.3115, allocations: 0.5692 MB / 375.8 MB, free: 4.945 MB / 296.6 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3116, allocations: 7.875 kB / 375.9 MB, free: 4.945 MB / 296.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003933/0.312, allocations: 50.53 kB / 375.9 MB, free: 4.922 MB / 296.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.3125, allocations: 273.3 kB / 376.2 MB, free: 4.68 MB / 296.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.3126, allocations: 79.48 kB / 376.2 MB, free: 4.613 MB / 296.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.712e-05/0.3128, allocations: 15.47 kB / 376.3 MB, free: 4.613 MB / 296.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006851/0.3135, allocations: 356.9 kB / 376.6 MB, free: 4.559 MB / 296.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005455/0.3141, allocations: 321.7 kB / 376.9 MB, free: 4.43 MB / 296.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3142, allocations: 0 / 376.9 MB, free: 4.43 MB / 296.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.526e-05/0.3143, allocations: 7.781 kB / 376.9 MB, free: 4.426 MB / 296.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.3144, allocations: 3.812 kB / 376.9 MB, free: 4.426 MB / 296.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.3164, allocations: 1.109 MB / 378 MB, free: 3.746 MB / 296.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004452/0.3169, allocations: 260.8 kB / 378.3 MB, free: 3.703 MB / 296.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/0.3172, allocations: 156.8 kB / 378.5 MB, free: 3.688 MB / 296.6 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.3173, allocations: 7.609 kB / 378.5 MB, free: 3.688 MB / 296.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.3174, allocations: 37.66 kB / 378.5 MB, free: 3.648 MB / 296.6 MB Notification: Performance of pre-optimization done (n=43): time 3.632e-06/0.3175, allocations: 4 kB / 378.5 MB, free: 3.645 MB / 296.6 MB Notification: Performance of matching and sorting (n=45): time 0.002835/0.3203, allocations: 1.216 MB / 379.7 MB, free: 3.02 MB / 296.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.3205, allocations: 96.45 kB / 379.8 MB, free: 18.92 MB / 312.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.3208, allocations: 187.1 kB / 380 MB, free: 18.8 MB / 312.6 MB Notification: Performance of collectPreVariables (initialization): time 5.413e-05/0.3209, allocations: 29.58 kB / 380 MB, free: 18.77 MB / 312.6 MB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/0.321, allocations: 128.1 kB / 380.2 MB, free: 18.66 MB / 312.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3212, allocations: 144.2 kB / 380.3 MB, free: 18.55 MB / 312.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.3213, allocations: 0 / 380.3 MB, free: 18.55 MB / 312.6 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3215, allocations: 337.6 kB / 380.6 MB, free: 18.23 MB / 312.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002685/0.3218, allocations: 138.9 kB / 380.8 MB, free: 18.22 MB / 312.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.3222, allocations: 206.7 kB / 381 MB, free: 18.15 MB / 312.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004176/0.3226, allocations: 137 kB / 381.1 MB, free: 18.13 MB / 312.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.191e-06/0.3227, allocations: 0 / 381.1 MB, free: 18.13 MB / 312.6 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001095/0.3239, allocations: 484.2 kB / 381.6 MB, free: 18.02 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3239, allocations: 7.781 kB / 381.6 MB, free: 18.02 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.324, allocations: 3.984 kB / 381.6 MB, free: 18.02 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008106/0.3249, allocations: 229.6 kB / 381.8 MB, free: 17.97 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.3252, allocations: 58.78 kB / 381.9 MB, free: 17.95 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003958/0.3293, allocations: 2.475 MB / 384.3 MB, free: 16.43 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003732/0.3297, allocations: 23.67 kB / 384.4 MB, free: 16.42 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.125e-05/0.3299, allocations: 23.3 kB / 384.4 MB, free: 16.42 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.0001115/0.33, allocations: 75.8 kB / 384.5 MB, free: 16.34 MB / 312.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.156e-05/0.3302, allocations: 35.09 kB / 384.5 MB, free: 16.32 MB / 312.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.018e-05/0.3303, allocations: 34.02 kB / 384.5 MB, free: 16.32 MB / 312.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.076e-06/0.3304, allocations: 7.875 kB / 384.5 MB, free: 16.31 MB / 312.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.841e-06/0.3304, allocations: 0 / 384.5 MB, free: 16.31 MB / 312.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.146e-06/0.3305, allocations: 0 / 384.5 MB, free: 16.31 MB / 312.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.3324, allocations: 0.9463 MB / 385.5 MB, free: 15.9 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.727e-06/0.3325, allocations: 0 / 385.5 MB, free: 15.9 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/0.3329, allocations: 50.22 kB / 385.5 MB, free: 15.88 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007281/0.3337, allocations: 225.3 kB / 385.7 MB, free: 15.83 MB / 312.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/0.3338, allocations: 7.859 kB / 385.8 MB, free: 15.83 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.3375, allocations: 2.421 MB / 388.2 MB, free: 14.32 MB / 312.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.286e-06/0.3376, allocations: 3.984 kB / 388.2 MB, free: 14.32 MB / 312.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001309/0.3389, allocations: 0.7186 MB / 388.9 MB, free: 14.1 MB / 312.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001773/0.3392, allocations: 141.7 kB / 389 MB, free: 13.98 MB / 312.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.473e-05/0.3393, allocations: 3.719 kB / 389 MB, free: 13.98 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003586/0.3397, allocations: 23.61 kB / 389.1 MB, free: 13.97 MB / 312.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.3399, allocations: 42.88 kB / 389.1 MB, free: 13.95 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.665e-05/0.34, allocations: 19.48 kB / 389.1 MB, free: 13.95 MB / 312.6 MB Notification: Performance of sort global known variables: time 0.0001381/0.3402, allocations: 151.4 kB / 389.3 MB, free: 13.86 MB / 312.6 MB Notification: Performance of remove unused functions: time 0.0007111/0.341, allocations: 118.4 kB / 389.4 MB, free: 13.85 MB / 312.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.0001663/0.3412, allocations: 111.4 kB / 389.5 MB, free: 13.77 MB / 312.6 MB Notification: Performance of simCode: created initialization part: time 0.0009514/0.3422, allocations: 498.7 kB / 390 MB, free: 13.63 MB / 312.6 MB Notification: Performance of simCode: created event and clocks part: time 3.493e-06/0.3423, allocations: 3.938 kB / 390 MB, free: 13.63 MB / 312.6 MB Notification: Performance of simCode: created simulation system equations: time 0.0005617/0.3429, allocations: 336.2 kB / 390.3 MB, free: 13.5 MB / 312.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.3433, allocations: 11.62 kB / 390.3 MB, free: 13.5 MB / 312.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.3446, allocations: 0.5296 MB / 390.9 MB, free: 13.21 MB / 312.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003652/0.3451, allocations: 0.807 MB / 391.7 MB, free: 12.46 MB / 312.6 MB Notification: Performance of SimCode: time 2.026e-06/0.3451, allocations: 3.75 kB / 391.7 MB, free: 12.46 MB / 312.6 MB Notification: Performance of Templates: time 0.04992/0.3951, allocations: 6.844 MB / 398.5 MB, free: 9.008 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