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.853/1.853, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.92e-05/2.939e-05, allocations: 2.406 kB / 255.3 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07988/0.07993, allocations: 44.5 MB / 299.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3354/0.4154, allocations: 74.77 MB / 374.6 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4156, allocations: 67.12 kB / 374.7 MB, free: 22.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01921/0.4349, allocations: 4.588 MB / 379.3 MB, free: 21.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.84e-06/0.4349, allocations: 1.156 kB / 379.3 MB, free: 21.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.702e-05/0.435, allocations: 9 kB / 379.3 MB, free: 21.9 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.001269/0.4362, allocations: 0.5978 MB / 379.9 MB, free: 21.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.4363, allocations: 9.75 kB / 379.9 MB, free: 21.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.273e-05/0.4364, allocations: 32.11 kB / 379.9 MB, free: 21.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.4368, allocations: 264 kB / 380.2 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.49e-05/0.4368, allocations: 19.69 kB / 380.2 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.358e-05/0.4369, allocations: 17.41 kB / 380.2 MB, free: 21.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005491/0.4374, allocations: 245.2 kB / 380.4 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.4375, allocations: 0 / 380.4 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.971e-05/0.4375, allocations: 6.031 kB / 380.5 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.4376, allocations: 4 kB / 380.5 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004909/0.4381, allocations: 177.6 kB / 380.6 MB, free: 21.15 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.4404, allocations: 1.02 MB / 381.6 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003113/0.4436, allocations: 487.8 kB / 382.1 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004606/0.4441, allocations: 160.2 kB / 382.3 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.4441, allocations: 3.969 kB / 382.3 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003834/0.4445, allocations: 171.4 kB / 382.5 MB, free: 20.54 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.524e-06/0.4445, allocations: 1.438 kB / 382.5 MB, free: 20.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006194/0.4452, allocations: 214.1 kB / 382.7 MB, free: 20.49 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.4452, allocations: 117.3 kB / 382.8 MB, free: 20.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002723/0.4455, allocations: 202.7 kB / 383 MB, free: 20.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.923e-05/0.4456, allocations: 31.17 kB / 383 MB, free: 20.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.265e-05/0.4457, allocations: 212 kB / 383.2 MB, free: 20.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.042e-05/0.4458, allocations: 72.45 kB / 383.3 MB, free: 20.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.405e-05/0.4458, allocations: 4.562 kB / 383.3 MB, free: 20.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.964e-05/0.4459, allocations: 321.5 kB / 383.6 MB, free: 19.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.4461, allocations: 78.62 kB / 383.7 MB, free: 19.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.4464, allocations: 122.2 kB / 383.8 MB, free: 19.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002264/0.4466, allocations: 102.4 kB / 383.9 MB, free: 19.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.262e-06/0.4466, allocations: 0 / 383.9 MB, free: 19.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006265/0.4473, allocations: 277.3 kB / 384.2 MB, free: 19.54 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.515e-05/0.4473, allocations: 32.61 kB / 384.2 MB, free: 19.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.78e-06/0.4473, allocations: 5.438 kB / 384.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.4474, allocations: 3 kB / 384.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002681/0.4501, allocations: 332.3 kB / 384.5 MB, free: 19.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004379/0.4545, allocations: 3.052 MB / 387.6 MB, free: 16.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005428/0.455, allocations: 63.73 kB / 387.6 MB, free: 16.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.876e-05/0.4551, allocations: 8.281 kB / 387.7 MB, free: 16.72 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.0001162/0.4552, allocations: 128 kB / 387.8 MB, free: 16.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.083e-05/0.4553, allocations: 25.22 kB / 387.8 MB, free: 16.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.621e-05/0.4554, allocations: 29.39 kB / 387.8 MB, free: 16.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.5e-06/0.4554, allocations: 5.656 kB / 387.8 MB, free: 16.58 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.393e-06/0.4554, allocations: 1.812 kB / 387.8 MB, free: 16.58 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.408e-06/0.4554, allocations: 1.734 kB / 387.8 MB, free: 16.58 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.457, allocations: 0.7919 MB / 388.6 MB, free: 16.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.313e-06/0.457, allocations: 1.375 kB / 388.6 MB, free: 16.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003084/0.4601, allocations: 323.8 kB / 389 MB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.884e-06/0.4601, allocations: 1.375 kB / 389 MB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/0.4602, allocations: 6.5 kB / 389 MB, free: 16.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005451/0.4656, allocations: 3.06 MB / 392 MB, free: 29.4 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.739e-06/0.4657, allocations: 9.234 kB / 392 MB, free: 29.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008638/0.4665, allocations: 457.7 kB / 392.5 MB, free: 29.19 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.848e-05/0.4667, allocations: 102 kB / 392.6 MB, free: 29.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.344e-05/0.4667, allocations: 6.719 kB / 392.6 MB, free: 29.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005001/0.4673, allocations: 56.06 kB / 392.6 MB, free: 29.08 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.4674, allocations: 24.5 kB / 392.7 MB, free: 29.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.4674, allocations: 8.672 kB / 392.7 MB, free: 29.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002328/0.4677, allocations: 166 kB / 392.8 MB, free: 29 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.653e-06/0.4677, allocations: 0 / 392.8 MB, free: 29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006691/0.4684, allocations: 88.16 kB / 392.9 MB, free: 28.98 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.0001956/0.4686, allocations: 129.1 kB / 393 MB, free: 28.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.4712, allocations: 487.3 kB / 393.5 MB, free: 28.8 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.156e-06/0.4713, allocations: 1.5 kB / 393.5 MB, free: 28.8 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002515/0.4738, allocations: 336.8 kB / 393.9 MB, free: 28.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.4743, allocations: 34.44 kB / 393.9 MB, free: 28.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001578/0.4759, allocations: 462.1 kB / 394.3 MB, free: 28.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.4764, allocations: 0.7616 MB / 395.1 MB, free: 27.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.4765, allocations: 22.34 kB / 395.1 MB, free: 27.84 MB / 330.7 MB Notification: Performance of SimCode: time 1.761e-06/0.4765, allocations: 0 / 395.1 MB, free: 27.84 MB / 330.7 MB Notification: Performance of Templates: time 0.007998/0.4846, allocations: 5.137 MB / 400.3 MB, free: 27.61 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