Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_PowerConverters_ThyristorBridge2mPulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.31/2.31, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004283/0.0004284, allocations: 12 kB / 314.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.341, allocations: 54.86 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.192/0.5331, allocations: 96.03 MB / 465.4 MB, free: 10.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.5334, allocations: 79.95 kB / 465.5 MB, free: 10.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4302/0.9637, allocations: 38.52 MB / 0.4922 GB, free: 81.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.9637, allocations: 0 / 0.4922 GB, free: 81.04 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001791/0.9639, allocations: 59.92 kB / 0.4922 GB, free: 80.98 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: 481 * Number of variables: 481 Notification: Performance of Generate backend data structure: time 0.007054/0.971, allocations: 2.34 MB / 0.4945 GB, free: 78.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.9711, allocations: 12.03 kB / 0.4945 GB, free: 78.55 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007795/0.9718, allocations: 286.1 kB / 0.4948 GB, free: 78.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005633/0.9724, allocations: 245.1 kB / 0.495 GB, free: 78.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007898/0.9803, allocations: 2.223 MB / 0.4972 GB, free: 75.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.9806, allocations: 155.7 kB / 0.4973 GB, free: 75.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005721/0.9811, allocations: 188 kB / 0.4975 GB, free: 75.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007285/0.9884, allocations: 2.625 MB / 0.5001 GB, free: 72.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.15e-05/0.9886, allocations: 3.938 kB / 0.5001 GB, free: 72.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003152/0.9889, allocations: 83.95 kB / 0.5002 GB, free: 72.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001087/0.989, allocations: 79.7 kB / 0.5002 GB, free: 72.54 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00679/0.9958, allocations: 2.201 MB / 0.5024 GB, free: 70.33 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01878/1.015, allocations: 7.437 MB / 0.5097 GB, free: 62.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004978/1.02, allocations: 1.914 MB / 0.5115 GB, free: 60.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001194/1.02, allocations: 16.98 kB / 0.5115 GB, free: 60.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002313/1.022, allocations: 0.991 MB / 0.5125 GB, free: 59.82 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 5.761e-06/1.022, allocations: 0 / 0.5125 GB, free: 59.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=132): time 0.0161/1.038, allocations: 3.949 MB / 0.5164 GB, free: 55.84 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/1.038, allocations: 242.8 kB / 0.5166 GB, free: 55.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00247/1.041, allocations: 1.208 MB / 0.5178 GB, free: 54.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003498/1.041, allocations: 77.67 kB / 0.5179 GB, free: 54.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000751/1.042, allocations: 0.7945 MB / 0.5186 GB, free: 53.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005004/1.043, allocations: 394.6 kB / 0.519 GB, free: 53.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/1.043, allocations: 31.94 kB / 0.519 GB, free: 53.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/1.043, allocations: 374.8 kB / 0.5194 GB, free: 52.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001816/1.045, allocations: 0.7534 MB / 0.5201 GB, free: 51.89 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002086/1.047, allocations: 1.053 MB / 0.5212 GB, free: 50.74 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/1.049, allocations: 0.8144 MB / 0.522 GB, free: 49.92 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-05/1.049, allocations: 0 / 0.522 GB, free: 49.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004894/1.054, allocations: 2.141 MB / 0.524 GB, free: 47.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005551/1.054, allocations: 2.447 MB / 0.5264 GB, free: 45.13 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/1.054, allocations: 8 kB / 0.5264 GB, free: 45.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/1.056, allocations: 0.5627 MB / 0.527 GB, free: 44.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/1.058, allocations: 179.6 kB / 0.5272 GB, free: 44.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/1.07, allocations: 6.199 MB / 0.5332 GB, free: 38.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002105/1.072, allocations: 210.9 kB / 0.5334 GB, free: 37.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002352/1.072, allocations: 48 kB / 0.5335 GB, free: 37.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/1.072, allocations: 6.031 kB / 0.5335 GB, free: 37.79 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004755/1.077, allocations: 2.05 MB / 0.5355 GB, free: 35.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/1.077, allocations: 11.98 kB / 0.5355 GB, free: 35.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/1.079, allocations: 0.5554 MB / 0.536 GB, free: 35.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/1.08, allocations: 171.7 kB / 0.5362 GB, free: 34.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/1.092, allocations: 6.222 MB / 0.5423 GB, free: 28.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/1.093, allocations: 187.2 kB / 0.5424 GB, free: 28.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/1.094, allocations: 51.98 kB / 0.5425 GB, free: 28.4 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: 69 ($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,$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,$PRE.rectifier.pre_p[1].u,rectifier.pre_p[1].u,rectifier.pre_p[1].y,$PRE.rectifier.pre_p[2].u,rectifier.pre_p[2].u,rectifier.pre_p[2].y,$PRE.rectifier.pre_p[3].u,rectifier.pre_p[3].u,rectifier.pre_p[3].y,$PRE.rectifier.pre_n[1].u,rectifier.pre_n[1].u,rectifier.pre_n[1].y,$PRE.rectifier.pre_n[2].u,rectifier.pre_n[2].u,rectifier.pre_n[2].y,$PRE.rectifier.pre_n[3].u,rectifier.pre_n[3].u,rectifier.pre_n[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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 36} Notification: Performance of prepare postOptimizeDAE: time 0.001844/1.095, allocations: 0.8486 MB / 0.5433 GB, free: 27.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004499/1.096, allocations: 150.2 kB / 0.5435 GB, free: 27.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005277/1.096, allocations: 186.6 kB / 0.5436 GB, free: 27.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-05/1.096, allocations: 12 kB / 0.5437 GB, free: 27.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.096, allocations: 0 / 0.5437 GB, free: 27.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.055e-05/1.097, allocations: 3.984 kB / 0.5437 GB, free: 27.18 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009024/1.106, allocations: 3.935 MB / 0.5475 GB, free: 23.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/1.106, allocations: 4 kB / 0.5475 GB, free: 23.19 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008681/1.107, allocations: 95.83 kB / 0.5476 GB, free: 23.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001967/1.108, allocations: 0.5356 MB / 0.5481 GB, free: 22.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002079/1.109, allocations: 24 kB / 0.5481 GB, free: 22.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/1.121, allocations: 6.163 MB / 0.5542 GB, free: 16.23 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.121, allocations: 0 / 0.5542 GB, free: 16.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006981/1.128, allocations: 2.911 MB / 0.557 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/1.129, allocations: 407 kB / 0.5574 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004874/1.13, allocations: 43.98 kB / 0.5574 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001582/1.131, allocations: 127.9 kB / 0.5576 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008345/1.132, allocations: 232.9 kB / 0.5578 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/1.132, allocations: 35.98 kB / 0.5578 GB, free: 12.45 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002093/1.134, allocations: 0.9197 MB / 0.5587 GB, free: 11.53 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.134, allocations: 0 / 0.5587 GB, free: 11.53 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003965/1.138, allocations: 0.954 MB / 0.5596 GB, free: 10.57 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: 48 (pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].y,pulse2m.twomPulse.negativeThreshold[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].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.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.pre_p[1].u,rectifier.pre_p[1].y,rectifier.pre_p[2].u,rectifier.pre_p[2].y,rectifier.pre_p[3].u,rectifier.pre_p[3].y,rectifier.pre_n[1].u,rectifier.pre_n[1].y,rectifier.pre_n[2].u,rectifier.pre_n[2].y,rectifier.pre_n[3].u,rectifier.pre_n[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: 15 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre_n[3].u,rectifier.pre_n[2].u,rectifier.pre_n[1].u,rectifier.pre_p[3].u,rectifier.pre_p[2].u,rectifier.pre_p[1].u,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 81 * 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 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.007308/1.146, allocations: 3.569 MB / 0.5631 GB, free: 6.973 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008651/1.155, allocations: 3.458 MB / 0.5665 GB, free: 3.48 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/1.155, allocations: 0.5625 kB / 0.5665 GB, free: 3.48 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002948/1.158, allocations: 1.191 MB / 0.5677 GB, free: 2.281 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00275/1.16, allocations: 360.4 kB / 0.568 GB, free: 1.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01595/1.176, allocations: 9.813 MB / 0.5776 GB, free: 7.812 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/1.179, allocations: 1.801 MB / 0.5794 GB, free: 5.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001739/1.181, allocations: 0.675 MB / 0.58 GB, free: 5.305 MB / 410.7 MB Notification: Performance of SimCode: time 1.703e-06/1.181, allocations: 0 / 0.58 GB, free: 5.305 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.292/4.473, allocations: 43.78 MB / 0.6228 GB, free: 9.48 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.ThyristorBridge2mPulse_R_res.mat does not exist to compare? outputFormat=mat