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.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 1.746/1.746, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.849e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08228/0.08233, allocations: 38.77 MB / 266.9 MB, free: 1.145 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003544/0.08593, allocations: 2.138 MB / 269 MB, free: 14.98 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001634/0.08762, allocations: 0.6121 MB / 269.6 MB, free: 14.36 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.08788, allocations: 4 kB / 269.6 MB, free: 14.36 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.231e-05/0.08797, allocations: 35.75 kB / 269.7 MB, free: 14.32 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002748/0.08826, allocations: 87.67 kB / 269.8 MB, free: 14.24 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003255/0.0886, allocations: 67.91 kB / 269.8 MB, free: 14.17 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.08896, allocations: 175.6 kB / 270 MB, free: 14 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.08913, allocations: 44.58 kB / 270 MB, free: 13.95 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.0894, allocations: 123.7 kB / 270.2 MB, free: 13.83 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002781/0.0897, allocations: 131.6 kB / 270.3 MB, free: 13.7 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.872e-05/0.08978, allocations: 12 kB / 270.3 MB, free: 13.69 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.797e-05/0.08985, allocations: 16 kB / 270.3 MB, free: 13.68 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.08993, allocations: 47.83 kB / 270.4 MB, free: 13.63 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.425e-05/0.09004, allocations: 24 kB / 270.4 MB, free: 13.61 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.09044, allocations: 267.4 kB / 270.7 MB, free: 13.34 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.09046, allocations: 0 / 270.7 MB, free: 13.34 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.09048, allocations: 0 / 270.7 MB, free: 13.34 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.0905, allocations: 4 kB / 270.7 MB, free: 13.34 MB / 234.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.002236/0.09274, allocations: 0.6261 MB / 271.3 MB, free: 12.66 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.09281, allocations: 8.031 kB / 271.3 MB, free: 12.65 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.09295, allocations: 31.62 kB / 271.3 MB, free: 12.62 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004622/0.09342, allocations: 263.6 kB / 271.6 MB, free: 12.32 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.09347, allocations: 16.44 kB / 271.6 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.21e-05/0.09356, allocations: 16 kB / 271.6 MB, free: 12.29 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.0949, allocations: 333.7 kB / 271.9 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.09494, allocations: 0 / 271.9 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.448e-05/0.095, allocations: 4 kB / 271.9 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.09502, allocations: 8 kB / 271.9 MB, free: 11.94 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001753/0.09678, allocations: 337.5 kB / 272.3 MB, free: 11.61 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002926/0.09974, allocations: 0.9921 MB / 273.3 MB, free: 10.55 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005493/0.1053, allocations: 0.6037 MB / 273.9 MB, free: 9.938 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.71e-05/0.1054, allocations: 0 / 273.9 MB, free: 9.938 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/0.1066, allocations: 254.9 kB / 274.1 MB, free: 9.672 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 2.445e-06/0.1066, allocations: 4 kB / 274.1 MB, free: 9.668 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.002836/0.1095, allocations: 0.5249 MB / 274.7 MB, free: 9.141 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.032e-05/0.1096, allocations: 93.05 kB / 274.7 MB, free: 9.031 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000361/0.11, allocations: 212.1 kB / 274.9 MB, free: 8.816 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.11, allocations: 29.7 kB / 275 MB, free: 8.781 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001597/0.1102, allocations: 206.7 kB / 275.2 MB, free: 8.578 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.1103, allocations: 78.92 kB / 275.3 MB, free: 8.5 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.187e-05/0.1104, allocations: 8 kB / 275.3 MB, free: 8.492 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1105, allocations: 322.8 kB / 275.6 MB, free: 8.168 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000927/0.1115, allocations: 164.4 kB / 275.7 MB, free: 8.008 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009449/0.1124, allocations: 195.4 kB / 275.9 MB, free: 7.809 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009364/0.1134, allocations: 182.6 kB / 276.1 MB, free: 7.625 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.1134, allocations: 4 kB / 276.1 MB, free: 7.621 MB / 234.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002069/0.1155, allocations: 436.4 kB / 276.5 MB, free: 7.184 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.364e-05/0.1156, allocations: 37.69 kB / 276.6 MB, free: 7.141 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1156, allocations: 4 kB / 276.6 MB, free: 7.137 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.031e-05/0.1157, allocations: 3.953 kB / 276.6 MB, free: 7.133 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003473/0.1191, allocations: 315.6 kB / 276.9 MB, free: 6.824 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007897/0.1271, allocations: 3.255 MB / 280.1 MB, free: 3.301 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007243/0.1279, allocations: 71.67 kB / 280.2 MB, free: 3.23 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.1279, allocations: 8.062 kB / 280.2 MB, free: 3.223 MB / 234.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.0002472/0.1282, allocations: 133.8 kB / 280.4 MB, free: 3.082 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-05/0.1283, allocations: 27.75 kB / 280.4 MB, free: 3.055 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.39e-05/0.1284, allocations: 30.17 kB / 280.4 MB, free: 3.027 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.003e-05/0.1284, allocations: 4 kB / 280.4 MB, free: 3.023 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1284, allocations: 3.938 kB / 280.4 MB, free: 3.02 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.1284, allocations: 3.984 kB / 280.4 MB, free: 3.016 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000553/0.129, allocations: 349.2 kB / 280.8 MB, free: 2.625 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.129, allocations: 7.953 kB / 280.8 MB, free: 2.617 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003485/0.1325, allocations: 307.6 kB / 281.1 MB, free: 2.316 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.939e-06/0.1326, allocations: 0 / 281.1 MB, free: 2.316 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.118e-05/0.1326, allocations: 4 kB / 281.1 MB, free: 2.312 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007761/0.1404, allocations: 3.263 MB / 284.3 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.1404, allocations: 0 / 284.3 MB, free: 14.79 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002937/0.1434, allocations: 0.5942 MB / 284.9 MB, free: 14.17 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.1437, allocations: 116.8 kB / 285 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.1438, allocations: 0 / 285 MB, free: 14.04 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000622/0.1444, allocations: 56.02 kB / 285.1 MB, free: 13.98 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.1445, allocations: 31.83 kB / 285.1 MB, free: 13.95 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.1446, allocations: 12 kB / 285.1 MB, free: 13.94 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000256/0.1449, allocations: 168.5 kB / 285.3 MB, free: 13.78 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1449, allocations: 3.938 kB / 285.3 MB, free: 13.77 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005786/0.1455, allocations: 75.84 kB / 285.4 MB, free: 13.7 MB / 250.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.0001955/0.1457, allocations: 119.2 kB / 285.5 MB, free: 13.57 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00459/0.1503, allocations: 0.6148 MB / 286.1 MB, free: 12.95 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.1503, allocations: 0 / 286.1 MB, free: 12.95 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00351/0.1539, allocations: 407.6 kB / 286.5 MB, free: 12.55 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004823/0.1544, allocations: 42.44 kB / 286.6 MB, free: 12.51 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.1568, allocations: 0.7378 MB / 287.3 MB, free: 11.74 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003956/0.1573, allocations: 0.7524 MB / 288.1 MB, free: 10.96 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.1575, allocations: 23.42 kB / 288.1 MB, free: 10.94 MB / 250.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1575, allocations: 0 / 288.1 MB, free: 10.94 MB / 250.7 MB Notification: Performance of Templates: time 0.01171/0.1692, allocations: 5.228 MB / 293.3 MB, free: 5.711 MB / 250.7 MB