Notification: Performance of loadModel(Modelica): time 1.513/1.513, allocations: 194.3 MB / 200.6 MB, free: 5.301 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 9.708e-06/9.848e-06, allocations: 1.688 kB / 247.1 MB, free: 4.855 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0569/0.05698, allocations: 44.31 MB / 291.4 MB, free: 9.555 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2179/0.275, allocations: 74.86 MB / 366.3 MB, free: 7.09 MB / 296.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/0.2753, allocations: 78.22 kB / 366.4 MB, free: 7.086 MB / 296.6 MB Notification: Performance of FrontEnd: time 0.03632/0.3117, allocations: 8.912 MB / 375.3 MB, free: 5.496 MB / 296.6 MB Notification: Performance of Transformations before backend: time 2.109e-05/0.3118, allocations: 7.844 kB / 375.3 MB, free: 5.496 MB / 296.6 MB Notification: Performance of Generate backend data structure: time 0.0009098/0.3128, allocations: 0.5639 MB / 375.8 MB, free: 5.023 MB / 296.6 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3129, allocations: 7.844 kB / 375.9 MB, free: 5.023 MB / 296.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004032/0.3134, allocations: 54.69 kB / 375.9 MB, free: 4.996 MB / 296.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003806/0.3138, allocations: 272.5 kB / 376.2 MB, free: 4.754 MB / 296.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.314, allocations: 79.17 kB / 376.3 MB, free: 4.688 MB / 296.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.726e-05/0.3141, allocations: 15.62 kB / 376.3 MB, free: 4.688 MB / 296.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007067/0.3149, allocations: 365.4 kB / 376.6 MB, free: 4.629 MB / 296.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005593/0.3155, allocations: 318 kB / 376.9 MB, free: 4.5 MB / 296.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.3156, allocations: 0 / 376.9 MB, free: 4.5 MB / 296.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.54e-05/0.3157, allocations: 3.906 kB / 376.9 MB, free: 4.496 MB / 296.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.987e-06/0.3157, allocations: 7.75 kB / 376.9 MB, free: 4.496 MB / 296.6 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.3177, allocations: 1.111 MB / 378.1 MB, free: 3.816 MB / 296.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004471/0.3182, allocations: 259.4 kB / 378.3 MB, free: 3.777 MB / 296.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/0.3185, allocations: 153 kB / 378.5 MB, free: 3.762 MB / 296.6 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.3186, allocations: 7.562 kB / 378.5 MB, free: 3.762 MB / 296.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.3187, allocations: 42.38 kB / 378.5 MB, free: 3.719 MB / 296.6 MB Notification: Performance of pre-optimization done (n=43): time 5.098e-06/0.3188, allocations: 3.984 kB / 378.5 MB, free: 3.715 MB / 296.6 MB Notification: Performance of matching and sorting (n=45): time 0.002843/0.3217, allocations: 1.223 MB / 379.7 MB, free: 3.086 MB / 296.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.3218, allocations: 88.67 kB / 379.8 MB, free: 18.98 MB / 312.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002208/0.3221, allocations: 189.9 kB / 380 MB, free: 18.87 MB / 312.6 MB Notification: Performance of collectPreVariables (initialization): time 5.14e-05/0.3222, allocations: 29.61 kB / 380 MB, free: 18.84 MB / 312.6 MB Notification: Performance of collectInitialEqns (initialization): time 7.41e-05/0.3224, allocations: 134.9 kB / 380.2 MB, free: 18.72 MB / 312.6 MB Notification: Performance of collectInitialBindings (initialization): time 9.778e-05/0.3225, allocations: 140.2 kB / 380.3 MB, free: 18.62 MB / 312.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.038e-05/0.3226, allocations: 0 / 380.3 MB, free: 18.62 MB / 312.6 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3228, allocations: 334.1 kB / 380.6 MB, free: 18.3 MB / 312.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.3231, allocations: 143.9 kB / 380.8 MB, free: 18.29 MB / 312.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.3235, allocations: 191.4 kB / 381 MB, free: 18.23 MB / 312.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003936/0.3239, allocations: 136.4 kB / 381.1 MB, free: 18.2 MB / 312.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.143e-06/0.324, allocations: 7.812 kB / 381.1 MB, free: 18.2 MB / 312.6 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001077/0.3251, allocations: 476.8 kB / 381.6 MB, free: 18.1 MB / 312.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.3252, allocations: 11.38 kB / 381.6 MB, free: 18.09 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.3253, allocations: 7.969 kB / 381.6 MB, free: 18.09 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007943/0.3261, allocations: 226.9 kB / 381.8 MB, free: 18.04 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003069/0.3265, allocations: 61 kB / 381.9 MB, free: 18.03 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003947/0.3305, allocations: 2.475 MB / 384.3 MB, free: 16.5 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003789/0.331, allocations: 23.61 kB / 384.4 MB, free: 16.5 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-05/0.3311, allocations: 22.86 kB / 384.4 MB, free: 16.49 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.00012/0.3313, allocations: 79.23 kB / 384.5 MB, free: 16.42 MB / 312.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.198e-05/0.3315, allocations: 31.25 kB / 384.5 MB, free: 16.4 MB / 312.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.941e-05/0.3316, allocations: 37.67 kB / 384.5 MB, free: 16.39 MB / 312.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.425e-06/0.3317, allocations: 3.938 kB / 384.5 MB, free: 16.39 MB / 312.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.911e-06/0.3317, allocations: 0 / 384.5 MB, free: 16.39 MB / 312.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.006e-06/0.3318, allocations: 0 / 384.5 MB, free: 16.39 MB / 312.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.3336, allocations: 0.9461 MB / 385.5 MB, free: 15.97 MB / 312.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.3337, allocations: 4 kB / 385.5 MB, free: 15.96 MB / 312.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.3341, allocations: 46.41 kB / 385.5 MB, free: 15.96 MB / 312.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007375/0.3349, allocations: 224.2 kB / 385.7 MB, free: 15.91 MB / 312.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.016e-05/0.335, allocations: 7.734 kB / 385.8 MB, free: 15.9 MB / 312.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003692/0.3387, allocations: 2.423 MB / 388.2 MB, free: 14.39 MB / 312.6 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.866e-06/0.3388, allocations: 0 / 388.2 MB, free: 14.39 MB / 312.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001297/0.3402, allocations: 0.7152 MB / 388.9 MB, free: 14.18 MB / 312.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.3404, allocations: 140.7 kB / 389 MB, free: 14.06 MB / 312.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.543e-05/0.3406, allocations: 3.875 kB / 389 MB, free: 14.06 MB / 312.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.341, allocations: 23.45 kB / 389.1 MB, free: 14.05 MB / 312.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.3412, allocations: 46.19 kB / 389.1 MB, free: 14.03 MB / 312.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.777e-05/0.3413, allocations: 18.77 kB / 389.1 MB, free: 14.02 MB / 312.6 MB Notification: Performance of sort global known variables: time 0.0001347/0.3415, allocations: 156 kB / 389.3 MB, free: 13.93 MB / 312.6 MB Notification: Performance of remove unused functions: time 0.0007173/0.3423, allocations: 118.2 kB / 389.4 MB, free: 13.92 MB / 312.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.0001875/0.3425, allocations: 107.5 kB / 389.5 MB, free: 13.85 MB / 312.6 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.3436, allocations: 0.4884 MB / 390 MB, free: 13.71 MB / 312.6 MB Notification: Performance of simCode: created event and clocks part: time 4.121e-06/0.3437, allocations: 4.188 kB / 390 MB, free: 13.7 MB / 312.6 MB Notification: Performance of simCode: created simulation system equations: time 0.000574/0.3443, allocations: 339.5 kB / 390.3 MB, free: 13.57 MB / 312.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003581/0.3447, allocations: 11.75 kB / 390.3 MB, free: 13.57 MB / 312.6 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.3461, allocations: 0.5275 MB / 390.9 MB, free: 13.27 MB / 312.6 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.3465, allocations: 0.8082 MB / 391.7 MB, free: 12.52 MB / 312.6 MB Notification: Performance of SimCode: time 2.026e-06/0.3466, allocations: 0 / 391.7 MB, free: 12.52 MB / 312.6 MB Notification: Performance of Templates: time 0.04858/0.3952, allocations: 6.842 MB / 398.5 MB, free: 9.074 MB / 312.6 MB "Error: Could not read variable gear.Backward in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Backward from file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Forward in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Forward from file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Free in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Free from file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Stuck in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Stuck from file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.Unknown in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.Unknown from file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.der(w_a) in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.der(w_a) from file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitAngularAcceleration in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitAngularAcceleration from file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat failed! Error: Could not read variable gear.unitTorque in file Modelica_3.2.2__O2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat. Warning: Get data of variable gear.unitTorque from file Modelica_3.2.2__O2_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