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.897/1.897, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.813e-05/2.826e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2826, allocations: 44.49 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.4005, allocations: 74.12 MB / 368.2 MB, free: 7.879 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.4008, allocations: 67.91 kB / 368.3 MB, free: 7.812 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01938/0.4202, allocations: 4.548 MB / 372.8 MB, free: 3.246 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.139e-06/0.4202, allocations: 0 / 372.8 MB, free: 3.246 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.4203, allocations: 4 kB / 372.8 MB, free: 3.242 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.001383/0.4217, allocations: 0.602 MB / 373.4 MB, free: 2.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.4217, allocations: 8.031 kB / 373.5 MB, free: 2.582 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.597e-05/0.4218, allocations: 27.72 kB / 373.5 MB, free: 2.555 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.4223, allocations: 267.3 kB / 373.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.4223, allocations: 8 kB / 373.7 MB, free: 2.242 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.4224, allocations: 12 kB / 373.8 MB, free: 2.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005061/0.4229, allocations: 168.8 kB / 373.9 MB, free: 2.066 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.4234, allocations: 213 kB / 374.1 MB, free: 1.844 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.4235, allocations: 0 / 374.1 MB, free: 1.844 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.4235, allocations: 0 / 374.1 MB, free: 1.844 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.4235, allocations: 11.98 kB / 374.1 MB, free: 1.832 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.426, allocations: 0.9659 MB / 375.1 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003177/0.4292, allocations: 474.3 kB / 375.6 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004334/0.4297, allocations: 152.3 kB / 375.7 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.4297, allocations: 7.953 kB / 375.7 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003925/0.4301, allocations: 163.2 kB / 375.9 MB, free: 0 / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.404e-06/0.4302, allocations: 0 / 375.9 MB, free: 0 / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.000647/0.4308, allocations: 213.2 kB / 376.1 MB, free: 15.79 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/0.4309, allocations: 106.8 kB / 376.2 MB, free: 15.66 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002778/0.4312, allocations: 188 kB / 376.4 MB, free: 15.47 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.4313, allocations: 25.7 kB / 376.4 MB, free: 15.44 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.4314, allocations: 214.8 kB / 376.6 MB, free: 15.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.799e-05/0.4315, allocations: 74.98 kB / 376.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.203e-05/0.4316, allocations: 0 / 376.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.4318, allocations: 318.8 kB / 377 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.432, allocations: 76.47 kB / 377.1 MB, free: 14.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.4323, allocations: 104.1 kB / 377.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002157/0.4325, allocations: 79.88 kB / 377.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.053e-06/0.4325, allocations: 4 kB / 377.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006126/0.4331, allocations: 233.3 kB / 377.5 MB, free: 14.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.769e-05/0.4332, allocations: 35.73 kB / 377.5 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.5e-06/0.4332, allocations: 0 / 377.5 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.4332, allocations: 7.953 kB / 377.5 MB, free: 14.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002686/0.4359, allocations: 327.7 kB / 377.9 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005305/0.4413, allocations: 2.954 MB / 380.8 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005453/0.4418, allocations: 63.97 kB / 380.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.343e-05/0.4419, allocations: 8 kB / 380.9 MB, free: 10.71 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: 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.0001499/0.4421, allocations: 112.7 kB / 381 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.855e-05/0.4421, allocations: 27.67 kB / 381 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.347e-05/0.4422, allocations: 37.89 kB / 381.1 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.812e-06/0.4423, allocations: 0 / 381.1 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.221e-06/0.4423, allocations: 0 / 381.1 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.753e-06/0.4423, allocations: 4 kB / 381.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.4439, allocations: 0.7329 MB / 381.8 MB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.444, allocations: 3.953 kB / 381.8 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00266/0.4466, allocations: 323.8 kB / 382.1 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.882e-06/0.4467, allocations: 0 / 382.1 MB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.74e-05/0.4467, allocations: 7.984 kB / 382.1 MB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005267/0.452, allocations: 2.969 MB / 385.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.896e-06/0.452, allocations: 0 / 385.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009158/0.453, allocations: 443.1 kB / 385.5 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.4531, allocations: 104.8 kB / 385.6 MB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.4532, allocations: 0 / 385.6 MB, free: 5.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004907/0.4537, allocations: 52.02 kB / 385.7 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.4538, allocations: 35.91 kB / 385.7 MB, free: 5.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.042e-05/0.4538, allocations: 4 kB / 385.7 MB, free: 5.543 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000208/0.4541, allocations: 156.5 kB / 385.9 MB, free: 5.391 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.48e-07/0.4541, allocations: 0 / 385.9 MB, free: 5.391 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006548/0.4547, allocations: 79.84 kB / 385.9 MB, free: 5.312 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.0002073/0.455, allocations: 119.1 kB / 386.1 MB, free: 5.188 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002632/0.4576, allocations: 471.1 kB / 386.5 MB, free: 4.715 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.613e-06/0.4576, allocations: 0 / 386.5 MB, free: 4.715 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002309/0.4599, allocations: 335.9 kB / 386.8 MB, free: 4.387 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.4604, allocations: 24.38 kB / 386.9 MB, free: 4.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00163/0.462, allocations: 460.1 kB / 387.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004781/0.4625, allocations: 0.7594 MB / 388.1 MB, free: 3.086 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.4627, allocations: 19.44 kB / 388.1 MB, free: 3.07 MB / 330.7 MB Notification: Performance of SimCode: time 2.176e-06/0.4627, allocations: 0 / 388.1 MB, free: 3.07 MB / 330.7 MB Notification: Performance of Templates: time 0.009414/0.4721, allocations: 5.072 MB / 393.2 MB, free: 14 MB / 346.7 MB "" Variables in the reference:time,inductor.i,thyristor_v4_1.vControl Variables in the result:_D_whenCondition1,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.T_start,pulseCurrent.signalSource.T_width,pulseCurrent.signalSource.amplitude,pulseCurrent.signalSource.count,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.useHeatPort,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.Roff,thyristor_v4_1.Ron,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.Voff,thyristor_v4_1.Von,thyristor_v4_1.Vt,der(thyristor_v4_1.vControl),thyristor_v4_1.iGK,thyristor_v4_1.useHeatPort,thyristor_v4_1.vAK,thyristor_v4_1.vConmain,thyristor_v4_1.vContot,thyristor_v4_1.vControl,thyristor_v4_1.vGK,time