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.789/1.789, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.06e-05, allocations: 7.938 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07862/0.07868, allocations: 44.5 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3233/0.402, allocations: 74.74 MB / 374.6 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.4023, allocations: 72.17 kB / 374.7 MB, free: 22.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02518/0.4275, allocations: 6.961 MB / 381.6 MB, free: 21.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.905e-06/0.4275, allocations: 0 / 381.6 MB, free: 21.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.522e-05/0.4276, allocations: 8.312 kB / 381.6 MB, free: 21.59 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.001136/0.4287, allocations: 0.7239 MB / 382.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.4288, allocations: 10.16 kB / 382.4 MB, free: 21.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.4289, allocations: 51.69 kB / 382.4 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004445/0.4294, allocations: 319.6 kB / 382.7 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/0.4294, allocations: 27.47 kB / 382.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.626e-05/0.4295, allocations: 38.38 kB / 382.8 MB, free: 20.79 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008188/0.4304, allocations: 398.4 kB / 383.2 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.4304, allocations: 3.938 kB / 383.2 MB, free: 20.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/0.4305, allocations: 22.91 kB / 383.2 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.4305, allocations: 13.88 kB / 383.2 MB, free: 20.7 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006971/0.4312, allocations: 276.5 kB / 383.5 MB, free: 20.69 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.4338, allocations: 1.644 MB / 385.1 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006285/0.4345, allocations: 322.8 kB / 385.5 MB, free: 19.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003526/0.4349, allocations: 180.1 kB / 385.6 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.4349, allocations: 4.406 kB / 385.6 MB, free: 19.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004768/0.4354, allocations: 272.1 kB / 385.9 MB, free: 19.65 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 4.809e-06/0.4354, allocations: 0 / 385.9 MB, free: 19.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.00118/0.4366, allocations: 486.7 kB / 386.4 MB, free: 19.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.685e-05/0.4367, allocations: 220.2 kB / 386.6 MB, free: 19.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003888/0.4371, allocations: 283.2 kB / 386.9 MB, free: 19.16 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.453e-05/0.4372, allocations: 35.67 kB / 386.9 MB, free: 19.13 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.4373, allocations: 265.1 kB / 387.2 MB, free: 18.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.905e-05/0.4374, allocations: 112.1 kB / 387.3 MB, free: 18.87 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.4375, allocations: 10.53 kB / 387.3 MB, free: 18.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.945e-05/0.4375, allocations: 329.8 kB / 387.6 MB, free: 18.55 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.4378, allocations: 110.5 kB / 387.7 MB, free: 18.55 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003168/0.4382, allocations: 179 kB / 387.9 MB, free: 18.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.4385, allocations: 166.4 kB / 388 MB, free: 18.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.123e-06/0.4385, allocations: 1.562 kB / 388 MB, free: 18.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009453/0.4394, allocations: 488 kB / 388.5 MB, free: 18.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.999e-05/0.4395, allocations: 59.53 kB / 388.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.285e-06/0.4395, allocations: 2.531 kB / 388.6 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006203/0.4401, allocations: 157.1 kB / 388.7 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/0.4404, allocations: 34.34 kB / 388.8 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005551/0.446, allocations: 5.944 MB / 394.7 MB, free: 28.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004734/0.4465, allocations: 53.36 kB / 394.8 MB, free: 28.74 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.4465, allocations: 16.39 kB / 394.8 MB, free: 28.74 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.0002087/0.4468, allocations: 169.8 kB / 395 MB, free: 28.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.497e-05/0.4469, allocations: 40.75 kB / 395 MB, free: 28.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.447, allocations: 47.75 kB / 395 MB, free: 28.56 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.185e-06/0.447, allocations: 4.688 kB / 395 MB, free: 28.56 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.046e-06/0.447, allocations: 3.953 kB / 395 MB, free: 28.56 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.544e-06/0.447, allocations: 0 / 395 MB, free: 28.56 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005668/0.4476, allocations: 442.9 kB / 395.5 MB, free: 28.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.724e-06/0.4476, allocations: 0 / 395.5 MB, free: 28.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.4478, allocations: 33.69 kB / 395.5 MB, free: 28.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005308/0.4484, allocations: 148.6 kB / 395.7 MB, free: 28.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.4484, allocations: 7.844 kB / 395.7 MB, free: 28.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005716/0.4541, allocations: 5.783 MB / 401.4 MB, free: 23.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.823e-06/0.4542, allocations: 3.938 kB / 401.4 MB, free: 23.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.4553, allocations: 0.5195 MB / 402 MB, free: 22.9 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002371/0.4556, allocations: 152.1 kB / 402.1 MB, free: 22.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.27e-05/0.4557, allocations: 15.7 kB / 402.1 MB, free: 22.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003355/0.456, allocations: 37.34 kB / 402.2 MB, free: 22.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.4562, allocations: 54.78 kB / 402.2 MB, free: 22.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.4562, allocations: 11.56 kB / 402.2 MB, free: 22.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003038/0.4566, allocations: 231.1 kB / 402.5 MB, free: 22.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.27e-07/0.4566, allocations: 0 / 402.5 MB, free: 22.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000964/0.4576, allocations: 164.2 kB / 402.6 MB, free: 22.67 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.0002421/0.4578, allocations: 137.1 kB / 402.8 MB, free: 22.58 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001172/0.459, allocations: 0.8602 MB / 403.6 MB, free: 22.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.694e-06/0.459, allocations: 0 / 403.6 MB, free: 22.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007893/0.4598, allocations: 0.6714 MB / 404.3 MB, free: 21.54 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004739/0.4603, allocations: 72.67 kB / 404.4 MB, free: 21.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.4619, allocations: 0.5961 MB / 405 MB, free: 21.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.4625, allocations: 0.8254 MB / 405.8 MB, free: 20.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.334e-05/0.4625, allocations: 30.06 kB / 405.8 MB, free: 20.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.408e-06/0.4626, allocations: 3.938 kB / 405.8 MB, free: 20.57 MB / 330.7 MB Notification: Performance of Templates: time 0.01378/0.4764, allocations: 10.99 MB / 416.8 MB, free: 19.16 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