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.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 1.944/1.944, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.348e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2507, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1157/0.3664, allocations: 74.08 MB / 368.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.3667, allocations: 71.89 kB / 368.3 MB, free: 7.836 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02714/0.3938, allocations: 6.893 MB / 375.1 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.08e-06/0.3939, allocations: 4 kB / 375.2 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.784e-05/0.3939, allocations: 8 kB / 375.2 MB, free: 0.8945 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001375/0.3953, allocations: 0.7219 MB / 375.9 MB, free: 120 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3954, allocations: 8.031 kB / 375.9 MB, free: 112 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.3955, allocations: 51.44 kB / 375.9 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.3961, allocations: 314.1 kB / 376.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.3962, allocations: 16 kB / 376.3 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.978e-05/0.3962, allocations: 24 kB / 376.3 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007288/0.397, allocations: 257.5 kB / 376.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008686/0.3979, allocations: 351.9 kB / 376.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.3979, allocations: 0 / 376.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.89e-05/0.398, allocations: 4 kB / 376.9 MB, free: 15.05 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.398, allocations: 12 kB / 376.9 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00471/0.4027, allocations: 1.562 MB / 378.5 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.4043, allocations: 310.7 kB / 378.8 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007326/0.405, allocations: 174.4 kB / 378.9 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.905e-05/0.4051, allocations: 4.234 kB / 378.9 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009533/0.4061, allocations: 253.9 kB / 379.2 MB, free: 12.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=38): time 1.035e-05/0.4061, allocations: 0 / 379.2 MB, free: 12.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.002348/0.4085, allocations: 424 kB / 379.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002408/0.4088, allocations: 217.6 kB / 379.8 MB, free: 11.92 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00071/0.4095, allocations: 249.2 kB / 380.1 MB, free: 11.67 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.313e-05/0.4096, allocations: 25.7 kB / 380.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003623/0.41, allocations: 270.7 kB / 380.3 MB, free: 11.37 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002296/0.4103, allocations: 106.4 kB / 380.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.4103, allocations: 7.938 kB / 380.5 MB, free: 11.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002728/0.4106, allocations: 330.8 kB / 380.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005583/0.4112, allocations: 100.9 kB / 380.9 MB, free: 10.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006872/0.4119, allocations: 161.9 kB / 381 MB, free: 10.65 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006349/0.4126, allocations: 112.7 kB / 381.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.26e-06/0.4126, allocations: 4 kB / 381.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001974/0.4146, allocations: 398.5 kB / 381.5 MB, free: 10.13 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.842e-05/0.4147, allocations: 57.44 kB / 381.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.4148, allocations: 4 kB / 381.6 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005156/0.42, allocations: 159.3 kB / 381.8 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004669/0.4205, allocations: 35.97 kB / 381.8 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0198/0.4403, allocations: 5.737 MB / 387.5 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008815/0.4412, allocations: 47.84 kB / 387.6 MB, free: 3.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.4414, allocations: 15.94 kB / 387.6 MB, free: 3.59 MB / 330.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.0003698/0.4418, allocations: 160.2 kB / 387.7 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.442, allocations: 39.61 kB / 387.8 MB, free: 3.383 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001901/0.4422, allocations: 44.3 kB / 387.8 MB, free: 3.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4422, allocations: 4 kB / 387.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.609e-06/0.4423, allocations: 0 / 387.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.4423, allocations: 0 / 387.8 MB, free: 3.336 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.4434, allocations: 381.7 kB / 388.2 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.219e-06/0.4435, allocations: 0 / 388.2 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.4438, allocations: 27.94 kB / 388.2 MB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009421/0.4532, allocations: 147.3 kB / 388.4 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.494e-05/0.4534, allocations: 4 kB / 388.4 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0232/0.4766, allocations: 5.567 MB / 393.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.287e-06/0.4766, allocations: 0 / 393.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.4791, allocations: 475.1 kB / 394.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000449/0.4795, allocations: 140.5 kB / 394.5 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/0.4797, allocations: 4.25 kB / 394.5 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006934/0.4804, allocations: 39.92 kB / 394.6 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/0.4808, allocations: 55.77 kB / 394.6 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.299e-05/0.4809, allocations: 12 kB / 394.7 MB, free: 11.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005377/0.4815, allocations: 196.6 kB / 394.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.174e-06/0.4815, allocations: 0 / 394.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002162/0.4837, allocations: 155.7 kB / 395 MB, free: 11.61 MB / 346.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.004051/0.4877, allocations: 131.1 kB / 395.1 MB, free: 11.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001506/0.4893, allocations: 0.8263 MB / 396 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.854e-06/0.4893, allocations: 0 / 396 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000993/0.4903, allocations: 0.6702 MB / 396.6 MB, free: 9.855 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004922/0.4908, allocations: 57.16 kB / 396.7 MB, free: 9.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.4927, allocations: 0.5742 MB / 397.3 MB, free: 9.191 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005895/0.4933, allocations: 0.8395 MB / 398.1 MB, free: 8.324 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.121e-05/0.4934, allocations: 19.44 kB / 398.1 MB, free: 8.305 MB / 346.7 MB Notification: Performance of SimCode: time 2.165e-06/0.4934, allocations: 0 / 398.1 MB, free: 8.305 MB / 346.7 MB Notification: Performance of Templates: time 0.01872/0.5121, allocations: 10.75 MB / 408.9 MB, free: 13.55 MB / 362.7 MB "Error: Could not read variable _derdummy in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.2_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.s,IdealGTOThyristor1.useHeatPort,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.s,IdealGTOThyristor2.useHeatPort,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.s,IdealThyristor1.useHeatPort,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.s,IdealThyristor2.useHeatPort,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.useHeatPort,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.useHeatPort,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.useHeatPort,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.useHeatPort,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,_D_whenCondition1,_D_whenCondition2,booleanPulse.Twidth,booleanPulse.period,booleanPulse.pulsStart,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,booleanStep1.index,booleanStep1.n,booleanStep1.nextTime,booleanStep1.startValue,booleanStep1.table[1],booleanStep1.table[2],booleanStep1.table[3],booleanStep1.table[4],booleanStep1.table[5],booleanStep1.table[6],booleanStep1.y,time