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.HalfControlledBridge2mPulse.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.HalfControlledBridge2mPulse,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Electrical_PowerConverters_HalfControlledBridge2mPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.21/2.21, allocations: 235.1 MB / 243 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.091e-05/2.09e-05, allocations: 3.938 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3266, allocations: 54.84 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1888/0.5155, allocations: 95.68 MB / 453.8 MB, free: 15.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002811/0.5158, allocations: 71.91 kB / 453.9 MB, free: 14.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4121/0.9279, allocations: 31.28 MB / 485.2 MB, free: 91.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.928, allocations: 0 / 485.2 MB, free: 91.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003237/0.9283, allocations: 53.02 kB / 485.2 MB, free: 91.45 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: 454 * Number of variables: 454 Notification: Performance of Generate backend data structure: time 0.01075/0.9391, allocations: 2.071 MB / 487.3 MB, free: 90.38 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.349e-05/0.9392, allocations: 10.81 kB / 487.3 MB, free: 90.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.9406, allocations: 238.5 kB / 487.5 MB, free: 90.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01174/0.9523, allocations: 2.182 MB / 489.7 MB, free: 89.26 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.9526, allocations: 60.69 kB / 489.8 MB, free: 89.26 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006444/0.9532, allocations: 111.2 kB / 489.9 MB, free: 89.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008896/0.9621, allocations: 1.908 MB / 491.8 MB, free: 88.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/0.9837, allocations: 2.181 MB / 494 MB, free: 86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.86e-05/0.9839, allocations: 0 / 494 MB, free: 86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003603/0.9842, allocations: 7.984 kB / 494 MB, free: 85.99 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/0.9844, allocations: 71.52 kB / 494 MB, free: 85.92 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04662/1.031, allocations: 6.831 MB / 0.4891 GB, free: 79.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005931/1.037, allocations: 1.697 MB / 0.4908 GB, free: 77.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003747/1.041, allocations: 1.13 MB / 0.4919 GB, free: 76.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001734/1.041, allocations: 13.31 kB / 0.4919 GB, free: 76.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002414/1.044, allocations: 0.881 MB / 0.4928 GB, free: 75.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=126): time 4.638e-06/1.044, allocations: 0 / 0.4928 GB, free: 75.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=126): time 0.003878/1.047, allocations: 1.641 MB / 0.4944 GB, free: 73.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.578e-05/1.048, allocations: 230.9 kB / 0.4946 GB, free: 73.37 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002152/1.05, allocations: 1.004 MB / 0.4956 GB, free: 72.35 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003331/1.05, allocations: 49.67 kB / 0.4956 GB, free: 72.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000797/1.051, allocations: 0.7785 MB / 0.4964 GB, free: 71.52 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000552/1.052, allocations: 362.8 kB / 0.4967 GB, free: 71.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/1.052, allocations: 0 / 0.4967 GB, free: 71.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/1.052, allocations: 366.8 kB / 0.4971 GB, free: 70.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/1.053, allocations: 0.6286 MB / 0.4977 GB, free: 70.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001963/1.055, allocations: 0.9169 MB / 0.4986 GB, free: 69.14 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002073/1.057, allocations: 0.6925 MB / 0.4993 GB, free: 68.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.32e-05/1.057, allocations: 7.953 kB / 0.4993 GB, free: 68.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=169) (initialization): time 0.005531/1.063, allocations: 1.802 MB / 0.501 GB, free: 66.63 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006452/1.064, allocations: 2.442 MB / 0.5034 GB, free: 64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.651e-05/1.064, allocations: 8 kB / 0.5034 GB, free: 63.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002862/1.066, allocations: 0.5473 MB / 0.504 GB, free: 63.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001919/1.068, allocations: 183.7 kB / 0.5041 GB, free: 63.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01578/1.084, allocations: 5.873 MB / 0.5099 GB, free: 57.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002689/1.087, allocations: 182.9 kB / 0.51 GB, free: 57.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002509/1.087, allocations: 48.06 kB / 0.5101 GB, free: 57.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/1.087, allocations: 13.28 kB / 0.5101 GB, free: 57.04 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005431/1.093, allocations: 1.711 MB / 0.5118 GB, free: 55.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.296e-05/1.093, allocations: 4 kB / 0.5118 GB, free: 55.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00233/1.095, allocations: 0.5399 MB / 0.5123 GB, free: 54.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001888/1.097, allocations: 171.7 kB / 0.5125 GB, free: 54.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01537/1.113, allocations: 5.923 MB / 0.5182 GB, free: 48.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002036/1.115, allocations: 155.2 kB / 0.5184 GB, free: 48.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000236/1.115, allocations: 48.06 kB / 0.5184 GB, free: 48.37 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: 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,$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,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,$PRE.rectifier.pre[1].u,rectifier.pre[1].u,rectifier.pre[1].y,$PRE.rectifier.pre[2].u,rectifier.pre[2].u,rectifier.pre[2].y,$PRE.rectifier.pre[3].u,rectifier.pre[3].u,rectifier.pre[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 (126): * Single equations (assignments): 125 * 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.0006012/1.116, allocations: 186.8 kB / 0.5186 GB, free: 48.18 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005316/1.121, allocations: 1.632 MB / 0.5202 GB, free: 46.54 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004969/1.121, allocations: 130.4 kB / 0.5203 GB, free: 46.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006652/1.122, allocations: 161.4 kB / 0.5205 GB, free: 46.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/1.122, allocations: 12 kB / 0.5205 GB, free: 46.24 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/1.122, allocations: 0 / 0.5205 GB, free: 46.24 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/1.122, allocations: 7.984 kB / 0.5205 GB, free: 46.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/1.133, allocations: 3.558 MB / 0.524 GB, free: 42.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/1.133, allocations: 0 / 0.524 GB, free: 42.65 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008122/1.134, allocations: 95.81 kB / 0.5241 GB, free: 42.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001871/1.136, allocations: 0.521 MB / 0.5246 GB, free: 42.04 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/1.136, allocations: 7.984 kB / 0.5246 GB, free: 42.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/1.147, allocations: 5.76 MB / 0.5302 GB, free: 36.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.147, allocations: 0 / 0.5302 GB, free: 36.15 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00502/1.152, allocations: 2.567 MB / 0.5327 GB, free: 33.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/1.153, allocations: 375.2 kB / 0.5331 GB, free: 33.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003032/1.153, allocations: 19.98 kB / 0.5331 GB, free: 33.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/1.155, allocations: 103.9 kB / 0.5332 GB, free: 33.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006635/1.155, allocations: 181 kB / 0.5334 GB, free: 32.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/1.156, allocations: 35.98 kB / 0.5334 GB, free: 32.85 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001526/1.157, allocations: 0.7452 MB / 0.5341 GB, free: 32.09 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.157, allocations: 0 / 0.5341 GB, free: 32.09 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003637/1.161, allocations: 0.8484 MB / 0.535 GB, free: 31.24 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: 42 (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.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,rectifier.pre[1].u,rectifier.pre[1].y,rectifier.pre[2].u,rectifier.pre[2].y,rectifier.pre[3].u,rectifier.pre[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: 9 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.pre[3].u,rectifier.pre[2].u,rectifier.pre[1].u,rectifier.thyristor_p.idealThyristor[1].off,rectifier.thyristor_p.idealThyristor[3].off,rectifier.thyristor_p.idealThyristor[2].off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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.00551/1.166, allocations: 3.179 MB / 0.5381 GB, free: 28.03 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006908/1.173, allocations: 3.006 MB / 0.541 GB, free: 25.01 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/1.173, allocations: 4.5 kB / 0.541 GB, free: 25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002469/1.176, allocations: 1.057 MB / 0.542 GB, free: 23.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/1.178, allocations: 323.2 kB / 0.5423 GB, free: 23.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009722/1.188, allocations: 3.343 MB / 0.5456 GB, free: 20.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001668/1.19, allocations: 1.766 MB / 0.5473 GB, free: 18.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/1.191, allocations: 0.6399 MB / 0.548 GB, free: 17.79 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/1.191, allocations: 0 / 0.548 GB, free: 17.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.529/4.72, allocations: 41.96 MB / 0.5889 GB, free: 7.793 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.PowerConverters.HalfControlledBridge2mPulse_res.mat does not exist to compare? outputFormat=mat