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.104/2.104, allocations: 234.9 MB / 250.5 MB, free: 9.68 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004294/0.0004294, allocations: 12 kB / 314.4 MB, free: 9.691 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3264, allocations: 54.85 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4707, allocations: 96.44 MB / 465.7 MB, free: 12.19 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.471, allocations: 79.95 kB / 465.8 MB, free: 12.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1178/0.5888, allocations: 31.55 MB / 497.3 MB, free: 12.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.809e-06/0.5889, allocations: 0 / 497.3 MB, free: 12.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001886/0.5891, allocations: 47.94 kB / 497.4 MB, free: 12.28 MB / 426.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.006385/0.5955, allocations: 2.28 MB / 499.7 MB, free: 9.934 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.5955, allocations: 8.031 kB / 499.7 MB, free: 9.926 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008414/0.5964, allocations: 245.3 kB / 499.9 MB, free: 9.684 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007469/0.6039, allocations: 2.187 MB / 0.4903 GB, free: 7.438 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.6041, allocations: 143.5 kB / 0.4905 GB, free: 7.297 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005299/0.6047, allocations: 172 kB / 0.4906 GB, free: 7.129 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00626/0.611, allocations: 2.492 MB / 0.4931 GB, free: 4.551 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.623e-05/0.6111, allocations: 4 kB / 0.4931 GB, free: 4.547 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002872/0.6114, allocations: 83.94 kB / 0.4931 GB, free: 4.465 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001197/0.6115, allocations: 71.5 kB / 0.4932 GB, free: 4.395 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0056/0.6171, allocations: 2.106 MB / 0.4953 GB, free: 2.285 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2694/0.8866, allocations: 7.192 MB / 0.5023 GB, free: 105.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003435/0.8901, allocations: 1.799 MB / 0.504 GB, free: 105 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.45e-05/0.8902, allocations: 15.19 kB / 0.5041 GB, free: 105 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001638/0.8918, allocations: 0.9507 MB / 0.505 GB, free: 104.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 4.593e-06/0.8918, allocations: 0 / 0.505 GB, free: 104.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.01208/0.9039, allocations: 3.875 MB / 0.5088 GB, free: 104.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.9041, allocations: 232.1 kB / 0.509 GB, free: 104.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002156/0.9062, allocations: 1.179 MB / 0.5101 GB, free: 104.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000235/0.9065, allocations: 72.36 kB / 0.5102 GB, free: 104.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006527/0.9072, allocations: 0.7748 MB / 0.511 GB, free: 103.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004025/0.9076, allocations: 378.6 kB / 0.5113 GB, free: 103.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.9077, allocations: 29.44 kB / 0.5114 GB, free: 103.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.9078, allocations: 364.4 kB / 0.5117 GB, free: 103.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.9092, allocations: 0.707 MB / 0.5124 GB, free: 103.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001718/0.911, allocations: 1.006 MB / 0.5134 GB, free: 103.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.9126, allocations: 0.7668 MB / 0.5141 GB, free: 103.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.9126, allocations: 0 / 0.5141 GB, free: 103.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.004219/0.9169, allocations: 2.047 MB / 0.5161 GB, free: 102.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004976/0.9174, allocations: 2.439 MB / 0.5185 GB, free: 99.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.677e-05/0.9174, allocations: 6.156 kB / 0.5185 GB, free: 99.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.9193, allocations: 0.5442 MB / 0.519 GB, free: 99.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000863/0.9202, allocations: 172.2 kB / 0.5192 GB, free: 99.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.9305, allocations: 6.056 MB / 0.5251 GB, free: 96.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.9321, allocations: 216.9 kB / 0.5253 GB, free: 96.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.9322, allocations: 47.72 kB / 0.5254 GB, free: 96.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.9323, allocations: 7.875 kB / 0.5254 GB, free: 96.15 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003996/0.9363, allocations: 1.94 MB / 0.5273 GB, free: 95.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.9363, allocations: 7.969 kB / 0.5273 GB, free: 95.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/0.9378, allocations: 0.5416 MB / 0.5278 GB, free: 95.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000853/0.9387, allocations: 166.1 kB / 0.528 GB, free: 95.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009457/0.9481, allocations: 6.095 MB / 0.5339 GB, free: 91.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.9493, allocations: 182.6 kB / 0.5341 GB, free: 91.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.9494, allocations: 45.5 kB / 0.5341 GB, free: 91.79 MB / 426.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.001477/0.9509, allocations: 0.8134 MB / 0.5349 GB, free: 91.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003365/0.9513, allocations: 146 kB / 0.5351 GB, free: 91.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003702/0.9517, allocations: 173.4 kB / 0.5352 GB, free: 91.15 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.9517, allocations: 17.28 kB / 0.5353 GB, free: 91.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.9517, allocations: 2.859 kB / 0.5353 GB, free: 91.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.9517, allocations: 6.375 kB / 0.5353 GB, free: 91.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006956/0.9587, allocations: 3.81 MB / 0.539 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.722e-06/0.9587, allocations: 0 / 0.539 GB, free: 88.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/0.9593, allocations: 100.1 kB / 0.5391 GB, free: 88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00153/0.9608, allocations: 0.5179 MB / 0.5396 GB, free: 87.58 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.961, allocations: 27.19 kB / 0.5396 GB, free: 87.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009617/0.9706, allocations: 6.056 MB / 0.5455 GB, free: 82.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.9706, allocations: 0 / 0.5455 GB, free: 82.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004886/0.9755, allocations: 2.819 MB / 0.5483 GB, free: 79.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008231/0.9764, allocations: 387.9 kB / 0.5487 GB, free: 79.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002628/0.9767, allocations: 35.56 kB / 0.5487 GB, free: 79.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.9777, allocations: 132.2 kB / 0.5488 GB, free: 79.22 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004593/0.9782, allocations: 183 kB / 0.549 GB, free: 79.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.784e-05/0.9783, allocations: 35.33 kB / 0.549 GB, free: 79.08 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001509/0.9798, allocations: 0.8941 MB / 0.5499 GB, free: 78.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.3e-07/0.9798, allocations: 0 / 0.5499 GB, free: 78.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00264/0.9825, allocations: 0.9274 MB / 0.5508 GB, free: 77.4 MB / 426.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[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 75 * 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.0002838/0.9828, allocations: 190.2 kB / 0.551 GB, free: 77.22 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005791/0.9886, allocations: 3.305 MB / 0.5542 GB, free: 74.34 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.112e-06/0.9886, allocations: 0.5625 kB / 0.5542 GB, free: 74.34 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002077/0.9907, allocations: 1.164 MB / 0.5553 GB, free: 73.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/0.9925, allocations: 352.6 kB / 0.5557 GB, free: 73.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007378/0.9999, allocations: 4.344 MB / 0.5599 GB, free: 69.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001489/1.001, allocations: 1.765 MB / 0.5616 GB, free: 67.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004494/1.002, allocations: 91.42 kB / 0.5617 GB, free: 67.45 MB / 426.7 MB Notification: Performance of SimCode: time 1.665e-06/1.002, allocations: 0 / 0.5617 GB, free: 67.45 MB / 426.7 MB Notification: Performance of Templates: time 0.0435/1.045, allocations: 33.18 MB / 0.5941 GB, free: 34.51 MB / 426.7 MB