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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.283/2.283, allocations: 235.1 MB / 243 MB, free: 9.504 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.501e-05/1.541e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2741, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1482/0.4224, allocations: 95.69 MB / 453.7 MB, free: 15.11 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.4227, allocations: 71.95 kB / 453.8 MB, free: 15.04 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3567/0.7794, allocations: 31.29 MB / 485.1 MB, free: 91.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.751e-06/0.7794, allocations: 0 / 485.1 MB, free: 91.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001723/0.7796, allocations: 53.03 kB / 485.1 MB, free: 91.45 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.005264/0.7849, allocations: 2.061 MB / 487.2 MB, free: 90.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.785, allocations: 11.69 kB / 487.2 MB, free: 90.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009241/0.7859, allocations: 237.4 kB / 487.4 MB, free: 90.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0068/0.7927, allocations: 2.172 MB / 489.6 MB, free: 89.28 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.7929, allocations: 66.94 kB / 489.7 MB, free: 89.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005703/0.7935, allocations: 104.7 kB / 489.8 MB, free: 89.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004599/0.7981, allocations: 1.913 MB / 491.7 MB, free: 88.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005301/0.8034, allocations: 2.183 MB / 493.9 MB, free: 86.13 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.956e-05/0.8035, allocations: 0 / 493.9 MB, free: 86.13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002489/0.8038, allocations: 4 kB / 493.9 MB, free: 86.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.282e-05/0.8039, allocations: 71.5 kB / 494 MB, free: 86.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01452/0.8184, allocations: 6.846 MB / 0.4891 GB, free: 79.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003097/0.8216, allocations: 1.688 MB / 0.4907 GB, free: 77.47 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001972/0.8236, allocations: 1.123 MB / 0.4918 GB, free: 76.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.326e-05/0.8237, allocations: 13.31 kB / 0.4918 GB, free: 76.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001565/0.8253, allocations: 0.8849 MB / 0.4927 GB, free: 75.42 MB / 394.7 MB Notification: Performance of pre-optimization done (n=126): time 5.169e-06/0.8253, allocations: 0 / 0.4927 GB, free: 75.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=126): time 0.003257/0.8286, allocations: 1.634 MB / 0.4943 GB, free: 73.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.947e-05/0.8287, allocations: 238.9 kB / 0.4945 GB, free: 73.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.8306, allocations: 1.002 MB / 0.4955 GB, free: 72.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002503/0.8309, allocations: 45.67 kB / 0.4955 GB, free: 72.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000685/0.8316, allocations: 0.7863 MB / 0.4963 GB, free: 71.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004495/0.8321, allocations: 362.7 kB / 0.4966 GB, free: 71.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.806e-05/0.8322, allocations: 8 kB / 0.4966 GB, free: 71.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.8323, allocations: 358.8 kB / 0.497 GB, free: 70.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.8334, allocations: 0.6325 MB / 0.4976 GB, free: 70.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.8348, allocations: 0.9169 MB / 0.4985 GB, free: 69.27 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.8361, allocations: 0.6926 MB / 0.4992 GB, free: 68.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.8361, allocations: 7.953 kB / 0.4992 GB, free: 68.57 MB / 394.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.003349/0.8395, allocations: 1.805 MB / 0.5009 GB, free: 66.76 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005172/0.84, allocations: 2.447 MB / 0.5033 GB, free: 64.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.8401, allocations: 8 kB / 0.5033 GB, free: 64.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001727/0.8418, allocations: 0.5472 MB / 0.5039 GB, free: 63.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009274/0.8428, allocations: 179.7 kB / 0.5041 GB, free: 63.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009069/0.8519, allocations: 5.865 MB / 0.5098 GB, free: 57.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.8535, allocations: 183 kB / 0.51 GB, free: 57.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002268/0.8537, allocations: 48.05 kB / 0.51 GB, free: 57.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.8538, allocations: 0 / 0.51 GB, free: 57.18 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003192/0.857, allocations: 1.71 MB / 0.5117 GB, free: 55.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.305e-05/0.857, allocations: 11.88 kB / 0.5117 GB, free: 55.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/0.8585, allocations: 0.5404 MB / 0.5122 GB, free: 54.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000887/0.8594, allocations: 175.7 kB / 0.5124 GB, free: 54.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008981/0.8684, allocations: 5.923 MB / 0.5182 GB, free: 48.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.8695, allocations: 155.1 kB / 0.5183 GB, free: 48.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/0.8697, allocations: 48.06 kB / 0.5184 GB, free: 48.5 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 () * 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.0004092/0.8702, allocations: 184.8 kB / 0.5185 GB, free: 48.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/0.8706, allocations: 130.4 kB / 0.5187 GB, free: 48.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004201/0.871, allocations: 157.5 kB / 0.5188 GB, free: 48.03 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.871, allocations: 12 kB / 0.5188 GB, free: 48.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.123e-06/0.871, allocations: 7.953 kB / 0.5188 GB, free: 48.01 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.8711, allocations: 3.984 kB / 0.5188 GB, free: 48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007359/0.8784, allocations: 3.569 MB / 0.5223 GB, free: 44.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/0.8785, allocations: 0 / 0.5223 GB, free: 44.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005529/0.879, allocations: 91.83 kB / 0.5224 GB, free: 44.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.8806, allocations: 0.5171 MB / 0.5229 GB, free: 43.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.8808, allocations: 4 kB / 0.5229 GB, free: 43.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008718/0.8896, allocations: 5.76 MB / 0.5285 GB, free: 37.92 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.602e-06/0.8896, allocations: 0 / 0.5285 GB, free: 37.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004425/0.894, allocations: 2.567 MB / 0.531 GB, free: 35.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.8951, allocations: 371.2 kB / 0.5314 GB, free: 34.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003855/0.8956, allocations: 19.94 kB / 0.5314 GB, free: 34.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.8968, allocations: 107.9 kB / 0.5315 GB, free: 34.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005687/0.8974, allocations: 177 kB / 0.5317 GB, free: 34.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.8975, allocations: 35.98 kB / 0.5317 GB, free: 34.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001413/0.8989, allocations: 0.7491 MB / 0.5325 GB, free: 33.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.56e-07/0.8989, allocations: 0 / 0.5325 GB, free: 33.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003205/0.9022, allocations: 0.8446 MB / 0.5333 GB, free: 33.02 MB / 394.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[1].off,rectifier.thyristor_p.idealThyristor[3].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.0003141/0.9025, allocations: 172.5 kB / 0.5334 GB, free: 32.84 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005437/0.908, allocations: 3.002 MB / 0.5364 GB, free: 29.82 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.866e-06/0.908, allocations: 0.5625 kB / 0.5364 GB, free: 29.82 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.9099, allocations: 1.068 MB / 0.5374 GB, free: 28.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.9119, allocations: 305.8 kB / 0.5377 GB, free: 28.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/0.9188, allocations: 2.89 MB / 0.5405 GB, free: 25.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0016/0.9204, allocations: 1.774 MB / 0.5423 GB, free: 23.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004579/0.9209, allocations: 83.42 kB / 0.5423 GB, free: 23.63 MB / 394.7 MB Notification: Performance of SimCode: time 1.683e-06/0.9209, allocations: 0 / 0.5423 GB, free: 23.63 MB / 394.7 MB Notification: Performance of Templates: time 0.0487/0.9696, allocations: 32.26 MB / 0.5738 GB, free: 7.355 MB / 410.7 MB