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.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) 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.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="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R") Notification: Performance of loadModel(ModelicaTest): time 2.607/2.607, allocations: 234.9 MB / 251.1 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004554/0.0004557, allocations: 12 kB / 314.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.375, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2292/0.6043, allocations: 96 MB / 465.8 MB, free: 10.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004102/0.6048, allocations: 83.89 kB / 465.9 MB, free: 10.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.498/1.103, allocations: 38.52 MB / 0.4926 GB, free: 81.08 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.935e-06/1.103, allocations: 0 / 0.4926 GB, free: 81.08 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002172/1.103, allocations: 51.94 kB / 0.4926 GB, free: 81.03 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: 481 * Number of variables: 481 Notification: Performance of Generate backend data structure: time 0.00838/1.111, allocations: 2.346 MB / 0.4949 GB, free: 78.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/1.112, allocations: 8.031 kB / 0.4949 GB, free: 78.61 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/1.113, allocations: 245.2 kB / 0.4952 GB, free: 78.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00834/1.121, allocations: 2.23 MB / 0.4973 GB, free: 76.08 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001896/1.121, allocations: 147.7 kB / 0.4975 GB, free: 75.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006908/1.122, allocations: 195.9 kB / 0.4977 GB, free: 75.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007568/1.13, allocations: 2.641 MB / 0.5003 GB, free: 73.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.46e-05/1.13, allocations: 3.938 kB / 0.5003 GB, free: 73.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003065/1.13, allocations: 76 kB / 0.5003 GB, free: 72.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001108/1.13, allocations: 87.66 kB / 0.5004 GB, free: 72.86 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007014/1.137, allocations: 2.197 MB / 0.5026 GB, free: 70.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02043/1.158, allocations: 7.437 MB / 0.5098 GB, free: 63.1 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004182/1.162, allocations: 1.761 MB / 0.5115 GB, free: 61.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001513/1.162, allocations: 16.98 kB / 0.5116 GB, free: 61.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002638/1.165, allocations: 1.028 MB / 0.5126 GB, free: 60.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 5.18e-06/1.165, allocations: 0 / 0.5126 GB, free: 60.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=134): time 0.01768/1.183, allocations: 3.996 MB / 0.5165 GB, free: 56.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/1.183, allocations: 230.9 kB / 0.5167 GB, free: 55.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002884/1.186, allocations: 1.311 MB / 0.518 GB, free: 54.63 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004793/1.186, allocations: 77.67 kB / 0.518 GB, free: 54.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008542/1.187, allocations: 0.7984 MB / 0.5188 GB, free: 53.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006288/1.188, allocations: 402.5 kB / 0.5192 GB, free: 53.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/1.188, allocations: 28 kB / 0.5192 GB, free: 53.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/1.188, allocations: 366.8 kB / 0.5196 GB, free: 52.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/1.19, allocations: 0.7534 MB / 0.5203 GB, free: 52.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002181/1.192, allocations: 1.069 MB / 0.5214 GB, free: 51.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002301/1.195, allocations: 0.8104 MB / 0.5222 GB, free: 50.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.281e-05/1.195, allocations: 4 kB / 0.5222 GB, free: 50.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.006009/1.201, allocations: 2.145 MB / 0.5242 GB, free: 48.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001915/1.201, allocations: 281.5 kB / 0.5245 GB, free: 47.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/1.201, allocations: 4 kB / 0.5245 GB, free: 47.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/1.203, allocations: 0.5549 MB / 0.5251 GB, free: 47.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/1.205, allocations: 179.7 kB / 0.5252 GB, free: 46.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/1.218, allocations: 6.198 MB / 0.5313 GB, free: 40.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002175/1.22, allocations: 202.9 kB / 0.5315 GB, free: 40.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/1.22, allocations: 51.94 kB / 0.5315 GB, free: 40.36 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/1.22, allocations: 4 kB / 0.5315 GB, free: 40.35 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00502/1.225, allocations: 2.05 MB / 0.5335 GB, free: 38.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/1.225, allocations: 8 kB / 0.5335 GB, free: 38.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001814/1.227, allocations: 0.5556 MB / 0.5341 GB, free: 37.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/1.228, allocations: 175.7 kB / 0.5343 GB, free: 37.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/1.241, allocations: 6.235 MB / 0.5403 GB, free: 31.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/1.242, allocations: 175.2 kB / 0.5405 GB, free: 31.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001671/1.243, allocations: 48 kB / 0.5406 GB, free: 30.96 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: 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 (140): * Single equations (assignments): 139 * 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.002275/1.245, allocations: 0.8487 MB / 0.5414 GB, free: 30.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005895/1.246, allocations: 146.3 kB / 0.5415 GB, free: 29.95 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006432/1.246, allocations: 186.5 kB / 0.5417 GB, free: 29.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/1.246, allocations: 12 kB / 0.5417 GB, free: 29.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/1.246, allocations: 4 kB / 0.5417 GB, free: 29.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/1.246, allocations: 11.95 kB / 0.5417 GB, free: 29.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/1.257, allocations: 4.003 MB / 0.5456 GB, free: 25.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/1.257, allocations: 3.938 kB / 0.5456 GB, free: 25.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/1.258, allocations: 119.9 kB / 0.5458 GB, free: 25.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/1.26, allocations: 0.524 MB / 0.5463 GB, free: 25.02 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002771/1.261, allocations: 23.98 kB / 0.5463 GB, free: 25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/1.273, allocations: 6.151 MB / 0.5523 GB, free: 18.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/1.273, allocations: 4.109 kB / 0.5523 GB, free: 18.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00766/1.281, allocations: 2.993 MB / 0.5552 GB, free: 15.69 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0015/1.283, allocations: 411 kB / 0.5556 GB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000575/1.283, allocations: 47.94 kB / 0.5557 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/1.285, allocations: 135.9 kB / 0.5558 GB, free: 15.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008658/1.286, allocations: 236.9 kB / 0.556 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/1.286, allocations: 35.98 kB / 0.5561 GB, free: 14.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001988/1.288, allocations: 0.8922 MB / 0.5569 GB, free: 13.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.032e-06/1.288, allocations: 0 / 0.5569 GB, free: 13.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004208/1.292, allocations: 0.9501 MB / 0.5579 GB, free: 12.96 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: 48 (pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].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[1].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[3].off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 83 * 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.0005616/1.293, allocations: 205.4 kB / 0.558 GB, free: 12.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009183/1.302, allocations: 3.476 MB / 0.5614 GB, free: 9.258 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/1.302, allocations: 0.5625 kB / 0.5614 GB, free: 9.258 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003487/1.306, allocations: 1.278 MB / 0.5627 GB, free: 7.969 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003091/1.309, allocations: 369.3 kB / 0.563 GB, free: 7.609 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/1.32, allocations: 4.496 MB / 0.5674 GB, free: 3.086 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001963/1.322, allocations: 1.805 MB / 0.5692 GB, free: 1.246 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006444/1.322, allocations: 91.44 kB / 0.5693 GB, free: 1.156 MB / 394.7 MB Notification: Performance of SimCode: time 1.633e-06/1.322, allocations: 0 / 0.5693 GB, free: 1.156 MB / 394.7 MB Notification: Performance of Templates: time 0.07732/1.4, allocations: 34.38 MB / 0.6029 GB, free: 14.75 MB / 442.7 MB