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 2.345/2.345, allocations: 194.9 MB / 211.2 MB, free: 9.137 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.951e-05/3.952e-05, allocations: 0 / 258.8 MB, free: 9.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3733, allocations: 44.51 MB / 303.3 MB, free: 12.69 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003772/0.3771, allocations: 2.138 MB / 305.4 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.3789, allocations: 0.6258 MB / 306.1 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002563/0.3793, allocations: 5.844 kB / 306.1 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.896e-05/0.3794, allocations: 30.67 kB / 306.1 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003096/0.3797, allocations: 82.52 kB / 306.2 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.38, allocations: 71.23 kB / 306.2 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.3805, allocations: 190.2 kB / 306.4 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.3807, allocations: 36.16 kB / 306.5 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002841/0.381, allocations: 114.6 kB / 306.6 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.3813, allocations: 127.1 kB / 306.7 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.295e-05/0.3814, allocations: 13.97 kB / 306.7 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.83e-05/0.3815, allocations: 19.41 kB / 306.7 MB, free: 9.973 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.141e-05/0.3816, allocations: 58.8 kB / 306.8 MB, free: 9.922 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.311e-05/0.3817, allocations: 27.69 kB / 306.8 MB, free: 9.918 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004092/0.3821, allocations: 260.7 kB / 307.1 MB, free: 9.723 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.3821, allocations: 1.125 kB / 307.1 MB, free: 9.723 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3821, allocations: 0 / 307.1 MB, free: 9.723 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.3821, allocations: 0 / 307.1 MB, free: 9.723 MB / 250.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.002289/0.3844, allocations: 0.6182 MB / 307.7 MB, free: 9.195 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.3845, allocations: 9.406 kB / 307.7 MB, free: 9.195 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.3847, allocations: 31.25 kB / 307.7 MB, free: 9.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/0.3852, allocations: 266.2 kB / 308 MB, free: 8.902 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.06e-05/0.3853, allocations: 24.36 kB / 308 MB, free: 8.887 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.792e-05/0.3854, allocations: 21.38 kB / 308 MB, free: 8.879 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.3868, allocations: 323 kB / 308.3 MB, free: 8.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3868, allocations: 7.938 kB / 308.4 MB, free: 8.625 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.628e-05/0.3869, allocations: 7.984 kB / 308.4 MB, free: 8.617 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3869, allocations: 8 kB / 308.4 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.3887, allocations: 329.5 kB / 308.7 MB, free: 8.289 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00301/0.3917, allocations: 1.004 MB / 309.7 MB, free: 7.219 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005481/0.3973, allocations: 0.5922 MB / 310.3 MB, free: 6.617 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.155e-05/0.3974, allocations: 7.953 kB / 310.3 MB, free: 6.609 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001158/0.3986, allocations: 258.6 kB / 310.5 MB, free: 6.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=21): time 3.396e-06/0.3986, allocations: 0 / 310.5 MB, free: 6.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.002876/0.4015, allocations: 0.5247 MB / 311.1 MB, free: 5.812 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.264e-05/0.4016, allocations: 85.09 kB / 311.2 MB, free: 5.711 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.402, allocations: 208.2 kB / 311.4 MB, free: 5.5 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.489e-05/0.4021, allocations: 29.7 kB / 311.4 MB, free: 5.465 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.4022, allocations: 218.6 kB / 311.6 MB, free: 5.25 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.4024, allocations: 71 kB / 311.7 MB, free: 5.18 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.4024, allocations: 4 kB / 311.7 MB, free: 5.176 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.4026, allocations: 322.8 kB / 312 MB, free: 4.852 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009045/0.4035, allocations: 156.4 kB / 312.1 MB, free: 4.699 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009451/0.4044, allocations: 203.4 kB / 312.3 MB, free: 4.492 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009555/0.4054, allocations: 186.6 kB / 312.5 MB, free: 4.305 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4054, allocations: 0 / 312.5 MB, free: 4.305 MB / 250.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00207/0.4075, allocations: 447.9 kB / 313 MB, free: 3.855 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.575e-05/0.4076, allocations: 29.7 kB / 313 MB, free: 3.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.4076, allocations: 0 / 313 MB, free: 3.82 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.4077, allocations: 4 kB / 313 MB, free: 3.816 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003486/0.4112, allocations: 315.6 kB / 313.3 MB, free: 3.508 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008127/0.4193, allocations: 3.255 MB / 316.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007544/0.4201, allocations: 71.72 kB / 316.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.661e-05/0.4202, allocations: 4 kB / 316.6 MB, free: 15.91 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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.0002525/0.4205, allocations: 141.8 kB / 316.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.193e-05/0.4206, allocations: 23.72 kB / 316.8 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.8e-05/0.4207, allocations: 34.19 kB / 316.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.4207, allocations: 3.984 kB / 316.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.4207, allocations: 4 kB / 316.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.4207, allocations: 0 / 316.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006191/0.4214, allocations: 353.2 kB / 317.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.944e-06/0.4214, allocations: 0 / 317.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/0.4249, allocations: 315.6 kB / 317.5 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.324e-05/0.4249, allocations: 4 kB / 317.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.425, allocations: 0 / 317.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008181/0.4332, allocations: 3.259 MB / 320.7 MB, free: 11.47 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.4333, allocations: 3.953 kB / 320.8 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003104/0.4364, allocations: 0.5895 MB / 321.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.4366, allocations: 101 kB / 321.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.4367, allocations: 8 kB / 321.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006406/0.4374, allocations: 43.95 kB / 321.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.4376, allocations: 43.84 kB / 321.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.4376, allocations: 7.984 kB / 321.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002865/0.4379, allocations: 164.5 kB / 321.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4379, allocations: 0 / 321.7 MB, free: 10.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006759/0.4386, allocations: 83.83 kB / 321.8 MB, free: 10.4 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0002324/0.4389, allocations: 107.2 kB / 321.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.004797/0.4437, allocations: 0.6278 MB / 322.5 MB, free: 9.641 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.4438, allocations: 0 / 322.5 MB, free: 9.641 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003645/0.4474, allocations: 399.7 kB / 322.9 MB, free: 9.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000519/0.448, allocations: 28.42 kB / 322.9 MB, free: 9.223 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002624/0.4506, allocations: 0.7341 MB / 323.7 MB, free: 8.465 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.4511, allocations: 0.7521 MB / 324.4 MB, free: 7.688 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.4514, allocations: 27.42 kB / 324.4 MB, free: 7.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.573e-06/0.4514, allocations: 4 kB / 324.5 MB, free: 7.656 MB / 266.7 MB Notification: Performance of Templates: time 0.01231/0.4637, allocations: 5.222 MB / 329.7 MB, free: 2.445 MB / 266.7 MB