Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2.twoPulse.timerNegative.1..entryTime|pulse2.twoPulse.timerPositive.1..entryTime|rectifier.thyristor_n1.off|rectifier.thyristor_n2.off|rectifier.thyristor_p1.off|rectifier.thyristor_p2.off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV") Notification: Performance of loadModel(Modelica): time 2.094/2.094, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.155e-05/3.154e-05, allocations: 5.406 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 50.41 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RLV): time 0.007157/0.1138, allocations: 4.125 MB / 349.1 MB, free: 4.781 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0036/0.1175, allocations: 1.271 MB / 350.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008066/0.1183, allocations: 35.88 kB / 350.4 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005829/0.119, allocations: 111.2 kB / 350.5 MB, free: 3.359 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.1201, allocations: 239.2 kB / 350.8 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.1213, allocations: 235.6 kB / 351 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.1228, allocations: 0.5083 MB / 351.5 MB, free: 2.383 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006439/0.1235, allocations: 269.8 kB / 351.8 MB, free: 2.121 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005397/0.124, allocations: 231.3 kB / 352 MB, free: 1.895 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005097/0.1245, allocations: 278.8 kB / 352.3 MB, free: 1.621 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.1247, allocations: 32 kB / 352.3 MB, free: 1.59 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.1248, allocations: 28 kB / 352.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.125, allocations: 127.4 kB / 352.4 MB, free: 1.438 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.1253, allocations: 60 kB / 352.5 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.1265, allocations: 0.8258 MB / 353.3 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1266, allocations: 0 / 353.3 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1266, allocations: 0 / 353.3 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.191e-05/0.1266, allocations: 0 / 353.3 MB, free: 0.5508 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 175 * Number of variables: 175 Notification: Performance of Generate backend data structure: time 0.0027/0.1293, allocations: 0.9146 MB / 354.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.1294, allocations: 16.02 kB / 354.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003153/0.1297, allocations: 90.88 kB / 354.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.1309, allocations: 0.4946 MB / 354.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.254e-05/0.1311, allocations: 61.94 kB / 354.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001779/0.1312, allocations: 79.91 kB / 355 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/0.1335, allocations: 0.7715 MB / 355.8 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/0.1336, allocations: 4 kB / 355.8 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/0.1337, allocations: 35.95 kB / 355.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.1337, allocations: 16 kB / 355.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00197/0.1357, allocations: 0.5817 MB / 356.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006964/0.1427, allocations: 2.755 MB / 359.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.1445, allocations: 0.5949 MB / 359.7 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.564e-05/0.1446, allocations: 8.516 kB / 359.7 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.1457, allocations: 393.7 kB / 360.1 MB, free: 9.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 3.777e-06/0.1458, allocations: 0 / 360.1 MB, free: 9.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=62): time 0.004427/0.1502, allocations: 1.128 MB / 361.3 MB, free: 8.309 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.1504, allocations: 145.1 kB / 361.4 MB, free: 8.137 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000879/0.1512, allocations: 437 kB / 361.8 MB, free: 7.703 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001518/0.1514, allocations: 41.7 kB / 361.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000342/0.1518, allocations: 370.7 kB / 362.2 MB, free: 7.293 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/0.1521, allocations: 193.4 kB / 362.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.872e-05/0.1521, allocations: 12 kB / 362.4 MB, free: 7.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1523, allocations: 346.8 kB / 362.8 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007396/0.153, allocations: 217.9 kB / 363 MB, free: 6.527 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009023/0.154, allocations: 393.9 kB / 363.4 MB, free: 6.078 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008135/0.1548, allocations: 238.1 kB / 363.6 MB, free: 5.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/0.1548, allocations: 4 kB / 363.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002156/0.157, allocations: 0.7113 MB / 364.3 MB, free: 5.113 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007388/0.1578, allocations: 1.661 MB / 366 MB, free: 3.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.1578, allocations: 4 kB / 366 MB, free: 3.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00081/0.1587, allocations: 145.6 kB / 366.1 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007888/0.1595, allocations: 99.83 kB / 366.2 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005379/0.1649, allocations: 3.491 MB / 369.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008608/0.1658, allocations: 87.41 kB / 369.8 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-05/0.1659, allocations: 28 kB / 369.8 MB, free: 15.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.1659, allocations: 3.953 kB / 369.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001853/0.1678, allocations: 0.6353 MB / 370.5 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.1678, allocations: 8 kB / 370.5 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006306/0.1685, allocations: 150.1 kB / 370.6 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007364/0.1692, allocations: 91.84 kB / 370.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005096/0.1743, allocations: 3.467 MB / 374.2 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006295/0.175, allocations: 67.66 kB / 374.2 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.718e-05/0.1751, allocations: 27.94 kB / 374.3 MB, free: 10.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.meanCurrent.y_last,meanCurrent.y_last,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y_last,rootMeanSquareVoltage.mean.y_last,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.000632/0.1758, allocations: 249.7 kB / 374.5 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.176, allocations: 59.25 kB / 374.6 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002077/0.1762, allocations: 77.53 kB / 374.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.968e-06/0.1762, allocations: 4 kB / 374.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.1762, allocations: 3.953 kB / 374.7 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.1762, allocations: 3.984 kB / 374.7 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004078/0.1803, allocations: 1.532 MB / 376.2 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.1804, allocations: 0 / 376.2 MB, free: 8.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/0.181, allocations: 63.89 kB / 376.3 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000688/0.1817, allocations: 137.6 kB / 376.4 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.364e-05/0.1818, allocations: 12 kB / 376.4 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004918/0.1867, allocations: 3.313 MB / 379.7 MB, free: 4.684 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1868, allocations: 0 / 379.7 MB, free: 4.684 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003029/0.1898, allocations: 1.088 MB / 380.8 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004582/0.1903, allocations: 192.3 kB / 381 MB, free: 3.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001638/0.1905, allocations: 12 kB / 381 MB, free: 3.336 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000646/0.1912, allocations: 47.97 kB / 381 MB, free: 3.289 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/0.1915, allocations: 80.38 kB / 381.1 MB, free: 3.211 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.137e-05/0.1916, allocations: 23.98 kB / 381.1 MB, free: 3.188 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006198/0.1922, allocations: 326.9 kB / 381.5 MB, free: 2.871 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.1922, allocations: 0 / 381.5 MB, free: 2.871 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001739/0.194, allocations: 362.8 kB / 381.8 MB, free: 2.516 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y_last,rootMeanSquareVoltage.mean.y_last,meanCurrent.y_last,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n2.off,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002984/0.1943, allocations: 138.1 kB / 382 MB, free: 2.371 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00364/0.198, allocations: 1.447 MB / 383.4 MB, free: 0.875 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.103e-05/0.198, allocations: 0 / 383.4 MB, free: 0.875 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001371/0.1994, allocations: 0.5873 MB / 384 MB, free: 264 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/0.2004, allocations: 118 kB / 384.1 MB, free: 148 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004383/0.2048, allocations: 1.699 MB / 385.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007904/0.2057, allocations: 0.9626 MB / 386.8 MB, free: 13.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/0.206, allocations: 43.44 kB / 386.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.206, allocations: 0 / 386.8 MB, free: 13.38 MB / 330.7 MB Notification: Performance of Templates: time 0.3012/0.5072, allocations: 14.31 MB / 401.1 MB, free: 49.62 MB / 330.7 MB