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.RectifierBridge2Pulse.ThyristorBridge2Pulse_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) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_ThyristorBridge2Pulse_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.99/1.99, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009129/0.0009129, allocations: 8 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.0963, allocations: 44.51 MB / 308.6 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4097/0.506, allocations: 82.12 MB / 390.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.5063, allocations: 88.11 kB / 390.8 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04796/0.5543, allocations: 13.11 MB / 403.9 MB, free: 11.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.5543, allocations: 0 / 403.9 MB, free: 11.94 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.665e-05/0.5544, allocations: 18.28 kB / 403.9 MB, free: 11.93 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: 155 * Number of variables: 155 Notification: Performance of Generate backend data structure: time 0.002346/0.5568, allocations: 0.9356 MB / 404.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.5568, allocations: 11.61 kB / 404.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002066/0.5571, allocations: 106.6 kB / 404.9 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.5572, allocations: 85.72 kB / 405 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009355/0.5582, allocations: 497.2 kB / 405.5 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.42e-05/0.5583, allocations: 49.31 kB / 405.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.5584, allocations: 63.53 kB / 405.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.5601, allocations: 0.6953 MB / 406.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.5601, allocations: 0 / 406.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.365e-05/0.5602, allocations: 32.81 kB / 406.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.5602, allocations: 15.62 kB / 406.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.5617, allocations: 0.5184 MB / 406.9 MB, free: 10.49 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005096/0.5668, allocations: 2.606 MB / 409.5 MB, free: 8.992 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001639/0.5685, allocations: 0.5741 MB / 410.1 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.936e-05/0.5686, allocations: 10.81 kB / 410.1 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007768/0.5694, allocations: 346.8 kB / 410.4 MB, free: 8.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.317e-06/0.5694, allocations: 0 / 410.4 MB, free: 8.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.004058/0.5735, allocations: 0.9799 MB / 411.4 MB, free: 8.395 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.461e-05/0.5736, allocations: 111.2 kB / 411.5 MB, free: 8.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007831/0.5744, allocations: 433 kB / 411.9 MB, free: 8.109 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.69e-05/0.5745, allocations: 43.89 kB / 412 MB, free: 8.078 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002231/0.5747, allocations: 344.1 kB / 412.3 MB, free: 7.832 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.5749, allocations: 171 kB / 412.5 MB, free: 7.719 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.652e-05/0.5749, allocations: 18 kB / 412.5 MB, free: 7.715 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.575, allocations: 331.2 kB / 412.8 MB, free: 7.395 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005746/0.5756, allocations: 202.3 kB / 413 MB, free: 7.367 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006583/0.5763, allocations: 356.1 kB / 413.4 MB, free: 7.168 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006164/0.5769, allocations: 229.8 kB / 413.6 MB, free: 7.129 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.577, allocations: 0 / 413.6 MB, free: 7.129 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001794/0.5788, allocations: 0.6641 MB / 414.3 MB, free: 6.992 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003305/0.5791, allocations: 1.576 MB / 415.8 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.5791, allocations: 3.875 kB / 415.8 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007482/0.5799, allocations: 153.5 kB / 416 MB, free: 5.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006072/0.5805, allocations: 91.7 kB / 416.1 MB, free: 5.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004057/0.5846, allocations: 2.401 MB / 418.5 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009046/0.5855, allocations: 88.41 kB / 418.6 MB, free: 3.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/0.5856, allocations: 22.72 kB / 418.6 MB, free: 3.691 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.5857, allocations: 3.844 kB / 418.6 MB, free: 3.691 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001589/0.5872, allocations: 0.5934 MB / 419.2 MB, free: 3.602 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.5873, allocations: 7.875 kB / 419.2 MB, free: 3.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005928/0.5879, allocations: 147.3 kB / 419.3 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005017/0.5884, allocations: 77.31 kB / 419.4 MB, free: 3.551 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/0.5921, allocations: 2.388 MB / 421.8 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006189/0.5928, allocations: 64.67 kB / 421.9 MB, free: 1.992 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.5929, allocations: 26.22 kB / 421.9 MB, free: 1.992 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.meanVoltage.y,meanVoltage.y,$PRE.meanCurrent.y,meanCurrent.y,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.rootMeanSquareVoltage.mean.y,rootMeanSquareVoltage.mean.y,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,$PRE.rectifier.thyristor_p1.off,rectifier.thyristor_p1.off,$PRE.rectifier.thyristor_p2.off,rectifier.thyristor_p2.off,$PRE.rectifier.thyristor_n1.off,rectifier.thyristor_n1.off,$PRE.rectifier.thyristor_n2.off,rectifier.thyristor_n2.off,pulse2.twoPulse.positiveThreshold[1].y,pulse2.twoPulse.negativeThreshold[1].y,$PRE.pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerPositive[1].entryTime,$PRE.pulse2.twoPulse.timerNegative[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005692/0.5934, allocations: 309.9 kB / 422.2 MB, free: 1.781 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.5936, allocations: 58.52 kB / 422.2 MB, free: 1.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.5938, allocations: 67.03 kB / 422.3 MB, free: 1.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.5938, allocations: 7.875 kB / 422.3 MB, free: 1.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.5938, allocations: 0 / 422.3 MB, free: 1.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.5938, allocations: 3.984 kB / 422.3 MB, free: 1.727 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002837/0.5967, allocations: 1.35 MB / 423.7 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.5967, allocations: 0 / 423.7 MB, free: 1.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.5971, allocations: 46.44 kB / 423.7 MB, free: 1.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006393/0.5978, allocations: 150.9 kB / 423.9 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.597e-05/0.5979, allocations: 14.95 kB / 423.9 MB, free: 1.113 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00382/0.6017, allocations: 2.301 MB / 426.2 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.6017, allocations: 4 kB / 426.2 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002354/0.6041, allocations: 0.9088 MB / 427.1 MB, free: 15.38 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003738/0.6045, allocations: 180.9 kB / 427.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.6047, allocations: 17.12 kB / 427.3 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005968/0.6053, allocations: 45.28 kB / 427.3 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.6056, allocations: 75.06 kB / 427.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-05/0.6056, allocations: 14.34 kB / 427.4 MB, free: 15.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006303/0.6063, allocations: 334.4 kB / 427.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6063, allocations: 4 kB / 427.7 MB, free: 15.05 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00144/0.6077, allocations: 326.2 kB / 428.1 MB, free: 15.01 MB / 330.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: 20 (pulse2.twoPulse.negativeThreshold[1].y,pulse2.twoPulse.positiveThreshold[1].y,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,rectifier.andCondition_p.y,rectifier.andCondition_n.y,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n1.off,rectifier.thyristor_n2.off,meanVoltage.y,rootMeanSquareVoltage.mean.y,meanCurrent.y,pulse2.twoPulse.timerPositive[1].entryTime,pulse2.twoPulse.timerNegative[1].entryTime,pulse2.fire_p,pulse2.fire_n) * Number of discrete states: 7 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_n1.off,rectifier.thyristor_p1.off,rectifier.thyristor_p2.off,rectifier.thyristor_n2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.002754/0.6105, allocations: 1.498 MB / 429.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002939/0.6135, allocations: 1.205 MB / 430.8 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/0.6135, allocations: 0 / 430.8 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009901/0.6145, allocations: 463.3 kB / 431.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000847/0.6154, allocations: 88.02 kB / 431.3 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005321/0.6207, allocations: 4.502 MB / 435.8 MB, free: 9.668 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007564/0.6215, allocations: 0.9377 MB / 436.7 MB, free: 8.859 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.622, allocations: 222.1 kB / 437 MB, free: 8.832 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.622, allocations: 0 / 437 MB, free: 8.832 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.986/3.608, allocations: 12.98 MB / 449.9 MB, free: 15.9 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.ThyristorBridge2Pulse_R_res.mat does not exist to compare? outputFormat=mat