Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Electrical.PowerConverters.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="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse") Notification: Performance of loadModel(ModelicaTest): time 2.201/2.201, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.169e-05/5.232e-05, allocations: 4 kB / 309.7 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3885, allocations: 54.85 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1482/0.5368, allocations: 96.35 MB / 460.9 MB, free: 92 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.5371, allocations: 75.95 kB / 461 MB, free: 16 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1204/0.6575, allocations: 31.63 MB / 492.6 MB, free: 196 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.401e-06/0.6575, allocations: 0 / 492.6 MB, free: 196 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001841/0.6577, allocations: 51.92 kB / 492.6 MB, free: 144 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 454 * Number of variables: 454 Notification: Performance of Generate backend data structure: time 0.005933/0.6637, allocations: 2.078 MB / 494.7 MB, free: 14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.6638, allocations: 8.031 kB / 494.7 MB, free: 14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009015/0.6647, allocations: 233.3 kB / 495 MB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007596/0.6723, allocations: 2.156 MB / 497.1 MB, free: 11.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002213/0.6726, allocations: 147.5 kB / 497.3 MB, free: 11.41 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006352/0.6732, allocations: 180 kB / 497.4 MB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006363/0.6796, allocations: 2.43 MB / 499.9 MB, free: 8.715 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.374e-05/0.6797, allocations: 4 kB / 499.9 MB, free: 8.711 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002967/0.68, allocations: 83.94 kB / 499.9 MB, free: 8.629 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.6801, allocations: 71.52 kB / 0.4883 GB, free: 8.559 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005287/0.6854, allocations: 2.009 MB / 0.4903 GB, free: 6.547 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01774/0.7032, allocations: 7.201 MB / 0.4973 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004051/0.7073, allocations: 1.755 MB / 0.499 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002854/0.7102, allocations: 1.266 MB / 0.5002 GB, free: 12.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.987e-05/0.7103, allocations: 13 kB / 0.5003 GB, free: 12.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001932/0.7123, allocations: 0.9216 MB / 0.5012 GB, free: 11.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 5.529e-06/0.7123, allocations: 0 / 0.5012 GB, free: 11.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.004231/0.7165, allocations: 1.773 MB / 0.5029 GB, free: 9.449 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001856/0.7167, allocations: 230.6 kB / 0.5031 GB, free: 9.172 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/0.7193, allocations: 1.152 MB / 0.5042 GB, free: 8.008 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002733/0.7196, allocations: 77.62 kB / 0.5043 GB, free: 7.926 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009477/0.7206, allocations: 0.7749 MB / 0.5051 GB, free: 7.141 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000598/0.7212, allocations: 378.8 kB / 0.5054 GB, free: 6.766 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.7213, allocations: 24 kB / 0.5054 GB, free: 6.742 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002384/0.7216, allocations: 366.8 kB / 0.5058 GB, free: 6.375 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.723, allocations: 0.6481 MB / 0.5064 GB, free: 5.727 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.7248, allocations: 0.9599 MB / 0.5074 GB, free: 4.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.7264, allocations: 0.7272 MB / 0.5081 GB, free: 3.934 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-06/0.7264, allocations: 3.938 kB / 0.5081 GB, free: 3.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.004225/0.7307, allocations: 1.934 MB / 0.51 GB, free: 1.984 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001347/0.7321, allocations: 2.444 MB / 0.5124 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.7321, allocations: 8 kB / 0.5124 GB, free: 15.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001936/0.734, allocations: 0.5513 MB / 0.5129 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.7351, allocations: 183.7 kB / 0.5131 GB, free: 14.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/0.7468, allocations: 5.996 MB / 0.5189 GB, free: 8.469 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/0.7485, allocations: 211 kB / 0.5191 GB, free: 8.262 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.7487, allocations: 47.98 kB / 0.5192 GB, free: 8.215 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.7487, allocations: 4 kB / 0.5192 GB, free: 8.211 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004163/0.7529, allocations: 1.871 MB / 0.521 GB, free: 6.336 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.912e-05/0.753, allocations: 8 kB / 0.521 GB, free: 6.328 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/0.7546, allocations: 0.5513 MB / 0.5216 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009569/0.7556, allocations: 175.7 kB / 0.5217 GB, free: 5.602 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2662/1.022, allocations: 6.022 MB / 0.5276 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/1.023, allocations: 184.4 kB / 0.5278 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/1.023, allocations: 47.95 kB / 0.5278 GB, free: 125.4 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 125 * 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 38} Notification: Performance of prepare postOptimizeDAE: time 0.0004633/1.024, allocations: 225.6 kB / 0.528 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004326/1.024, allocations: 146.8 kB / 0.5282 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004715/1.025, allocations: 178.9 kB / 0.5283 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/1.025, allocations: 12.81 kB / 0.5284 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/1.025, allocations: 2.328 kB / 0.5284 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/1.025, allocations: 5.703 kB / 0.5284 GB, free: 125.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009106/1.034, allocations: 3.896 MB / 0.5322 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/1.034, allocations: 1.375 kB / 0.5322 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006071/1.035, allocations: 99.64 kB / 0.5323 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/1.036, allocations: 0.5242 MB / 0.5328 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001597/1.036, allocations: 21.36 kB / 0.5328 GB, free: 124.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/1.047, allocations: 5.923 MB / 0.5386 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.761e-06/1.047, allocations: 3.125 kB / 0.5386 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005064/1.052, allocations: 2.665 MB / 0.5412 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/1.053, allocations: 391.9 kB / 0.5416 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004497/1.054, allocations: 33.42 kB / 0.5416 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/1.055, allocations: 128.7 kB / 0.5417 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005568/1.056, allocations: 182.8 kB / 0.5419 GB, free: 123.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/1.056, allocations: 32.97 kB / 0.5419 GB, free: 123.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001774/1.058, allocations: 0.8743 MB / 0.5428 GB, free: 123 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.44e-07/1.058, allocations: 0 / 0.5428 GB, free: 123 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003665/1.061, allocations: 0.9271 MB / 0.5437 GB, free: 122.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003947/1.062, allocations: 179.3 kB / 0.5439 GB, free: 122.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006534/1.068, allocations: 3.147 MB / 0.5469 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/1.068, allocations: 7.75 kB / 0.5469 GB, free: 121.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002328/1.071, allocations: 1.112 MB / 0.548 GB, free: 121 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/1.073, allocations: 351.5 kB / 0.5484 GB, free: 120.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007176/1.08, allocations: 2.966 MB / 0.5513 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001623/1.082, allocations: 1.772 MB / 0.553 GB, free: 118.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004802/1.082, allocations: 89.12 kB / 0.5531 GB, free: 118.8 MB / 458.7 MB Notification: Performance of SimCode: time 2.573e-06/1.082, allocations: 0 / 0.5531 GB, free: 118.8 MB / 458.7 MB Notification: Performance of Templates: time 0.04797/1.13, allocations: 33.07 MB / 0.5854 GB, free: 105.2 MB / 458.7 MB