Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.532/2.532, allocations: 234.9 MB / 251.1 MB, free: 10.55 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006282/0.0006283, allocations: 16 kB / 314.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3666, allocations: 54.87 MB / 369.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1856/0.5522, allocations: 96.42 MB / 466.2 MB, free: 10.3 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/0.5527, allocations: 79.95 kB / 466.3 MB, free: 10.22 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4545/1.007, allocations: 31.54 MB / 497.9 MB, free: 87.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.377e-06/1.007, allocations: 0 / 497.9 MB, free: 87.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002592/1.007, allocations: 59.84 kB / 497.9 MB, free: 87.4 MB / 394.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.00875/1.016, allocations: 2.272 MB / 0.4885 GB, free: 85.09 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/1.016, allocations: 8.031 kB / 0.4885 GB, free: 85.08 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001297/1.018, allocations: 245.1 kB / 0.4887 GB, free: 84.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008645/1.026, allocations: 2.197 MB / 0.4908 GB, free: 82.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/1.027, allocations: 135.5 kB / 0.491 GB, free: 82.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008159/1.027, allocations: 180 kB / 0.4911 GB, free: 82.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008517/1.036, allocations: 2.504 MB / 0.4936 GB, free: 79.76 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001027/1.036, allocations: 4 kB / 0.4936 GB, free: 79.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005518/1.037, allocations: 75.98 kB / 0.4937 GB, free: 79.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/1.037, allocations: 71.5 kB / 0.4937 GB, free: 79.61 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009803/1.047, allocations: 2.106 MB / 0.4958 GB, free: 77.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03032/1.077, allocations: 7.207 MB / 0.5028 GB, free: 70.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006002/1.083, allocations: 1.709 MB / 0.5045 GB, free: 68.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001907/1.083, allocations: 16.98 kB / 0.5045 GB, free: 68.51 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003742/1.087, allocations: 0.9847 MB / 0.5055 GB, free: 67.49 MB / 394.7 MB Notification: Performance of pre-optimization done (n=128): time 7.574e-06/1.087, allocations: 0 / 0.5055 GB, free: 67.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=128): time 0.02042/1.108, allocations: 3.914 MB / 0.5093 GB, free: 63.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/1.108, allocations: 234.8 kB / 0.5095 GB, free: 63.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00311/1.111, allocations: 1.282 MB / 0.5108 GB, free: 61.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004826/1.111, allocations: 73.67 kB / 0.5108 GB, free: 61.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/1.113, allocations: 0.7671 MB / 0.5116 GB, free: 61.13 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007477/1.113, allocations: 386.5 kB / 0.512 GB, free: 60.76 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/1.114, allocations: 29.8 kB / 0.512 GB, free: 60.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001739/1.114, allocations: 362.8 kB / 0.5123 GB, free: 60.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002191/1.116, allocations: 0.7027 MB / 0.513 GB, free: 59.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002487/1.119, allocations: 1.026 MB / 0.514 GB, free: 58.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/1.121, allocations: 0.7675 MB / 0.5148 GB, free: 57.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.837e-05/1.121, allocations: 0 / 0.5148 GB, free: 57.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.006127/1.127, allocations: 2.031 MB / 0.5168 GB, free: 55.72 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002046/1.127, allocations: 277.9 kB / 0.517 GB, free: 55.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/1.127, allocations: 8 kB / 0.517 GB, free: 55.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/1.13, allocations: 0.5471 MB / 0.5176 GB, free: 54.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/1.131, allocations: 171.7 kB / 0.5177 GB, free: 54.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/1.145, allocations: 6.064 MB / 0.5237 GB, free: 48.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/1.148, allocations: 203 kB / 0.5238 GB, free: 48.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004268/1.148, allocations: 48 kB / 0.5239 GB, free: 48.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/1.148, allocations: 4 kB / 0.5239 GB, free: 48.19 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005804/1.154, allocations: 1.952 MB / 0.5258 GB, free: 46.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.179e-05/1.154, allocations: 4 kB / 0.5258 GB, free: 46.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001918/1.156, allocations: 0.5318 MB / 0.5263 GB, free: 45.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/1.158, allocations: 167.7 kB / 0.5265 GB, free: 45.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/1.171, allocations: 6.104 MB / 0.5324 GB, free: 39.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/1.172, allocations: 187.1 kB / 0.5326 GB, free: 39.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/1.173, allocations: 44 kB / 0.5327 GB, free: 39.07 MB / 394.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 (128): * Single equations (assignments): 127 * 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 36} Notification: Performance of prepare postOptimizeDAE: time 0.002458/1.175, allocations: 0.8131 MB / 0.5335 GB, free: 38.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005717/1.176, allocations: 134.4 kB / 0.5336 GB, free: 38.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007406/1.177, allocations: 186.1 kB / 0.5338 GB, free: 37.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/1.177, allocations: 16 kB / 0.5338 GB, free: 37.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/1.177, allocations: 0 / 0.5338 GB, free: 37.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/1.177, allocations: 7.938 kB / 0.5338 GB, free: 37.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01201/1.189, allocations: 3.886 MB / 0.5376 GB, free: 33.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/1.189, allocations: 3.953 kB / 0.5376 GB, free: 33.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/1.19, allocations: 103.8 kB / 0.5377 GB, free: 33.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002352/1.192, allocations: 0.524 MB / 0.5382 GB, free: 33.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003529/1.193, allocations: 23.98 kB / 0.5382 GB, free: 33.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01361/1.206, allocations: 6.053 MB / 0.5441 GB, free: 27.13 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/1.206, allocations: 4 kB / 0.5441 GB, free: 27.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008201/1.215, allocations: 2.909 MB / 0.547 GB, free: 24.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001444/1.216, allocations: 395.1 kB / 0.5474 GB, free: 23.79 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006568/1.217, allocations: 31.98 kB / 0.5474 GB, free: 23.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/1.219, allocations: 127.9 kB / 0.5475 GB, free: 23.64 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000885/1.22, allocations: 184.7 kB / 0.5477 GB, free: 23.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002024/1.22, allocations: 39.94 kB / 0.5477 GB, free: 23.41 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002275/1.222, allocations: 0.8761 MB / 0.5486 GB, free: 22.53 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.573e-06/1.222, allocations: 3.938 kB / 0.5486 GB, free: 22.53 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004716/1.227, allocations: 0.9265 MB / 0.5495 GB, free: 21.6 MB / 394.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[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].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[2].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].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 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006323/1.228, allocations: 188.5 kB / 0.5497 GB, free: 21.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009994/1.238, allocations: 3.331 MB / 0.5529 GB, free: 18.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.707e-05/1.238, allocations: 4.688 kB / 0.5529 GB, free: 18.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003668/1.242, allocations: 1.24 MB / 0.5541 GB, free: 16.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003135/1.245, allocations: 349.4 kB / 0.5545 GB, free: 16.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/1.257, allocations: 4.401 MB / 0.5588 GB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002729/1.26, allocations: 1.762 MB / 0.5605 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006778/1.261, allocations: 91.44 kB / 0.5606 GB, free: 10.14 MB / 394.7 MB Notification: Performance of SimCode: time 1.783e-06/1.261, allocations: 0 / 0.5606 GB, free: 10.14 MB / 394.7 MB Notification: Performance of Templates: time 0.07907/1.34, allocations: 33.18 MB / 0.593 GB, free: 8.945 MB / 426.7 MB