Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|rootMeanSquareVoltage.mean.x|meanCurrent.y|meanVoltage.y|pulse2m.twomPulse.timerNegative.1..entryTime|pulse2m.twomPulse.timerNegative.2..entryTime|pulse2m.twomPulse.timerNegative.3..entryTime|pulse2m.twomPulse.timerPositive.1..entryTime|pulse2m.twomPulse.timerPositive.2..entryTime|pulse2m.twomPulse.timerPositive.3..entryTime|rectifier.pre_n.1..u|rectifier.pre_n.2..u|rectifier.pre_n.3..u|rectifier.pre_p.1..u|rectifier.pre_p.2..u|rectifier.pre_p.3..u|rectifier.thyristor_n.idealThyristor.1..off|rectifier.thyristor_n.idealThyristor.2..off|rectifier.thyristor_n.idealThyristor.3..off|rectifier.thyristor_p.idealThyristor.1..off|rectifier.thyristor_p.idealThyristor.2..off|rectifier.thyristor_p.idealThyristor.3..off|rootMeanSquareVoltage.mean.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.ThyristorBridge2mPulse_R") Notification: Performance of loadModel(Modelica): time 1.799/1.799, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003401, allocations: 12 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08998/0.09034, allocations: 44.5 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4105/0.5009, allocations: 86.88 MB / 395.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000311/0.5013, allocations: 91.95 kB / 396 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.124/0.6253, allocations: 35.42 MB / 431.4 MB, free: 2.465 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.6254, allocations: 3.938 kB / 431.4 MB, free: 2.461 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001561/0.6255, allocations: 58.05 kB / 431.4 MB, free: 2.445 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: 436 * Number of variables: 436 Notification: Performance of Generate backend data structure: time 0.006382/0.6319, allocations: 2.123 MB / 433.6 MB, free: 1.125 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.632, allocations: 7.438 kB / 433.6 MB, free: 1.125 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008294/0.6328, allocations: 221 kB / 433.8 MB, free: 1.016 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007161/0.64, allocations: 2.067 MB / 435.9 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.6402, allocations: 134.8 kB / 436 MB, free: 15.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005186/0.6408, allocations: 168.4 kB / 436.2 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006561/0.6473, allocations: 2.393 MB / 438.5 MB, free: 14.01 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.698e-05/0.6475, allocations: 7.938 kB / 438.6 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002579/0.6477, allocations: 73.45 kB / 438.6 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.6479, allocations: 79.3 kB / 438.7 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005931/0.6538, allocations: 1.972 MB / 440.7 MB, free: 12.65 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01768/0.6715, allocations: 6.745 MB / 447.4 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003795/0.6754, allocations: 1.542 MB / 449 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001234/0.6755, allocations: 20.48 kB / 449 MB, free: 5.016 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002354/0.6779, allocations: 0.916 MB / 449.9 MB, free: 4.082 MB / 330.7 MB Notification: Performance of pre-optimization done (n=122): time 4.489e-06/0.6779, allocations: 0 / 449.9 MB, free: 4.082 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01531/0.6932, allocations: 3.467 MB / 453.4 MB, free: 0.582 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.6934, allocations: 153.4 kB / 453.5 MB, free: 412 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002492/0.6959, allocations: 1.14 MB / 454.7 MB, free: 15.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000291/0.6962, allocations: 81.67 kB / 454.7 MB, free: 15.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008311/0.6971, allocations: 0.7275 MB / 455.5 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005085/0.6976, allocations: 358 kB / 455.8 MB, free: 14.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.6977, allocations: 28 kB / 455.8 MB, free: 14.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.6979, allocations: 362.8 kB / 456.2 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.6998, allocations: 0.6779 MB / 456.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.702, allocations: 0.9459 MB / 457.8 MB, free: 11.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001941/0.7039, allocations: 0.7168 MB / 458.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.704, allocations: 4 kB / 458.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.005095/0.7091, allocations: 1.942 MB / 460.5 MB, free: 9.309 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00022/0.7093, allocations: 265.8 kB / 460.7 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/0.7094, allocations: 19.92 kB / 460.8 MB, free: 8.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/0.7114, allocations: 0.4965 MB / 461.3 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.7126, allocations: 163.7 kB / 461.4 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.7249, allocations: 5.563 MB / 467 MB, free: 2.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/0.7267, allocations: 171.1 kB / 467.1 MB, free: 2.414 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/0.7269, allocations: 47.98 kB / 467.2 MB, free: 2.367 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.7269, allocations: 4 kB / 467.2 MB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004889/0.7318, allocations: 1.843 MB / 469 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/0.7319, allocations: 8 kB / 469 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001764/0.7336, allocations: 0.4974 MB / 469.5 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.7349, allocations: 159.7 kB / 469.7 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/0.7471, allocations: 5.615 MB / 475.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.7485, allocations: 151.2 kB / 475.5 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.7486, allocations: 44 kB / 475.5 MB, free: 9.918 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 69 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition9,$whenCondition8,$whenCondition7,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[1].off,$PRE.rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,$PRE.rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[3].off,$PRE.rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,$PRE.rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[2].off,$PRE.rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[3].off,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[3].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,$PRE.pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[1].entryTime,$PRE.pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,$PRE.pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,$PRE.pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,$PRE.pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,$PRE.pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 130 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of prepare postOptimizeDAE: time 0.001979/0.7506, allocations: 0.7979 MB / 476.3 MB, free: 9.102 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004568/0.7511, allocations: 126.5 kB / 476.4 MB, free: 8.977 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005441/0.7516, allocations: 168.4 kB / 476.6 MB, free: 8.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.7517, allocations: 12 kB / 476.6 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.136e-06/0.7517, allocations: 0 / 476.6 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.7517, allocations: 3.984 kB / 476.6 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009544/0.7613, allocations: 3.625 MB / 480.2 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.7613, allocations: 3.938 kB / 480.2 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008444/0.7622, allocations: 107.9 kB / 480.3 MB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/0.7641, allocations: 488.3 kB / 480.8 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.7643, allocations: 19.98 kB / 480.8 MB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/0.7766, allocations: 5.53 MB / 486.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.7766, allocations: 0 / 486.4 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007203/0.7839, allocations: 2.715 MB / 489.1 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/0.785, allocations: 371.2 kB / 489.4 MB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003587/0.7854, allocations: 48.05 kB / 489.5 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.7866, allocations: 107.9 kB / 489.6 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007888/0.7874, allocations: 232.6 kB / 489.8 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.7876, allocations: 35.98 kB / 489.9 MB, free: 11.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001743/0.7893, allocations: 0.7716 MB / 490.6 MB, free: 10.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7893, allocations: 4 kB / 490.6 MB, free: 10.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003186/0.7925, allocations: 0.8371 MB / 491.5 MB, free: 9.695 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x) * Number of discrete variables: 48 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[3].y,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2m.twomPulse.timerPositive[1].entryTime,pulse2m.twomPulse.timerPositive[2].entryTime,pulse2m.twomPulse.timerPositive[3].entryTime,pulse2m.twomPulse.timerNegative[1].entryTime,pulse2m.twomPulse.timerNegative[2].entryTime,pulse2m.twomPulse.timerNegative[3].entryTime,pulse2m.fire_p[1],pulse2m.fire_p[2],pulse2m.fire_p[3],pulse2m.fire_n[1],pulse2m.fire_n[2],pulse2m.fire_n[3]) * Number of discrete states: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[1].off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004717/0.7931, allocations: 201.4 kB / 491.7 MB, free: 9.488 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.008358/0.8014, allocations: 3.15 MB / 494.8 MB, free: 6.312 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.8015, allocations: 0.5625 kB / 494.8 MB, free: 6.312 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/0.8046, allocations: 1.167 MB / 496 MB, free: 5.133 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.807, allocations: 312.6 kB / 496.3 MB, free: 4.824 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.8172, allocations: 4.046 MB / 0.4886 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001994/0.8193, allocations: 1.672 MB / 0.4902 GB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006043/0.8199, allocations: 91.42 kB / 0.4903 GB, free: 14.95 MB / 394.7 MB Notification: Performance of SimCode: time 1.192e-06/0.8199, allocations: 0 / 0.4903 GB, free: 14.95 MB / 394.7 MB Notification: Performance of Templates: time 0.06498/0.8849, allocations: 30.71 MB / 0.5203 GB, free: 204 kB / 410.7 MB