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.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 1.674/1.674, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.733e-05/3.755e-05, allocations: 4 kB / 225 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2093/0.2094, allocations: 38.79 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1059/0.3154, allocations: 69.76 MB / 333.5 MB, free: 4 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.3156, allocations: 63.97 kB / 333.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0202/0.3359, allocations: 4.646 MB / 338.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.203e-06/0.3359, allocations: 0 / 338.2 MB, free: 15.27 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.3359, allocations: 4 kB / 338.2 MB, free: 15.27 MB / 298.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.001516/0.3375, allocations: 0.6137 MB / 338.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3375, allocations: 8.031 kB / 338.9 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.3377, allocations: 31.62 kB / 338.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004336/0.3381, allocations: 255.7 kB / 339.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.3382, allocations: 20.42 kB / 339.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.68e-05/0.3382, allocations: 23.95 kB / 339.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006092/0.3389, allocations: 240.9 kB / 339.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.3389, allocations: 0 / 339.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.469e-05/0.339, allocations: 12 kB / 339.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.129e-06/0.339, allocations: 4 kB / 339.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005082/0.3395, allocations: 168.8 kB / 339.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002587/0.3421, allocations: 1.027 MB / 340.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003185/0.3453, allocations: 486.4 kB / 341.1 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004648/0.3458, allocations: 148.8 kB / 341.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.544e-05/0.3458, allocations: 8 kB / 341.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004445/0.3463, allocations: 171.5 kB / 341.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 3.47e-06/0.3463, allocations: 0 / 341.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006623/0.347, allocations: 217.3 kB / 341.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.3471, allocations: 114.7 kB / 341.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.3474, allocations: 209.1 kB / 342 MB, free: 11.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.117e-05/0.3475, allocations: 33.69 kB / 342 MB, free: 11.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.3477, allocations: 210.6 kB / 342.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.406e-05/0.3478, allocations: 71 kB / 342.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.964e-05/0.3478, allocations: 4 kB / 342.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.348, allocations: 322.8 kB / 342.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.3483, allocations: 76.45 kB / 342.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002736/0.3486, allocations: 120.1 kB / 342.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000281/0.3489, allocations: 97.69 kB / 342.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3489, allocations: 0 / 342.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000703/0.3496, allocations: 267.1 kB / 343.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.697e-05/0.3496, allocations: 33.64 kB / 343.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.3497, allocations: 4 kB / 343.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3497, allocations: 0 / 343.2 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002773/0.3525, allocations: 339.7 kB / 343.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005565/0.3581, allocations: 3.056 MB / 346.6 MB, free: 6.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005621/0.3587, allocations: 59.77 kB / 346.6 MB, free: 6.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.891e-05/0.3587, allocations: 15.98 kB / 346.6 MB, free: 6.316 MB / 298.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.0001634/0.3589, allocations: 128.2 kB / 346.8 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.359, allocations: 27.67 kB / 346.8 MB, free: 6.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.664e-05/0.3591, allocations: 25.95 kB / 346.8 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.051e-06/0.3591, allocations: 4 kB / 346.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.398e-06/0.3591, allocations: 0 / 346.8 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.3591, allocations: 3.984 kB / 346.8 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.3609, allocations: 0.7923 MB / 347.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3609, allocations: 0 / 347.6 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/0.3638, allocations: 335.7 kB / 347.9 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.851e-06/0.3638, allocations: 0 / 347.9 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.106e-05/0.3638, allocations: 8 kB / 347.9 MB, free: 4.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005406/0.3693, allocations: 3.045 MB / 351 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.322e-06/0.3693, allocations: 0 / 351 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.3703, allocations: 448.9 kB / 351.4 MB, free: 1.156 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001942/0.3705, allocations: 132.8 kB / 351.6 MB, free: 1.008 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.025e-05/0.3706, allocations: 7.953 kB / 351.6 MB, free: 1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005049/0.3711, allocations: 55.95 kB / 351.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.3713, allocations: 35.89 kB / 351.7 MB, free: 0.9102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.618e-05/0.3713, allocations: 8 kB / 351.7 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002397/0.3716, allocations: 165.4 kB / 351.8 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.209e-06/0.3716, allocations: 0 / 351.8 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006695/0.3723, allocations: 87.78 kB / 351.9 MB, free: 0.6523 MB / 298.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.0002094/0.3725, allocations: 123.1 kB / 352 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.3752, allocations: 479.3 kB / 352.5 MB, free: 44 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.121e-06/0.3753, allocations: 0 / 352.5 MB, free: 44 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00237/0.3776, allocations: 336 kB / 352.8 MB, free: 15.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004567/0.3781, allocations: 40.36 kB / 352.9 MB, free: 15.67 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.3799, allocations: 457.5 kB / 353.3 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004792/0.3804, allocations: 0.7558 MB / 354.1 MB, free: 14.41 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.3805, allocations: 23.44 kB / 354.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of SimCode: time 1.713e-06/0.3805, allocations: 0 / 354.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Templates: time 0.00981/0.3903, allocations: 5.138 MB / 359.2 MB, free: 9.25 MB / 314.7 MB "Error: Could not read variable pulseCurrent.signalSource.T_start in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_start from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.T_width in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_width from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.count in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.count from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Roff in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Roff from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Ron in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Ron from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Voff in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Voff from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Von in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Von from file Modelica_3.2.1_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