Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse.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.HalfControlledBridge2mPulse,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.1..u|rectifier.pre.2..u|rectifier.pre.3..u|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_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2mPulse.HalfControlledBridge2mPulse") Notification: Performance of loadModel(Modelica): time 2.267/2.267, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005181/0.0005184, allocations: 11.94 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1171, allocations: 44.5 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5277/0.6448, allocations: 87.65 MB / 396.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.6452, allocations: 97.48 kB / 396.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.106/0.7512, allocations: 28.47 MB / 425.3 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.7512, allocations: 0 / 425.3 MB, free: 5.184 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001566/0.7514, allocations: 46.91 kB / 425.3 MB, free: 5.172 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: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.006202/0.7576, allocations: 2.055 MB / 427.4 MB, free: 3.887 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.7577, allocations: 9.094 kB / 427.4 MB, free: 3.887 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007119/0.7584, allocations: 207.8 kB / 427.6 MB, free: 3.785 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007156/0.7656, allocations: 2.046 MB / 429.6 MB, free: 2.973 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.7658, allocations: 129 kB / 429.8 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003964/0.7662, allocations: 156.2 kB / 429.9 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005512/0.7717, allocations: 2.246 MB / 432.2 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.672e-05/0.7718, allocations: 4 kB / 432.2 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002354/0.7721, allocations: 64.44 kB / 432.2 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-05/0.7722, allocations: 80.98 kB / 432.3 MB, free: 2.266 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005241/0.7774, allocations: 1.876 MB / 434.2 MB, free: 1.488 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01745/0.7949, allocations: 6.504 MB / 440.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003826/0.7988, allocations: 1.512 MB / 442.2 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.566e-05/0.7989, allocations: 13 kB / 442.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002235/0.8011, allocations: 0.8758 MB / 443.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.438e-06/0.8012, allocations: 0 / 443.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=116): time 0.02064/0.8218, allocations: 3.358 MB / 446.5 MB, free: 7.008 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001776/0.822, allocations: 153.5 kB / 446.6 MB, free: 6.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003064/0.8251, allocations: 1.112 MB / 447.7 MB, free: 5.695 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003522/0.8255, allocations: 65.69 kB / 447.8 MB, free: 5.625 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009998/0.8265, allocations: 0.7095 MB / 448.5 MB, free: 4.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005794/0.8271, allocations: 341.3 kB / 448.8 MB, free: 4.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.8272, allocations: 25.53 kB / 448.8 MB, free: 4.562 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002257/0.8275, allocations: 361.9 kB / 449.2 MB, free: 4.203 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/0.8293, allocations: 0.6272 MB / 449.8 MB, free: 3.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/0.8314, allocations: 0.8869 MB / 450.7 MB, free: 2.594 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00184/0.8333, allocations: 0.6783 MB / 451.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.8333, allocations: 0 / 451.4 MB, free: 1.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.005144/0.8384, allocations: 1.891 MB / 453.3 MB, free: 12 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003037/0.8388, allocations: 272.3 kB / 453.5 MB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.8388, allocations: 8 kB / 453.6 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00198/0.8408, allocations: 0.4925 MB / 454 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.842, allocations: 155.7 kB / 454.2 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01232/0.8543, allocations: 5.438 MB / 459.6 MB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.8561, allocations: 175 kB / 459.8 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.8562, allocations: 47.98 kB / 459.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.8563, allocations: 8.562 kB / 459.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004533/0.8608, allocations: 1.723 MB / 461.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/0.8609, allocations: 16.05 kB / 461.6 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001869/0.8627, allocations: 493.4 kB / 462.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.8639, allocations: 155.7 kB / 462.2 MB, free: 6.828 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01253/0.8765, allocations: 5.442 MB / 467.7 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.8782, allocations: 151.2 kB / 467.8 MB, free: 1.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.8784, allocations: 44 kB / 467.9 MB, free: 1.059 MB / 346.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: 57 ($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,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[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 (119): * Single equations (assignments): 118 * 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.001857/0.8802, allocations: 0.7467 MB / 468.6 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003881/0.8806, allocations: 122.5 kB / 468.7 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004824/0.8811, allocations: 168.1 kB / 468.9 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.8812, allocations: 8 kB / 468.9 MB, free: 0 / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.8812, allocations: 0 / 468.9 MB, free: 0 / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.8812, allocations: 7.984 kB / 468.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009375/0.8906, allocations: 3.506 MB / 472.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.8907, allocations: 0 / 472.4 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008443/0.8915, allocations: 99.81 kB / 472.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001907/0.8934, allocations: 476.5 kB / 473 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/0.8936, allocations: 27.98 kB / 473 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01246/0.9061, allocations: 5.42 MB / 478.4 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.9061, allocations: 0 / 478.4 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007477/0.9136, allocations: 2.637 MB / 481.1 MB, free: 3.633 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001174/0.9148, allocations: 355.3 kB / 481.4 MB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003483/0.9152, allocations: 31.98 kB / 481.4 MB, free: 3.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.9165, allocations: 111.9 kB / 481.6 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006399/0.9171, allocations: 168.7 kB / 481.7 MB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.9172, allocations: 35.92 kB / 481.8 MB, free: 2.926 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001753/0.919, allocations: 0.7594 MB / 482.5 MB, free: 2.156 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.919, allocations: 0 / 482.5 MB, free: 2.156 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00315/0.9222, allocations: 0.8137 MB / 483.3 MB, free: 1.34 MB / 362.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: 42 (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.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * 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.0004282/0.9226, allocations: 192.7 kB / 483.5 MB, free: 1.145 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008271/0.9309, allocations: 3 MB / 486.5 MB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.931, allocations: 0 / 486.5 MB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003189/0.9342, allocations: 1.15 MB / 487.7 MB, free: 12.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00237/0.9366, allocations: 309 kB / 488 MB, free: 12.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.9474, allocations: 3.938 MB / 491.9 MB, free: 8.684 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00233/0.9498, allocations: 1.675 MB / 493.6 MB, free: 6.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002111/0.952, allocations: 402 kB / 494 MB, free: 6.586 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004654/0.9525, allocations: 71.44 kB / 494 MB, free: 6.516 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.9525, allocations: 0 / 494 MB, free: 6.516 MB / 378.7 MB Notification: Performance of Templates: time 0.0763/1.029, allocations: 26.42 MB / 0.5083 GB, free: 12.14 MB / 410.7 MB