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.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 1.754/1.754, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.198e-05/3.189e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08667/0.08672, allocations: 38.78 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005694/0.09248, allocations: 2.836 MB / 269.7 MB, free: 14.27 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003391/0.09593, allocations: 0.873 MB / 270.6 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005156/0.09652, allocations: 8 kB / 270.6 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002355/0.09678, allocations: 51.53 kB / 270.7 MB, free: 13.34 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008818/0.09769, allocations: 171.5 kB / 270.8 MB, free: 13.17 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.09885, allocations: 139.7 kB / 271 MB, free: 13.03 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001265/0.1001, allocations: 307.7 kB / 271.3 MB, free: 12.73 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003731/0.1006, allocations: 86.23 kB / 271.4 MB, free: 12.64 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005989/0.1012, allocations: 171.6 kB / 271.5 MB, free: 12.48 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005404/0.1018, allocations: 179.4 kB / 271.7 MB, free: 12.3 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003866/0.1022, allocations: 59.89 kB / 271.8 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001625/0.1024, allocations: 24 kB / 271.8 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.1026, allocations: 75.67 kB / 271.8 MB, free: 12.14 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.1028, allocations: 48 kB / 271.9 MB, free: 12.1 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009295/0.1038, allocations: 407.1 kB / 272.3 MB, free: 11.7 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1038, allocations: 4 kB / 272.3 MB, free: 11.7 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1038, allocations: 0 / 272.3 MB, free: 11.7 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.775e-05/0.1039, allocations: 0 / 272.3 MB, free: 11.7 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.002428/0.1063, allocations: 0.725 MB / 273 MB, free: 10.91 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.397e-05/0.1064, allocations: 8.031 kB / 273 MB, free: 10.9 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002832/0.1067, allocations: 55.34 kB / 273.1 MB, free: 10.85 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000973/0.1077, allocations: 319.8 kB / 273.4 MB, free: 10.5 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.786e-05/0.1078, allocations: 32.95 kB / 273.4 MB, free: 10.46 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001515/0.108, allocations: 40 kB / 273.5 MB, free: 10.43 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/0.1098, allocations: 420.7 kB / 273.9 MB, free: 9.996 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.1099, allocations: 4 kB / 273.9 MB, free: 9.992 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.1101, allocations: 16 kB / 273.9 MB, free: 9.977 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.262e-05/0.1101, allocations: 8 kB / 273.9 MB, free: 9.969 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.1117, allocations: 307.8 kB / 274.2 MB, free: 9.664 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.1174, allocations: 1.629 MB / 275.8 MB, free: 7.934 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.1188, allocations: 323 kB / 276.2 MB, free: 7.609 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.555e-05/0.119, allocations: 4.281 kB / 276.2 MB, free: 7.605 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.12, allocations: 277.3 kB / 276.4 MB, free: 7.301 MB / 234.7 MB Notification: Performance of pre-optimization done (n=38): time 4.639e-06/0.1201, allocations: 0 / 276.4 MB, free: 7.301 MB / 234.7 MB Notification: Performance of matching and sorting (n=38): time 0.005391/0.1255, allocations: 1.136 MB / 277.6 MB, free: 6.047 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001906/0.1257, allocations: 213.6 kB / 277.8 MB, free: 5.789 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000793/0.1265, allocations: 292.8 kB / 278.1 MB, free: 5.496 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.1266, allocations: 33.7 kB / 278.1 MB, free: 5.457 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000319/0.127, allocations: 270.7 kB / 278.4 MB, free: 5.188 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.1272, allocations: 114.3 kB / 278.5 MB, free: 5.074 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.869e-05/0.1273, allocations: 12 kB / 278.5 MB, free: 5.062 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001883/0.1275, allocations: 334.8 kB / 278.8 MB, free: 4.727 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006593/0.1282, allocations: 116.8 kB / 278.9 MB, free: 4.613 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007898/0.129, allocations: 210.1 kB / 279.1 MB, free: 4.371 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007246/0.1298, allocations: 188.1 kB / 279.3 MB, free: 4.18 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.1298, allocations: 0 / 279.3 MB, free: 4.18 MB / 234.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.002186/0.132, allocations: 0.5213 MB / 279.8 MB, free: 3.625 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.1321, allocations: 59.41 kB / 279.9 MB, free: 3.555 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.1322, allocations: 0 / 279.9 MB, free: 3.555 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.1334, allocations: 171.5 kB / 280.1 MB, free: 3.375 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005835/0.1341, allocations: 51.84 kB / 280.1 MB, free: 3.324 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/0.1451, allocations: 5.998 MB / 286.1 MB, free: 12.79 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009981/0.1461, allocations: 67.62 kB / 286.2 MB, free: 12.72 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/0.1463, allocations: 12 kB / 286.2 MB, free: 12.71 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 29 * 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.0005189/0.1468, allocations: 199.4 kB / 286.4 MB, free: 12.5 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.147, allocations: 47.48 kB / 286.4 MB, free: 12.45 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001777/0.1472, allocations: 44.44 kB / 286.5 MB, free: 12.41 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.1472, allocations: 8 kB / 286.5 MB, free: 12.4 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.1472, allocations: 0 / 286.5 MB, free: 12.4 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.1473, allocations: 3.984 kB / 286.5 MB, free: 12.4 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1484, allocations: 441.2 kB / 286.9 MB, free: 11.92 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.1484, allocations: 8.125 kB / 286.9 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.1488, allocations: 27.95 kB / 286.9 MB, free: 11.88 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.1499, allocations: 155.3 kB / 287.1 MB, free: 11.72 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.15, allocations: 19.94 kB / 287.1 MB, free: 11.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/0.1605, allocations: 5.816 MB / 292.9 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.1605, allocations: 0 / 292.9 MB, free: 5.352 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002391/0.163, allocations: 0.5248 MB / 293.5 MB, free: 4.789 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.1634, allocations: 152.5 kB / 293.6 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.1636, allocations: 8 kB / 293.6 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006806/0.1643, allocations: 39.97 kB / 293.7 MB, free: 4.574 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003019/0.1646, allocations: 55.72 kB / 293.7 MB, free: 4.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.954e-05/0.1647, allocations: 15.98 kB / 293.7 MB, free: 4.504 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0005323/0.1653, allocations: 235.1 kB / 294 MB, free: 4.277 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.1653, allocations: 0 / 294 MB, free: 4.277 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001756/0.1671, allocations: 155.8 kB / 294.1 MB, free: 4.125 MB / 250.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,booleanPulse.y,booleanPulse.pulsStart) * Number of discrete states: 6 (booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor1.off,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.0004149/0.1675, allocations: 135.2 kB / 294.2 MB, free: 3.98 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.1702, allocations: 0.9315 MB / 295.2 MB, free: 2.973 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/0.1703, allocations: 0 / 295.2 MB, free: 2.973 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00183/0.1721, allocations: 0.7206 MB / 295.9 MB, free: 2.188 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009647/0.1731, allocations: 69.52 kB / 296 MB, free: 2.121 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003119/0.1763, allocations: 0.9046 MB / 296.9 MB, free: 1.191 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007902/0.1771, allocations: 0.8355 MB / 297.7 MB, free: 340 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/0.1774, allocations: 27.42 kB / 297.7 MB, free: 312 kB / 250.7 MB Notification: Performance of SimCode: time 1.704e-06/0.1774, allocations: 0 / 297.7 MB, free: 312 kB / 250.7 MB Notification: Performance of Templates: time 0.2354/0.4128, allocations: 10.97 MB / 308.7 MB, free: 25.44 MB / 250.7 MB