Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 1.575/1.575, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.308e-05, allocations: 11.98 kB / 225 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2195, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1153/0.3349, allocations: 69.67 MB / 333.4 MB, free: 4.098 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003945/0.3353, allocations: 67.97 kB / 333.5 MB, free: 4.031 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0491/0.3844, allocations: 6.949 MB / 340.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.516e-06/0.3845, allocations: 0 / 340.4 MB, free: 13.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.541e-05/0.3846, allocations: 12 kB / 340.5 MB, free: 13.04 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.002419/0.387, allocations: 0.7253 MB / 341.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.198e-05/0.3871, allocations: 8.031 kB / 341.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.3874, allocations: 55.34 kB / 341.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001/0.3884, allocations: 311.7 kB / 341.5 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.437e-05/0.3885, allocations: 28.78 kB / 341.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.3887, allocations: 39.94 kB / 341.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/0.3906, allocations: 403.9 kB / 342 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/0.3906, allocations: 0 / 342 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.3908, allocations: 20 kB / 342 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.758e-05/0.3908, allocations: 8 kB / 342 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.3923, allocations: 277.5 kB / 342.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006025/0.3984, allocations: 1.639 MB / 343.9 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.3998, allocations: 314.8 kB / 344.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008708/0.4007, allocations: 177.1 kB / 344.4 MB, free: 8.832 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.196e-05/0.4008, allocations: 4.281 kB / 344.4 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001184/0.4021, allocations: 285.2 kB / 344.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.433e-05/0.4021, allocations: 0 / 344.7 MB, free: 8.516 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.00245/0.4046, allocations: 486 kB / 345.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001531/0.4048, allocations: 217.6 kB / 345.4 MB, free: 7.754 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004911/0.4053, allocations: 291.5 kB / 345.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.424e-05/0.4053, allocations: 29.7 kB / 345.7 MB, free: 7.426 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002206/0.4056, allocations: 262.8 kB / 346 MB, free: 7.168 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.4057, allocations: 122.4 kB / 346.1 MB, free: 7.047 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.4058, allocations: 4 kB / 346.1 MB, free: 7.043 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.4059, allocations: 326.8 kB / 346.4 MB, free: 6.715 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.4063, allocations: 108.9 kB / 346.5 MB, free: 6.609 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003829/0.4067, allocations: 177.9 kB / 346.7 MB, free: 6.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.407, allocations: 169 kB / 346.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.856e-06/0.4071, allocations: 0 / 346.9 MB, free: 6.238 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001145/0.4082, allocations: 493.9 kB / 347.3 MB, free: 5.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.522e-05/0.4083, allocations: 63.41 kB / 347.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.114e-06/0.4083, allocations: 0 / 347.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007129/0.4091, allocations: 159.2 kB / 347.6 MB, free: 5.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.4093, allocations: 31.98 kB / 347.6 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007071/0.4164, allocations: 5.947 MB / 353.5 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005192/0.417, allocations: 59.75 kB / 353.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.83e-05/0.417, allocations: 12 kB / 353.6 MB, free: 14.89 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: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002357/0.4173, allocations: 168.3 kB / 353.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.4174, allocations: 43.53 kB / 353.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.4175, allocations: 44.19 kB / 353.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.4176, allocations: 4 kB / 353.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.383e-06/0.4176, allocations: 0 / 353.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.974e-06/0.4176, allocations: 0 / 353.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007115/0.4183, allocations: 457 kB / 354.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.989e-06/0.4183, allocations: 0 / 354.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.4185, allocations: 19.98 kB / 354.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007053/0.4192, allocations: 155.4 kB / 354.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.412e-05/0.4193, allocations: 11.98 kB / 354.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006998/0.4263, allocations: 5.777 MB / 360.3 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.144e-06/0.4264, allocations: 0 / 360.3 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.4278, allocations: 0.5205 MB / 360.8 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002731/0.4281, allocations: 152.5 kB / 360.9 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.578e-05/0.4282, allocations: 8 kB / 360.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.4286, allocations: 35.97 kB / 361 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001948/0.4288, allocations: 51.91 kB / 361 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.4289, allocations: 16.19 kB / 361 MB, free: 6.789 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003674/0.4292, allocations: 226.2 kB / 361.3 MB, free: 6.566 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.59e-07/0.4293, allocations: 0 / 361.3 MB, free: 6.566 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001064/0.4303, allocations: 167.8 kB / 361.4 MB, free: 6.402 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002834/0.4306, allocations: 129.8 kB / 361.6 MB, free: 6.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.4322, allocations: 0.8649 MB / 362.4 MB, free: 5.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.528e-06/0.4322, allocations: 0 / 362.4 MB, free: 5.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000973/0.4332, allocations: 0.678 MB / 363.1 MB, free: 4.609 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005802/0.4338, allocations: 84.98 kB / 363.2 MB, free: 4.527 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.4351, allocations: 0.5215 MB / 363.7 MB, free: 3.98 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005917/0.4357, allocations: 0.8356 MB / 364.5 MB, free: 3.121 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.695e-05/0.4358, allocations: 23.44 kB / 364.6 MB, free: 3.098 MB / 314.7 MB Notification: Performance of SimCode: time 1.637e-06/0.4358, allocations: 0 / 364.6 MB, free: 3.098 MB / 314.7 MB Notification: Performance of Templates: time 0.1944/0.6303, allocations: 10.96 MB / 375.5 MB, free: 90.44 MB / 314.7 MB "Error: Could not read variable IdealGTOThyristor1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealGTOThyristor2.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor2.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor2.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor2.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable SineVoltage1.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable SineVoltage1.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable _derdummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.index in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.index from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.n in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.n from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.nextTime in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.nextTime from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! " Variables in the reference:time,IdealThyristor1.off,IdealThyristor2.off,booleanStep1.y Variables in the result:Ground1.p.i,Ground1.p.v,IdealGTOThyristor1.Goff,IdealGTOThyristor1.LossPower,IdealGTOThyristor1.Ron,IdealGTOThyristor1.T,IdealGTOThyristor1.T_heatPort,IdealGTOThyristor1.Vknee,IdealGTOThyristor1.fire,IdealGTOThyristor1.i,IdealGTOThyristor1.n.i,IdealGTOThyristor1.n.v,IdealGTOThyristor1.off,IdealGTOThyristor1.p.i,IdealGTOThyristor1.p.v,IdealGTOThyristor1.v,IdealGTOThyristor2.Goff,IdealGTOThyristor2.LossPower,IdealGTOThyristor2.Ron,IdealGTOThyristor2.T,IdealGTOThyristor2.T_heatPort,IdealGTOThyristor2.Vknee,IdealGTOThyristor2.fire,IdealGTOThyristor2.i,IdealGTOThyristor2.n.i,IdealGTOThyristor2.n.v,IdealGTOThyristor2.off,IdealGTOThyristor2.p.i,IdealGTOThyristor2.p.v,IdealGTOThyristor2.v,IdealThyristor1.Goff,IdealThyristor1.LossPower,IdealThyristor1.Ron,IdealThyristor1.T,IdealThyristor1.T_heatPort,IdealThyristor1.Vknee,IdealThyristor1.fire,IdealThyristor1.i,IdealThyristor1.n.i,IdealThyristor1.n.v,IdealThyristor1.off,IdealThyristor1.p.i,IdealThyristor1.p.v,IdealThyristor1.v,IdealThyristor2.Goff,IdealThyristor2.LossPower,IdealThyristor2.Ron,IdealThyristor2.T,IdealThyristor2.T_heatPort,IdealThyristor2.Vknee,IdealThyristor2.fire,IdealThyristor2.i,IdealThyristor2.n.i,IdealThyristor2.n.v,IdealThyristor2.off,IdealThyristor2.p.i,IdealThyristor2.p.v,IdealThyristor2.v,R1.LossPower,R1.R,R1.R_actual,R1.T,R1.T_heatPort,R1.T_ref,R1.alpha,R1.i,R1.n.i,R1.n.v,R1.p.i,R1.p.v,R1.v,R2.LossPower,R2.R,R2.R_actual,R2.T,R2.T_heatPort,R2.T_ref,R2.alpha,R2.i,R2.n.i,R2.n.v,R2.p.i,R2.p.v,R2.v,R3.LossPower,R3.R,R3.R_actual,R3.T,R3.T_heatPort,R3.T_ref,R3.alpha,R3.i,R3.n.i,R3.n.v,R3.p.i,R3.p.v,R3.v,R4.LossPower,R4.R,R4.R_actual,R4.T,R4.T_heatPort,R4.T_ref,R4.alpha,R4.i,R4.n.i,R4.n.v,R4.p.i,R4.p.v,R4.v,SineVoltage1.V,SineVoltage1.freqHz,SineVoltage1.i,SineVoltage1.n.i,SineVoltage1.n.v,SineVoltage1.offset,SineVoltage1.p.i,SineVoltage1.p.v,SineVoltage1.phase,SineVoltage1.signalSource.amplitude,SineVoltage1.signalSource.freqHz,SineVoltage1.signalSource.offset,SineVoltage1.signalSource.phase,SineVoltage1.signalSource.startTime,SineVoltage1.signalSource.y,SineVoltage1.startTime,SineVoltage1.v,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,booleanStep1.startValue,booleanStep1.table[1],booleanStep1.table[2],booleanStep1.table[3],booleanStep1.table[4],booleanStep1.table[5],booleanStep1.table[6],booleanStep1.y,time