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_RLV.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_RLV,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_RLV",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003464/0.0003465, allocations: 8 kB / 264.1 MB, free: 2.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.323, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1562/0.4793, allocations: 82.67 MB / 391.3 MB, free: 9.867 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003373/0.4797, allocations: 91.95 kB / 391.3 MB, free: 9.777 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05877/0.5385, allocations: 13.72 MB / 405.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.5385, allocations: 0 / 405.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.72e-05/0.5386, allocations: 20 kB / 405.1 MB, free: 11.96 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: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.002902/0.5415, allocations: 0.9751 MB / 406.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.5416, allocations: 8.031 kB / 406.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003095/0.5419, allocations: 110.5 kB / 406.2 MB, free: 10.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002684/0.5422, allocations: 86.97 kB / 406.3 MB, free: 10.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.5435, allocations: 0.5063 MB / 406.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/0.5436, allocations: 58 kB / 406.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001824/0.5438, allocations: 67.98 kB / 406.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.546, allocations: 0.7381 MB / 407.6 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.383e-05/0.546, allocations: 0 / 407.6 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/0.5462, allocations: 27.95 kB / 407.7 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.677e-05/0.5462, allocations: 20 kB / 407.7 MB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.548, allocations: 0.5555 MB / 408.2 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006555/0.5546, allocations: 2.678 MB / 410.9 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/0.5565, allocations: 0.603 MB / 411.5 MB, free: 5.262 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.037e-05/0.5566, allocations: 8.984 kB / 411.5 MB, free: 5.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009606/0.5576, allocations: 365.7 kB / 411.9 MB, free: 4.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=58): time 4.288e-06/0.5576, allocations: 0 / 411.9 MB, free: 4.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.003693/0.5613, allocations: 0.9912 MB / 412.9 MB, free: 3.836 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.5615, allocations: 123.4 kB / 413 MB, free: 3.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009855/0.5625, allocations: 445.1 kB / 413.4 MB, free: 3.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001239/0.5626, allocations: 37.7 kB / 413.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003638/0.563, allocations: 328.2 kB / 413.8 MB, free: 2.883 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.5632, allocations: 169.5 kB / 413.9 MB, free: 2.715 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/0.5633, allocations: 16 kB / 414 MB, free: 2.699 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/0.5635, allocations: 370.7 kB / 414.3 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006855/0.5642, allocations: 213.2 kB / 414.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008181/0.5651, allocations: 368.1 kB / 414.9 MB, free: 1.699 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000738/0.5658, allocations: 230.1 kB / 415.1 MB, free: 1.473 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.647e-06/0.5658, allocations: 4 kB / 415.1 MB, free: 1.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002103/0.568, allocations: 0.7106 MB / 415.8 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2472/0.8151, allocations: 1.568 MB / 417.4 MB, free: 90.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.678e-05/0.8152, allocations: 4.734 kB / 417.4 MB, free: 90.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008975/0.8161, allocations: 149.5 kB / 417.5 MB, free: 90.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007909/0.8169, allocations: 98.72 kB / 417.6 MB, free: 90.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005714/0.8227, allocations: 3.484 MB / 421.1 MB, free: 87.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.8239, allocations: 91.78 kB / 421.2 MB, free: 87.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.728e-05/0.824, allocations: 20.88 kB / 421.2 MB, free: 87.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.824, allocations: 3.312 kB / 421.2 MB, free: 87.84 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002435/0.8265, allocations: 0.6129 MB / 421.9 MB, free: 87.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.8265, allocations: 4.719 kB / 421.9 MB, free: 87.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008418/0.8274, allocations: 147.2 kB / 422 MB, free: 87.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007862/0.8282, allocations: 90.06 kB / 422.1 MB, free: 87.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005273/0.8335, allocations: 3.485 MB / 425.6 MB, free: 85.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.8345, allocations: 74.81 kB / 425.6 MB, free: 85.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.51e-05/0.8346, allocations: 28.84 kB / 425.7 MB, free: 85.16 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 (68): * Single equations (assignments): 66 * 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.0006958/0.8353, allocations: 311.2 kB / 426 MB, free: 84.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/0.8355, allocations: 60.02 kB / 426 MB, free: 84.95 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002192/0.8358, allocations: 70.7 kB / 426.1 MB, free: 84.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.8358, allocations: 9.031 kB / 426.1 MB, free: 84.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.8358, allocations: 1.062 kB / 426.1 MB, free: 84.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.8358, allocations: 3.75 kB / 426.1 MB, free: 84.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003894/0.8397, allocations: 1.389 MB / 427.5 MB, free: 84.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.8398, allocations: 0 / 427.5 MB, free: 84.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00063/0.8404, allocations: 55.38 kB / 427.6 MB, free: 84.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008268/0.8413, allocations: 140.7 kB / 427.7 MB, free: 84.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.161e-05/0.8413, allocations: 15.59 kB / 427.7 MB, free: 84.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005168/0.8465, allocations: 3.319 MB / 431 MB, free: 81.65 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.8466, allocations: 3.594 kB / 431 MB, free: 81.65 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002841/0.8494, allocations: 0.9269 MB / 432 MB, free: 81.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004008/0.8499, allocations: 191.5 kB / 432.2 MB, free: 81.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001653/0.85, allocations: 15.44 kB / 432.2 MB, free: 81.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007786/0.8508, allocations: 37.27 kB / 432.2 MB, free: 81 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/0.8512, allocations: 76.75 kB / 432.3 MB, free: 80.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-05/0.8512, allocations: 21.69 kB / 432.3 MB, free: 80.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007986/0.8521, allocations: 345.8 kB / 432.6 MB, free: 80.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.8521, allocations: 0 / 432.6 MB, free: 80.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002262/0.8543, allocations: 346.4 kB / 433 MB, free: 80.76 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 (44): * Single equations (assignments): 37 * 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.003271/0.8576, allocations: 1.502 MB / 434.5 MB, free: 79.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003637/0.8613, allocations: 1.397 MB / 435.9 MB, free: 78.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.8613, allocations: 3.75 kB / 435.9 MB, free: 78.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.8625, allocations: 0.5342 MB / 436.4 MB, free: 78.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.8635, allocations: 87.86 kB / 436.5 MB, free: 78.54 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005736/0.8693, allocations: 4.668 MB / 441.2 MB, free: 74.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006156/0.87, allocations: 0.9541 MB / 442.1 MB, free: 73.87 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007419/0.8707, allocations: 93.39 kB / 442.2 MB, free: 73.85 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005484/0.8713, allocations: 234.3 kB / 442.4 MB, free: 73.67 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.8713, allocations: 0 / 442.4 MB, free: 73.67 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07023/0.9416, allocations: 15.2 MB / 457.6 MB, free: 63.14 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002652/0.9419, allocations: 263.2 kB / 457.9 MB, free: 62.79 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.325/4.267, allocations: 3.938 kB / 457.9 MB, free: 62.78 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_RLV_res.mat does not exist to compare? outputFormat=mat