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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.455/2.455, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.827e-05/1.826e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4167/0.4168, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1811/0.5979, allocations: 95.26 MB / 453.4 MB, free: 15.45 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.5983, allocations: 75.95 kB / 453.5 MB, free: 15.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.456/1.054, allocations: 38.22 MB / 491.7 MB, free: 88.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.054, allocations: 0 / 491.7 MB, free: 88.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000254/1.055, allocations: 59.84 kB / 491.7 MB, free: 88.62 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.007821/1.062, allocations: 2.121 MB / 493.9 MB, free: 86.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.063, allocations: 15.97 kB / 493.9 MB, free: 86.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/1.064, allocations: 245.1 kB / 494.1 MB, free: 86.2 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008481/1.072, allocations: 2.201 MB / 496.3 MB, free: 84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001433/1.073, allocations: 64 kB / 496.4 MB, free: 83.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000743/1.073, allocations: 119.9 kB / 496.5 MB, free: 83.82 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006085/1.079, allocations: 2.003 MB / 498.5 MB, free: 81.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007053/1.087, allocations: 2.298 MB / 0.4891 GB, free: 79.44 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.429e-05/1.087, allocations: 11.92 kB / 0.4891 GB, free: 79.43 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002602/1.087, allocations: 7.984 kB / 0.4891 GB, free: 79.42 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/1.087, allocations: 79.7 kB / 0.4892 GB, free: 79.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01976/1.107, allocations: 7.064 MB / 0.4961 GB, free: 72.23 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004856/1.112, allocations: 1.809 MB / 0.4978 GB, free: 70.41 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002758/1.115, allocations: 1.144 MB / 0.4989 GB, free: 69.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000145/1.115, allocations: 13.31 kB / 0.499 GB, free: 69.26 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002134/1.117, allocations: 0.911 MB / 0.4998 GB, free: 68.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 6.742e-06/1.117, allocations: 0 / 0.4998 GB, free: 68.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=132): time 0.004641/1.122, allocations: 1.768 MB / 0.5016 GB, free: 66.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/1.122, allocations: 230.9 kB / 0.5018 GB, free: 66.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/1.124, allocations: 1.027 MB / 0.5028 GB, free: 65.22 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003878/1.125, allocations: 57.67 kB / 0.5028 GB, free: 65.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008955/1.125, allocations: 0.8026 MB / 0.5036 GB, free: 64.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005961/1.126, allocations: 380 kB / 0.504 GB, free: 63.99 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/1.126, allocations: 3.938 kB / 0.504 GB, free: 63.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/1.126, allocations: 370.8 kB / 0.5043 GB, free: 63.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/1.128, allocations: 0.6754 MB / 0.505 GB, free: 62.94 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/1.13, allocations: 0.9637 MB / 0.506 GB, free: 61.87 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/1.131, allocations: 0.7316 MB / 0.5067 GB, free: 61.14 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/1.131, allocations: 4 kB / 0.5067 GB, free: 61.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004105/1.135, allocations: 1.911 MB / 0.5085 GB, free: 59.22 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005721/1.136, allocations: 2.436 MB / 0.5109 GB, free: 56.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-05/1.136, allocations: 12 kB / 0.5109 GB, free: 56.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002184/1.138, allocations: 0.5667 MB / 0.5115 GB, free: 56.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/1.14, allocations: 183.7 kB / 0.5117 GB, free: 55.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0116/1.151, allocations: 5.993 MB / 0.5175 GB, free: 49.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/1.153, allocations: 178.9 kB / 0.5177 GB, free: 49.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002719/1.154, allocations: 56.05 kB / 0.5177 GB, free: 49.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/1.154, allocations: 4 kB / 0.5177 GB, free: 49.49 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004065/1.158, allocations: 1.805 MB / 0.5195 GB, free: 47.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-05/1.158, allocations: 8.125 kB / 0.5195 GB, free: 47.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/1.16, allocations: 0.5631 MB / 0.5201 GB, free: 47.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/1.161, allocations: 175.7 kB / 0.5202 GB, free: 46.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/1.172, allocations: 6.038 MB / 0.5261 GB, free: 40.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/1.174, allocations: 159.2 kB / 0.5263 GB, free: 40.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001739/1.174, allocations: 48.06 kB / 0.5263 GB, free: 40.58 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 () * 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.0004985/1.175, allocations: 203.3 kB / 0.5265 GB, free: 40.37 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004498/1.179, allocations: 1.748 MB / 0.5282 GB, free: 38.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006016/1.18, allocations: 138.3 kB / 0.5283 GB, free: 38.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006612/1.18, allocations: 165.5 kB / 0.5285 GB, free: 38.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.64e-05/1.18, allocations: 15.95 kB / 0.5285 GB, free: 38.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/1.18, allocations: 3.938 kB / 0.5285 GB, free: 38.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.945e-05/1.181, allocations: 11.97 kB / 0.5285 GB, free: 38.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009619/1.19, allocations: 3.67 MB / 0.5321 GB, free: 34.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/1.19, allocations: 0 / 0.5321 GB, free: 34.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008524/1.191, allocations: 91.83 kB / 0.5322 GB, free: 34.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/1.193, allocations: 0.5323 MB / 0.5327 GB, free: 33.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002271/1.193, allocations: 7.984 kB / 0.5327 GB, free: 33.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01156/1.205, allocations: 5.853 MB / 0.5385 GB, free: 27.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/1.205, allocations: 0 / 0.5385 GB, free: 27.99 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005518/1.211, allocations: 2.637 MB / 0.541 GB, free: 25.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/1.212, allocations: 383.2 kB / 0.5414 GB, free: 24.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006196/1.213, allocations: 19.98 kB / 0.5414 GB, free: 24.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.214, allocations: 107.8 kB / 0.5415 GB, free: 24.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000825/1.215, allocations: 244.9 kB / 0.5417 GB, free: 24.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/1.215, allocations: 35.98 kB / 0.5418 GB, free: 24.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001587/1.217, allocations: 0.7572 MB / 0.5425 GB, free: 23.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.217, allocations: 4 kB / 0.5425 GB, free: 23.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003889/1.221, allocations: 0.8758 MB / 0.5434 GB, free: 22.89 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_p.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[1].off,rectifier.thyristor_n.idealThyristor[3].off,rectifier.thyristor_n.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[2].off,rectifier.thyristor_p.idealThyristor[3].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.005676/1.227, allocations: 3.273 MB / 0.5466 GB, free: 19.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007188/1.234, allocations: 3.138 MB / 0.5496 GB, free: 16.43 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/1.234, allocations: 1.125 kB / 0.5496 GB, free: 16.43 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002455/1.237, allocations: 1.094 MB / 0.5507 GB, free: 15.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002535/1.239, allocations: 315.7 kB / 0.551 GB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009689/1.249, allocations: 3.418 MB / 0.5543 GB, free: 11.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001745/1.251, allocations: 1.797 MB / 0.5561 GB, free: 9.723 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001403/1.252, allocations: 0.6711 MB / 0.5568 GB, free: 9.051 MB / 394.7 MB Notification: Performance of SimCode: time 1.412e-06/1.252, allocations: 0 / 0.5568 GB, free: 9.051 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.357/4.609, allocations: 43.42 MB / 0.5992 GB, free: 13.58 MB / 442.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