Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive.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_DC_Drive,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_DC_Drive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.858/1.858, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003374, allocations: 12 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.09008, allocations: 44.5 MB / 308.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4377/0.5278, allocations: 100.6 MB / 409.1 MB, free: 12.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.5281, allocations: 96.81 kB / 409.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1668/0.695, allocations: 36.3 MB / 445.5 MB, free: 7.953 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.695, allocations: 0 / 445.5 MB, free: 7.953 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001978/0.6952, allocations: 36 kB / 445.6 MB, free: 7.918 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 365 * Number of variables: 365 Notification: Performance of Generate backend data structure: time 0.007968/0.7032, allocations: 2.072 MB / 447.6 MB, free: 5.918 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.7033, allocations: 8.031 kB / 447.6 MB, free: 5.91 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009616/0.7043, allocations: 220.8 kB / 447.9 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001202/0.7055, allocations: 245.5 kB / 448.1 MB, free: 5.531 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005299/0.7108, allocations: 1.38 MB / 449.5 MB, free: 4.398 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.711, allocations: 112 kB / 449.6 MB, free: 4.336 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005108/0.7115, allocations: 154.3 kB / 449.7 MB, free: 4.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004745/0.7163, allocations: 1.557 MB / 451.3 MB, free: 3.109 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.438e-05/0.7164, allocations: 11.44 kB / 451.3 MB, free: 3.102 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002108/0.7166, allocations: 56.75 kB / 451.4 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.387e-05/0.7167, allocations: 36 kB / 451.4 MB, free: 3.055 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004661/0.7213, allocations: 1.252 MB / 452.6 MB, free: 2.207 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01648/0.7379, allocations: 6.398 MB / 459 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003374/0.7413, allocations: 1.045 MB / 460.1 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001052/0.7414, allocations: 9 kB / 460.1 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001684/0.7431, allocations: 0.5795 MB / 460.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=92): time 3.556e-06/0.7431, allocations: 0 / 460.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=95): time 0.0111/0.7543, allocations: 3.19 MB / 463.9 MB, free: 7.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.7544, allocations: 167.2 kB / 464 MB, free: 7.551 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003888/0.7583, allocations: 1.268 MB / 465.3 MB, free: 6.277 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002752/0.7586, allocations: 53.69 kB / 465.4 MB, free: 6.219 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000891/0.7595, allocations: 0.7389 MB / 466.1 MB, free: 5.473 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005534/0.7601, allocations: 323.5 kB / 466.4 MB, free: 5.152 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.7602, allocations: 24 kB / 466.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.7604, allocations: 362.8 kB / 466.8 MB, free: 4.766 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.7619, allocations: 454.3 kB / 467.2 MB, free: 4.324 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001889/0.7639, allocations: 0.8683 MB / 468.1 MB, free: 3.262 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001743/0.7656, allocations: 0.5455 MB / 468.6 MB, free: 2.719 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-05/0.7657, allocations: 4 kB / 468.6 MB, free: 2.715 MB / 346.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.004837/0.7705, allocations: 1.554 MB / 470.2 MB, free: 1.129 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002321/0.7729, allocations: 5.056 MB / 475.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.803e-05/0.773, allocations: 12 kB / 475.3 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001095/0.7741, allocations: 202.1 kB / 475.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002215/0.7763, allocations: 311.5 kB / 475.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005991/0.7824, allocations: 3.815 MB / 479.6 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00237/0.7848, allocations: 175.8 kB / 479.8 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002363/0.785, allocations: 59.94 kB / 479.8 MB, free: 6.852 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.7851, allocations: 4 kB / 479.8 MB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004034/0.7891, allocations: 1.463 MB / 481.3 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.882e-05/0.7892, allocations: 16 kB / 481.3 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008066/0.79, allocations: 197.8 kB / 481.5 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.7921, allocations: 307.5 kB / 481.8 MB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005798/0.7979, allocations: 3.8 MB / 485.6 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.7993, allocations: 116 kB / 485.7 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/0.7995, allocations: 56 kB / 485.8 MB, free: 0.6172 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (146): * Single equations (assignments): 144 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {4 13} Notification: Performance of prepare postOptimizeDAE: time 0.001361/0.8008, allocations: 0.4967 MB / 486.3 MB, free: 112 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004756/0.8013, allocations: 138.4 kB / 486.4 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00345/0.8048, allocations: 1.21 MB / 487.6 MB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.8048, allocations: 8 kB / 487.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.8049, allocations: 0 / 487.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-05/0.8049, allocations: 8.156 kB / 487.6 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007633/0.8125, allocations: 2.75 MB / 490.4 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.8126, allocations: 0 / 490.4 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.814, allocations: 167.9 kB / 490.5 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007994/0.8148, allocations: 169.6 kB / 490.7 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001256/0.8149, allocations: 31.92 kB / 490.7 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005614/0.8205, allocations: 3.721 MB / 494.4 MB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.8206, allocations: 4.031 kB / 494.5 MB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004768/0.8254, allocations: 1.88 MB / 496.3 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009103/0.8263, allocations: 319.3 kB / 496.6 MB, free: 5.227 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003223/0.8266, allocations: 28.09 kB / 496.7 MB, free: 5.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.8282, allocations: 139.8 kB / 496.8 MB, free: 5.062 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003661/0.8286, allocations: 100.7 kB / 496.9 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.554e-05/0.8287, allocations: 31.98 kB / 496.9 MB, free: 4.934 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002769/0.8315, allocations: 0.9813 MB / 497.9 MB, free: 3.949 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8315, allocations: 0 / 497.9 MB, free: 3.949 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00333/0.8349, allocations: 0.6288 MB / 498.5 MB, free: 3.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,pulse2.twoPulse.filter[1].firstOrder.y,pulse2.twoPulse.filter[1].transferFunction[1].x_scaled[1],pulse2.twoPulse.filter[1].transferFunction[2].x_scaled[1],inductor.i,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,lMains.i) * Number of discrete variables: 20 (pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[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_n2.off,rectifier.thyristor_p2.off,rectifier.thyristor_p1.off,rectifier.thyristor_n1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 68 * 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: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.005603/0.8405, allocations: 3.007 MB / 0.4898 GB, free: 232 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006034/0.8466, allocations: 2.417 MB / 0.4922 GB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.8466, allocations: 4 kB / 0.4922 GB, free: 13.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002077/0.8487, allocations: 0.8472 MB / 0.493 GB, free: 12.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.851, allocations: 296.4 kB / 0.4933 GB, free: 12.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.8659, allocations: 13.85 MB / 0.5068 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001335/0.8673, allocations: 1.325 MB / 0.5081 GB, free: 12.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/0.8687, allocations: 0.6047 MB / 0.5087 GB, free: 12.23 MB / 410.7 MB Notification: Performance of SimCode: time 3.527e-06/0.8688, allocations: 0 / 0.5087 GB, free: 12.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.812/4.681, allocations: 40.98 MB / 0.5487 GB, free: 114.8 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_DC_Drive_res.mat does not exist to compare? outputFormat=mat