Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 1.754/1.754, allocations: 194.9 MB / 208.5 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.736e-05/2.751e-05, allocations: 4 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 44.5 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3498/0.461, allocations: 74.79 MB / 374.6 MB, free: 22.06 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.4613, allocations: 67.53 kB / 374.7 MB, free: 22.06 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01823/0.4795, allocations: 4.581 MB / 379.3 MB, free: 21.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.427e-06/0.4796, allocations: 0 / 379.3 MB, free: 21.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.4796, allocations: 10.55 kB / 379.3 MB, free: 21.42 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001239/0.4808, allocations: 0.5967 MB / 379.9 MB, free: 20.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.4809, allocations: 9.25 kB / 379.9 MB, free: 20.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.34e-05/0.481, allocations: 33.38 kB / 379.9 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.4813, allocations: 264.1 kB / 380.2 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.4814, allocations: 15.19 kB / 380.2 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.123e-05/0.4815, allocations: 25.45 kB / 380.2 MB, free: 20.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005477/0.482, allocations: 236.2 kB / 380.5 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.4821, allocations: 0 / 380.5 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.4821, allocations: 9.062 kB / 380.5 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.065e-06/0.4821, allocations: 4.75 kB / 380.5 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004841/0.4826, allocations: 179.6 kB / 380.7 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.4849, allocations: 1.012 MB / 381.7 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003084/0.488, allocations: 483.7 kB / 382.1 MB, free: 20.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004173/0.4884, allocations: 162 kB / 382.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.223e-05/0.4885, allocations: 2.906 kB / 382.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.4889, allocations: 177.7 kB / 382.5 MB, free: 20.06 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.075e-06/0.4889, allocations: 0 / 382.5 MB, free: 20.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005803/0.4895, allocations: 209.1 kB / 382.7 MB, free: 20.01 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.4895, allocations: 120.1 kB / 382.8 MB, free: 19.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.4898, allocations: 204.2 kB / 383 MB, free: 19.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.784e-05/0.4899, allocations: 32.08 kB / 383 MB, free: 19.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.49, allocations: 214.3 kB / 383.2 MB, free: 19.58 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.641e-05/0.49, allocations: 68.92 kB / 383.3 MB, free: 19.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.4901, allocations: 4.875 kB / 383.3 MB, free: 19.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.37e-05/0.4901, allocations: 320.5 kB / 383.6 MB, free: 19.22 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.4904, allocations: 75.41 kB / 383.7 MB, free: 19.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002421/0.4906, allocations: 121.5 kB / 383.8 MB, free: 19.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.4909, allocations: 100.7 kB / 383.9 MB, free: 19.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4909, allocations: 0 / 383.9 MB, free: 19.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000634/0.4916, allocations: 273.9 kB / 384.2 MB, free: 19.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.4916, allocations: 39.08 kB / 384.2 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.4916, allocations: 0.875 kB / 384.2 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.4917, allocations: 5.938 kB / 384.2 MB, free: 19.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/0.4943, allocations: 334.4 kB / 384.6 MB, free: 19.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004313/0.4986, allocations: 3.045 MB / 387.6 MB, free: 16.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005084/0.4992, allocations: 63.5 kB / 387.7 MB, free: 16.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.308e-05/0.4992, allocations: 12.47 kB / 387.7 MB, free: 16.25 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001117/0.4994, allocations: 121.6 kB / 387.8 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.04e-05/0.4994, allocations: 24.64 kB / 387.8 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.097e-05/0.4995, allocations: 27.38 kB / 387.8 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.93e-06/0.4995, allocations: 2.75 kB / 387.8 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4996, allocations: 5.312 kB / 387.8 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.249e-06/0.4996, allocations: 1.875 kB / 387.9 MB, free: 16.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.5015, allocations: 0.7914 MB / 388.6 MB, free: 31.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.278e-06/0.5015, allocations: 5.781 kB / 388.6 MB, free: 31.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002581/0.5041, allocations: 323.6 kB / 389 MB, free: 31.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.5041, allocations: 0 / 389 MB, free: 31.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.5042, allocations: 13.48 kB / 389 MB, free: 31.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004998/0.5092, allocations: 3.055 MB / 392 MB, free: 28.92 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.85e-06/0.5092, allocations: 1.688 kB / 392 MB, free: 28.92 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008385/0.51, allocations: 454.5 kB / 392.5 MB, free: 28.72 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.317e-05/0.5102, allocations: 101.6 kB / 392.6 MB, free: 28.61 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.312e-05/0.5102, allocations: 6.906 kB / 392.6 MB, free: 28.61 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/0.5107, allocations: 54.42 kB / 392.6 MB, free: 28.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.5109, allocations: 31.16 kB / 392.7 MB, free: 28.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/0.5109, allocations: 8.703 kB / 392.7 MB, free: 28.6 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002115/0.5111, allocations: 166.4 kB / 392.8 MB, free: 28.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.48e-07/0.5111, allocations: 0 / 392.8 MB, free: 28.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006369/0.5118, allocations: 84.47 kB / 392.9 MB, free: 28.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001985/0.512, allocations: 121 kB / 393 MB, free: 28.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.5147, allocations: 491.9 kB / 393.5 MB, free: 28.33 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5147, allocations: 4.125 kB / 393.5 MB, free: 28.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002556/0.5173, allocations: 334.3 kB / 393.8 MB, free: 28.31 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003877/0.5177, allocations: 35.12 kB / 393.9 MB, free: 28.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.5191, allocations: 459.9 kB / 394.3 MB, free: 28.08 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.5195, allocations: 0.7626 MB / 395.1 MB, free: 27.38 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.5197, allocations: 21.08 kB / 395.1 MB, free: 27.37 MB / 330.7 MB Notification: Performance of SimCode: time 1.477e-06/0.5197, allocations: 0 / 395.1 MB, free: 27.37 MB / 330.7 MB Notification: Performance of Templates: time 0.007493/0.5272, allocations: 5.133 MB / 400.2 MB, free: 27.13 MB / 330.7 MB "Error: Could not read variable pulseCurrent.signalSource.T_start in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_start from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.T_width in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_width from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.count in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.count from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Roff in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Roff from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Ron in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Ron from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Voff in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Voff from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Von in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Von from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! " Variables in the reference:time,inductor.i,thyristor_v4_1.vControl Variables in the result:ground.p.i,ground.p.v,inductor.L,der(inductor.i),inductor.i,inductor.n.i,inductor.n.v,inductor.p.i,inductor.p.v,inductor.v,pulseCurrent.I,pulseCurrent.i,pulseCurrent.n.i,pulseCurrent.n.v,pulseCurrent.offset,pulseCurrent.p.i,pulseCurrent.p.v,pulseCurrent.period,pulseCurrent.signalSource.amplitude,pulseCurrent.signalSource.nperiod,pulseCurrent.signalSource.offset,pulseCurrent.signalSource.period,pulseCurrent.signalSource.startTime,pulseCurrent.signalSource.width,pulseCurrent.signalSource.y,pulseCurrent.startTime,pulseCurrent.v,pulseCurrent.width,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.v,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,thyristor_v4_1.Anode.i,thyristor_v4_1.Anode.v,thyristor_v4_1.Cathode.i,thyristor_v4_1.Cathode.v,thyristor_v4_1.Gate.i,thyristor_v4_1.Gate.v,thyristor_v4_1.IDRM,thyristor_v4_1.IGT,thyristor_v4_1.IH,thyristor_v4_1.ITM,thyristor_v4_1.LossPower,thyristor_v4_1.Nbv,thyristor_v4_1.T,thyristor_v4_1.TOFF,thyristor_v4_1.TON,thyristor_v4_1.T_heatPort,thyristor_v4_1.VDRM,thyristor_v4_1.VGT,thyristor_v4_1.VRRM,thyristor_v4_1.VTM,thyristor_v4_1.Vt,der(thyristor_v4_1.vControl),thyristor_v4_1.iGK,thyristor_v4_1.vAK,thyristor_v4_1.vConmain,thyristor_v4_1.vContot,thyristor_v4_1.vControl,thyristor_v4_1.vGK,time