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.84/1.84, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.878e-05/3.94e-05, allocations: 4 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1281, allocations: 44.5 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3233/0.4514, allocations: 74.73 MB / 374.6 MB, free: 22.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.4517, allocations: 69.27 kB / 374.6 MB, free: 22.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02548/0.4772, allocations: 6.968 MB / 381.6 MB, free: 21.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.92e-06/0.4772, allocations: 0 / 381.6 MB, free: 21.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.684e-05/0.4772, allocations: 9.594 kB / 381.6 MB, free: 21.54 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.00112/0.4784, allocations: 0.7213 MB / 382.3 MB, free: 21.01 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.4784, allocations: 8.719 kB / 382.3 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.4786, allocations: 55.75 kB / 382.4 MB, free: 20.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/0.479, allocations: 312.3 kB / 382.7 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.479, allocations: 29.94 kB / 382.7 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.456e-05/0.4791, allocations: 38.66 kB / 382.8 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000802/0.4799, allocations: 409 kB / 383.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.48, allocations: 3.938 kB / 383.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.351e-05/0.48, allocations: 15.78 kB / 383.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.4801, allocations: 8.562 kB / 383.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000704/0.4808, allocations: 283.6 kB / 383.5 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.4834, allocations: 1.648 MB / 385.1 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006228/0.4841, allocations: 322.6 kB / 385.4 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003502/0.4844, allocations: 179.9 kB / 385.6 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.4845, allocations: 4.406 kB / 385.6 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004635/0.4849, allocations: 273.6 kB / 385.9 MB, free: 19.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 3.518e-06/0.485, allocations: 0 / 385.9 MB, free: 19.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.001152/0.4861, allocations: 487.2 kB / 386.4 MB, free: 19.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.4862, allocations: 219 kB / 386.6 MB, free: 19.22 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.4866, allocations: 281.7 kB / 386.8 MB, free: 19.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.509e-05/0.4867, allocations: 35.2 kB / 386.9 MB, free: 19.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001413/0.4868, allocations: 264.2 kB / 387.1 MB, free: 18.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.4869, allocations: 116.5 kB / 387.3 MB, free: 18.82 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.487, allocations: 11.62 kB / 387.3 MB, free: 18.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.343e-05/0.4871, allocations: 331.5 kB / 387.6 MB, free: 18.5 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.4873, allocations: 113.4 kB / 387.7 MB, free: 18.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003214/0.4877, allocations: 178.1 kB / 387.9 MB, free: 18.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.488, allocations: 168 kB / 388 MB, free: 18.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.638e-06/0.488, allocations: 0 / 388 MB, free: 18.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009641/0.489, allocations: 491.9 kB / 388.5 MB, free: 18.22 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.172e-05/0.489, allocations: 60.05 kB / 388.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.99e-06/0.4891, allocations: 0 / 388.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006261/0.4897, allocations: 157.8 kB / 388.7 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.4899, allocations: 42.39 kB / 388.8 MB, free: 18.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005545/0.4955, allocations: 5.95 MB / 394.7 MB, free: 28.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004858/0.496, allocations: 57.84 kB / 394.8 MB, free: 28.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.364e-05/0.4961, allocations: 19.22 kB / 394.8 MB, free: 28.68 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.0002073/0.4963, allocations: 161.7 kB / 395 MB, free: 28.53 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.817e-05/0.4964, allocations: 38.72 kB / 395 MB, free: 28.51 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.4965, allocations: 48.61 kB / 395 MB, free: 28.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.715e-06/0.4965, allocations: 3.875 kB / 395 MB, free: 28.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4966, allocations: 7.891 kB / 395 MB, free: 28.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.714e-06/0.4966, allocations: 4 kB / 395.1 MB, free: 28.49 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005536/0.4971, allocations: 445.5 kB / 395.5 MB, free: 28.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.4972, allocations: 0 / 395.5 MB, free: 28.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.4973, allocations: 19.16 kB / 395.5 MB, free: 28.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005787/0.4979, allocations: 152.4 kB / 395.7 MB, free: 28.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.871e-05/0.498, allocations: 6.688 kB / 395.7 MB, free: 28.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005737/0.5037, allocations: 5.787 MB / 401.4 MB, free: 23.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.5038, allocations: 304 / 401.4 MB, free: 23.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.505, allocations: 0.5332 MB / 402 MB, free: 22.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.5052, allocations: 144.7 kB / 402.1 MB, free: 22.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.5053, allocations: 11.25 kB / 402.1 MB, free: 22.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003567/0.5057, allocations: 37.34 kB / 402.2 MB, free: 22.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.5059, allocations: 61.55 kB / 402.2 MB, free: 22.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.524e-05/0.5059, allocations: 11.06 kB / 402.2 MB, free: 22.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003048/0.5062, allocations: 224.3 kB / 402.5 MB, free: 22.62 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.5063, allocations: 0 / 402.5 MB, free: 22.62 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009717/0.5072, allocations: 166.8 kB / 402.6 MB, free: 22.61 MB / 330.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.0002483/0.5075, allocations: 139.3 kB / 402.8 MB, free: 22.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001272/0.5088, allocations: 0.8855 MB / 403.6 MB, free: 21.92 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.96e-06/0.5088, allocations: 0 / 403.6 MB, free: 21.92 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008479/0.5097, allocations: 0.6979 MB / 404.3 MB, free: 21.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005074/0.5102, allocations: 76.27 kB / 404.4 MB, free: 21.39 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001636/0.5119, allocations: 0.5964 MB / 405 MB, free: 21.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004965/0.5124, allocations: 0.8311 MB / 405.8 MB, free: 20.46 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.226e-05/0.5125, allocations: 26.55 kB / 405.9 MB, free: 20.45 MB / 330.7 MB Notification: Performance of SimCode: time 2.052e-06/0.5125, allocations: 0 / 405.9 MB, free: 20.45 MB / 330.7 MB Notification: Performance of Templates: time 0.01393/0.5264, allocations: 10.98 MB / 416.9 MB, free: 19.05 MB / 330.7 MB "Error: Could not read variable IdealGTOThyristor1.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor1.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealGTOThyristor2.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor2.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor1.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor1.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor2.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor2.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! 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! Error: Could not read variable booleanStep1.index in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.index from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.n in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.n from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.nextTime in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.nextTime 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.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