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.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_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.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierCenterTap2mPulse_ThyristorCenterTap2mPulse_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.022/2.022, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.000356, allocations: 11.94 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09712/0.09752, allocations: 44.5 MB / 308.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.5397, allocations: 86.43 MB / 395 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/0.5401, allocations: 89.67 kB / 395.1 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1314/0.6716, allocations: 35.74 MB / 430.8 MB, free: 2.352 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.006e-06/0.6716, allocations: 0 / 430.8 MB, free: 2.352 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002146/0.6719, allocations: 46.44 kB / 430.9 MB, free: 2.344 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 440 * Number of variables: 440 Notification: Performance of Generate backend data structure: time 0.007936/0.6798, allocations: 2.199 MB / 433.1 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.081e-05/0.6799, allocations: 7.75 kB / 433.1 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001113/0.681, allocations: 258.4 kB / 433.3 MB, free: 0.8984 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007383/0.6818, allocations: 224.6 kB / 433.5 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007226/0.689, allocations: 1.987 MB / 435.5 MB, free: 15.56 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/0.6893, allocations: 133.8 kB / 435.7 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007457/0.6901, allocations: 173.5 kB / 435.8 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007913/0.698, allocations: 2.419 MB / 438.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.76e-05/0.6981, allocations: 0 / 438.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002789/0.6984, allocations: 69.31 kB / 438.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.6985, allocations: 78.45 kB / 438.4 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00766/0.7062, allocations: 2.091 MB / 440.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02191/0.7282, allocations: 7.262 MB / 447.7 MB, free: 5.527 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005364/0.7336, allocations: 1.681 MB / 449.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001063/0.7338, allocations: 12.94 kB / 449.4 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002514/0.7363, allocations: 0.8791 MB / 450.3 MB, free: 2.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=113): time 4.789e-06/0.7363, allocations: 0 / 450.3 MB, free: 2.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=113): time 0.01232/0.7487, allocations: 2.903 MB / 453.2 MB, free: 15.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.7488, allocations: 127.8 kB / 453.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003009/0.7518, allocations: 1.118 MB / 454.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003778/0.7523, allocations: 69.67 kB / 454.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.7534, allocations: 0.7466 MB / 455.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007212/0.7542, allocations: 342.6 kB / 455.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.7543, allocations: 24 kB / 455.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.7545, allocations: 354.8 kB / 456 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002187/0.7567, allocations: 0.6506 MB / 456.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002402/0.7592, allocations: 0.8653 MB / 457.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/0.7614, allocations: 0.6668 MB / 458.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.7615, allocations: 0 / 458.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=147) (initialization): time 0.005666/0.7671, allocations: 1.76 MB / 459.9 MB, free: 9.168 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001004/0.7682, allocations: 1.924 MB / 461.8 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/0.7683, allocations: 4 kB / 461.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001834/0.7701, allocations: 431.1 kB / 462.3 MB, free: 6.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.7717, allocations: 179.7 kB / 462.4 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/0.7822, allocations: 4.514 MB / 467 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/0.7842, allocations: 179.2 kB / 467.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002755/0.7845, allocations: 40 kB / 467.2 MB, free: 1.625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.7845, allocations: 4 kB / 467.2 MB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005192/0.7897, allocations: 1.68 MB / 468.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/0.7898, allocations: 8 kB / 468.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.7913, allocations: 433.1 kB / 469.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.7928, allocations: 159.7 kB / 469.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.803, allocations: 4.586 MB / 474 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.8045, allocations: 155.2 kB / 474.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001735/0.8047, allocations: 47.98 kB / 474.2 MB, free: 10.44 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,$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,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 (121): * Single equations (assignments): 120 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.002208/0.8069, allocations: 0.7895 MB / 475 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005019/0.8074, allocations: 134.4 kB / 475.2 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006593/0.8081, allocations: 164.7 kB / 475.3 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.8081, allocations: 12 kB / 475.3 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.8082, allocations: 3.938 kB / 475.3 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/0.8082, allocations: 3.984 kB / 475.3 MB, free: 9.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01659/0.8248, allocations: 3.608 MB / 478.9 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.751e-05/0.8249, allocations: 7.953 kB / 478.9 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/0.8266, allocations: 119.8 kB / 479.1 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002306/0.8289, allocations: 405 kB / 479.5 MB, free: 5.156 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002932/0.8292, allocations: 23.98 kB / 479.5 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01299/0.8422, allocations: 4.491 MB / 484 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.8423, allocations: 0 / 484 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01017/0.8525, allocations: 2.634 MB / 486.6 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/0.8544, allocations: 375.4 kB / 487 MB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000632/0.8551, allocations: 32 kB / 487 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002273/0.8574, allocations: 107.9 kB / 487.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001326/0.8587, allocations: 228.6 kB / 487.3 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001956/0.859, allocations: 27.98 kB / 487.4 MB, free: 13.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003337/0.8623, allocations: 0.8669 MB / 488.2 MB, free: 12.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.152e-06/0.8624, allocations: 4 kB / 488.2 MB, free: 12.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005601/0.868, allocations: 0.8291 MB / 489.1 MB, free: 11.38 MB / 378.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: 42 (pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p[1].y,rectifier.andCondition_p[2].y,rectifier.andCondition_p[3].y,rectifier.andCondition_n[1].y,rectifier.andCondition_n[2].y,rectifier.andCondition_n[3].y,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,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.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[2].off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 77 * 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.01208/0.8801, allocations: 3.257 MB / 492.3 MB, free: 8.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01284/0.893, allocations: 2.905 MB / 495.2 MB, free: 5.164 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-05/0.8931, allocations: 4.969 kB / 495.2 MB, free: 5.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004457/0.8976, allocations: 1.042 MB / 496.3 MB, free: 4.105 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003725/0.9014, allocations: 299 kB / 496.6 MB, free: 3.812 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02476/0.9262, allocations: 8.496 MB / 0.4932 GB, free: 11.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003529/0.9298, allocations: 1.712 MB / 0.4949 GB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004008/0.9339, allocations: 0.6477 MB / 0.4955 GB, free: 8.711 MB / 394.7 MB Notification: Performance of SimCode: time 2.215e-06/0.9339, allocations: 0 / 0.4955 GB, free: 8.711 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.533/4.467, allocations: 39.59 MB / 0.5342 GB, free: 122.3 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.RectifierCenterTap2mPulse.ThyristorCenterTap2mPulse_RL_res.mat does not exist to compare? outputFormat=mat