Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL.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) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 194.8 MB / 211.1 MB, free: 8.57 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003425, allocations: 8 kB / 264.1 MB, free: 3.465 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2947, allocations: 44.5 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1747/0.4695, allocations: 82.44 MB / 391 MB, free: 10.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004319/0.47, allocations: 87.94 kB / 391.1 MB, free: 10.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05647/0.5265, allocations: 13.43 MB / 404.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5265, allocations: 0 / 404.5 MB, free: 12.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.599e-05/0.5266, allocations: 23.98 kB / 404.6 MB, free: 12.59 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.002631/0.5292, allocations: 0.9578 MB / 405.5 MB, free: 11.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.5293, allocations: 12.03 kB / 405.5 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002375/0.5296, allocations: 114.5 kB / 405.6 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002128/0.5298, allocations: 91.02 kB / 405.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.5309, allocations: 0.4978 MB / 406.2 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-05/0.531, allocations: 53.3 kB / 406.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/0.5312, allocations: 68 kB / 406.3 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001959/0.5332, allocations: 0.7059 MB / 407 MB, free: 9.961 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.5332, allocations: 0 / 407 MB, free: 9.961 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.961e-05/0.5333, allocations: 28 kB / 407.1 MB, free: 9.934 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.5334, allocations: 16 kB / 407.1 MB, free: 9.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.535, allocations: 0.5438 MB / 407.6 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005949/0.541, allocations: 2.639 MB / 410.3 MB, free: 6.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.5428, allocations: 0.5919 MB / 410.9 MB, free: 6.012 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.652e-05/0.5429, allocations: 8.438 kB / 410.9 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008864/0.5438, allocations: 349.6 kB / 411.2 MB, free: 5.641 MB / 346.7 MB Notification: Performance of pre-optimization done (n=57): time 3.427e-06/0.5438, allocations: 4 kB / 411.2 MB, free: 5.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=57): time 0.003517/0.5473, allocations: 0.9796 MB / 412.2 MB, free: 4.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.5475, allocations: 115.8 kB / 412.3 MB, free: 4.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008919/0.5484, allocations: 445 kB / 412.7 MB, free: 4.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.036e-05/0.5485, allocations: 41.7 kB / 412.8 MB, free: 3.984 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003261/0.5488, allocations: 316.3 kB / 413.1 MB, free: 3.672 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002241/0.5491, allocations: 173.6 kB / 413.3 MB, free: 3.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.026e-05/0.5491, allocations: 12 kB / 413.3 MB, free: 3.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.5493, allocations: 374.7 kB / 413.6 MB, free: 3.113 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006696/0.55, allocations: 209.2 kB / 413.8 MB, free: 2.906 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008102/0.5508, allocations: 368.1 kB / 414.2 MB, free: 2.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007063/0.5516, allocations: 226.1 kB / 414.4 MB, free: 2.266 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.5516, allocations: 7.938 kB / 414.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002058/0.5537, allocations: 0.7107 MB / 415.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2511/0.8048, allocations: 1.567 MB / 416.7 MB, free: 91.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.737e-05/0.8049, allocations: 4.656 kB / 416.7 MB, free: 91.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009364/0.8058, allocations: 142.3 kB / 416.9 MB, free: 91.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008302/0.8067, allocations: 96.48 kB / 417 MB, free: 91.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004789/0.8115, allocations: 3.484 MB / 420.4 MB, free: 88.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009555/0.8125, allocations: 87.61 kB / 420.5 MB, free: 88.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.84e-05/0.8126, allocations: 26.31 kB / 420.5 MB, free: 88.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.8126, allocations: 3.812 kB / 420.6 MB, free: 88.89 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001713/0.8143, allocations: 0.6027 MB / 421.2 MB, free: 88.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.8144, allocations: 7.5 kB / 421.2 MB, free: 88.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006456/0.815, allocations: 148.2 kB / 421.3 MB, free: 88.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005954/0.8156, allocations: 90.28 kB / 421.4 MB, free: 88.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00417/0.8198, allocations: 3.478 MB / 424.9 MB, free: 86.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008184/0.8207, allocations: 75.66 kB / 424.9 MB, free: 86.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/0.8208, allocations: 22.78 kB / 425 MB, free: 86.21 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 65 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005709/0.8213, allocations: 324.4 kB / 425.3 MB, free: 86.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.8215, allocations: 56.22 kB / 425.3 MB, free: 86.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.8217, allocations: 64.34 kB / 425.4 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.8217, allocations: 7.562 kB / 425.4 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.8217, allocations: 0.8125 kB / 425.4 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.8217, allocations: 7.469 kB / 425.4 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002926/0.8247, allocations: 1.385 MB / 426.8 MB, free: 85.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.8247, allocations: 0 / 426.8 MB, free: 85.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004617/0.8252, allocations: 52.36 kB / 426.9 MB, free: 85.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006063/0.8258, allocations: 142 kB / 427 MB, free: 85.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-05/0.8259, allocations: 15.89 kB / 427 MB, free: 85.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003966/0.8299, allocations: 3.306 MB / 430.3 MB, free: 82.72 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8299, allocations: 1.906 kB / 430.3 MB, free: 82.72 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002346/0.8323, allocations: 0.9318 MB / 431.2 MB, free: 82.24 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004064/0.8327, allocations: 194.1 kB / 431.4 MB, free: 82.08 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.8329, allocations: 14.72 kB / 431.5 MB, free: 82.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006178/0.8335, allocations: 43.48 kB / 431.5 MB, free: 82.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.8338, allocations: 82.28 kB / 431.6 MB, free: 82.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-05/0.8339, allocations: 14.97 kB / 431.6 MB, free: 82.04 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006124/0.8345, allocations: 337.3 kB / 431.9 MB, free: 81.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.8345, allocations: 2.781 kB / 431.9 MB, free: 81.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001604/0.8361, allocations: 337.7 kB / 432.3 MB, free: 81.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,inductor.i) * Number of discrete variables: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002556/0.8387, allocations: 1.501 MB / 433.8 MB, free: 80.81 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002882/0.8416, allocations: 1.393 MB / 435.1 MB, free: 79.99 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.8417, allocations: 0 / 435.1 MB, free: 79.99 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009882/0.8427, allocations: 0.524 MB / 435.7 MB, free: 79.64 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008789/0.8436, allocations: 100.5 kB / 435.8 MB, free: 79.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.8482, allocations: 4.611 MB / 440.4 MB, free: 75.69 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004935/0.8487, allocations: 0.9547 MB / 441.3 MB, free: 74.97 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005999/0.8493, allocations: 88.92 kB / 441.4 MB, free: 74.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003935/0.8497, allocations: 228 kB / 441.6 MB, free: 74.79 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.8498, allocations: 0 / 441.6 MB, free: 74.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1139/0.9636, allocations: 15.03 MB / 456.7 MB, free: 64.09 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002718/0.9639, allocations: 257.9 kB / 456.9 MB, free: 63.73 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.191/4.155, allocations: 4 kB / 456.9 MB, free: 63.73 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_RL_res.mat does not exist to compare? outputFormat=mat