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.71/2.71, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.073e-05/4.082e-05, allocations: 4 kB / 309.8 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4554/0.4555, allocations: 54.85 MB / 364.6 MB, free: 5.422 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1797/0.6353, allocations: 95.94 MB / 460.6 MB, free: 436 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/0.6356, allocations: 71.97 kB / 460.6 MB, free: 364 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1607/0.7963, allocations: 38.64 MB / 499.3 MB, free: 9.465 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7964, allocations: 0 / 499.3 MB, free: 9.465 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002855/0.7967, allocations: 55.92 kB / 499.3 MB, free: 9.41 MB / 426.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.008869/0.8056, allocations: 2.118 MB / 0.4897 GB, free: 7.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.418e-05/0.8057, allocations: 8.031 kB / 0.4897 GB, free: 7.223 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001427/0.8071, allocations: 282.2 kB / 0.49 GB, free: 6.938 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001387/0.8085, allocations: 241.1 kB / 0.4902 GB, free: 6.699 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009362/0.8179, allocations: 2.203 MB / 0.4924 GB, free: 4.438 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002471/0.8182, allocations: 147.7 kB / 0.4925 GB, free: 4.293 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008489/0.8191, allocations: 191.9 kB / 0.4927 GB, free: 4.105 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008004/0.8271, allocations: 2.577 MB / 0.4952 GB, free: 1.449 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.386e-05/0.8273, allocations: 4 kB / 0.4952 GB, free: 1.445 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003192/0.8276, allocations: 76 kB / 0.4953 GB, free: 1.371 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/0.8277, allocations: 79.7 kB / 0.4953 GB, free: 1.293 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007006/0.8348, allocations: 2.1 MB / 0.4974 GB, free: 15.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02369/0.8585, allocations: 7.439 MB / 0.5047 GB, free: 7.633 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005772/0.8644, allocations: 1.88 MB / 0.5065 GB, free: 5.742 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003949/0.8684, allocations: 1.287 MB / 0.5078 GB, free: 4.457 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001764/0.8686, allocations: 16.95 kB / 0.5078 GB, free: 4.441 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002863/0.8715, allocations: 0.9536 MB / 0.5087 GB, free: 3.457 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 5.901e-06/0.8715, allocations: 0 / 0.5087 GB, free: 3.457 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.005928/0.8775, allocations: 1.842 MB / 0.5105 GB, free: 1.602 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002231/0.8778, allocations: 238.9 kB / 0.5107 GB, free: 1.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003374/0.8811, allocations: 1.182 MB / 0.5119 GB, free: 128 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004718/0.8817, allocations: 81.67 kB / 0.512 GB, free: 40 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.8829, allocations: 0.7945 MB / 0.5127 GB, free: 15.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007956/0.8837, allocations: 394.6 kB / 0.5131 GB, free: 14.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.8839, allocations: 28 kB / 0.5131 GB, free: 14.82 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002479/0.8841, allocations: 366.8 kB / 0.5135 GB, free: 14.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.8861, allocations: 0.6989 MB / 0.5142 GB, free: 13.75 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002263/0.8884, allocations: 1.011 MB / 0.5152 GB, free: 12.63 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002089/0.8905, allocations: 0.7661 MB / 0.5159 GB, free: 11.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.8906, allocations: 0 / 0.5159 GB, free: 11.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.005524/0.8961, allocations: 2.039 MB / 0.5179 GB, free: 9.812 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001251/0.8974, allocations: 2.451 MB / 0.5203 GB, free: 7.172 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/0.8975, allocations: 4 kB / 0.5203 GB, free: 7.168 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/0.9, allocations: 0.5669 MB / 0.5208 GB, free: 6.598 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001503/0.9015, allocations: 179.7 kB / 0.521 GB, free: 6.422 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01446/0.916, allocations: 6.128 MB / 0.527 GB, free: 156 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3443/1.26, allocations: 212.4 kB / 0.5272 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004245/1.261, allocations: 50.52 kB / 0.5273 GB, free: 126.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/1.261, allocations: 3.688 kB / 0.5273 GB, free: 126.6 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005478/1.266, allocations: 1.978 MB / 0.5292 GB, free: 126.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.631e-05/1.266, allocations: 6.344 kB / 0.5292 GB, free: 126.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002074/1.269, allocations: 0.5663 MB / 0.5297 GB, free: 126.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/1.27, allocations: 180.8 kB / 0.5299 GB, free: 126.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/1.284, allocations: 6.141 MB / 0.5359 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/1.286, allocations: 189.4 kB / 0.5361 GB, free: 125.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/1.286, allocations: 51.41 kB / 0.5361 GB, free: 125.2 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 137 * 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 38} Notification: Performance of prepare postOptimizeDAE: time 0.0005764/1.287, allocations: 245.7 kB / 0.5364 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005448/1.287, allocations: 145.9 kB / 0.5365 GB, free: 125.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006071/1.288, allocations: 188.4 kB / 0.5367 GB, free: 125 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/1.288, allocations: 14.72 kB / 0.5367 GB, free: 125 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/1.288, allocations: 0 / 0.5367 GB, free: 125 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/1.288, allocations: 6.656 kB / 0.5367 GB, free: 125 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/1.3, allocations: 4.039 MB / 0.5407 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/1.3, allocations: 1.031 kB / 0.5407 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000971/1.301, allocations: 93.45 kB / 0.5408 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002268/1.303, allocations: 0.5446 MB / 0.5413 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002689/1.304, allocations: 25.89 kB / 0.5413 GB, free: 124.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.317, allocations: 6.009 MB / 0.5472 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.317, allocations: 1.938 kB / 0.5472 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006633/1.324, allocations: 2.765 MB / 0.5499 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/1.325, allocations: 396.6 kB / 0.5503 GB, free: 120 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004541/1.325, allocations: 46.39 kB / 0.5503 GB, free: 120 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/1.327, allocations: 126 kB / 0.5504 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007748/1.328, allocations: 234.6 kB / 0.5506 GB, free: 119.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001204/1.328, allocations: 36.3 kB / 0.5507 GB, free: 119.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001967/1.33, allocations: 0.8966 MB / 0.5516 GB, free: 119.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.71e-07/1.33, allocations: 2.375 kB / 0.5516 GB, free: 119.5 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0036/1.334, allocations: 0.9561 MB / 0.5525 GB, free: 119.4 MB / 458.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[2].y,pulse2m.twomPulse.positiveThreshold[2].y,pulse2m.twomPulse.negativeThreshold[1].y,pulse2m.twomPulse.positiveThreshold[1].y,pulse2m.twomPulse.negativeThreshold[3].y,pulse2m.twomPulse.positiveThreshold[3].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[3].off,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 79 * 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 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.006179/1.34, allocations: 3.416 MB / 0.5558 GB, free: 117.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008298/1.348, allocations: 3.291 MB / 0.559 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/1.348, allocations: 3.562 kB / 0.559 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002983/1.351, allocations: 1.13 MB / 0.5602 GB, free: 115.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002977/1.354, allocations: 358.2 kB / 0.5605 GB, free: 115.7 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.364, allocations: 3.558 MB / 0.564 GB, free: 114.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001827/1.366, allocations: 1.804 MB / 0.5657 GB, free: 113.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/1.368, allocations: 0.676 MB / 0.5664 GB, free: 112.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.042e-06/1.368, allocations: 0 / 0.5664 GB, free: 112.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.567/4.934, allocations: 44.37 MB / 0.6097 GB, free: 81.52 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