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.HalfControlledBridge2Pulse.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.HalfControlledBridge2Pulse,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_ACDC_RectifierBridge2Pulse_HalfControlledBridge2Pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.021/2.021, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003534, allocations: 8 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09708, allocations: 44.5 MB / 308.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4181/0.5153, allocations: 82.74 MB / 391.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.5156, allocations: 90.02 kB / 391.4 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03881/0.5545, allocations: 10.61 MB / 402 MB, free: 13.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5545, allocations: 0 / 402 MB, free: 13.08 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.993e-05/0.5546, allocations: 11.75 kB / 402 MB, free: 13.08 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.00222/0.5568, allocations: 0.9384 MB / 402.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.5569, allocations: 7.844 kB / 402.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002036/0.5571, allocations: 108.5 kB / 403 MB, free: 12.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001836/0.5573, allocations: 85.77 kB / 403.1 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000939/0.5582, allocations: 495.6 kB / 403.6 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.569e-05/0.5583, allocations: 54.53 kB / 403.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001267/0.5584, allocations: 63.88 kB / 403.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.5601, allocations: 0.6806 MB / 404.4 MB, free: 11.72 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.5602, allocations: 3.938 kB / 404.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.515e-05/0.5603, allocations: 32.86 kB / 404.4 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.802e-05/0.5603, allocations: 15.59 kB / 404.5 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.5618, allocations: 0.5158 MB / 405 MB, free: 11.63 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.5668, allocations: 2.589 MB / 407.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.5685, allocations: 0.5643 MB / 408.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.292e-05/0.5685, allocations: 12.12 kB / 408.1 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007443/0.5693, allocations: 345.2 kB / 408.5 MB, free: 9.879 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.277e-06/0.5693, allocations: 0 / 408.5 MB, free: 9.879 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.003887/0.5732, allocations: 0.9867 MB / 409.5 MB, free: 9.543 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/0.5733, allocations: 115.1 kB / 409.6 MB, free: 9.414 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007993/0.5741, allocations: 431.7 kB / 410 MB, free: 9.25 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.241e-05/0.5742, allocations: 46.45 kB / 410 MB, free: 9.215 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.5745, allocations: 348 kB / 410.4 MB, free: 8.969 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/0.5747, allocations: 160.3 kB / 410.5 MB, free: 8.863 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.5747, allocations: 11.09 kB / 410.6 MB, free: 8.863 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.612e-05/0.5748, allocations: 333.3 kB / 410.9 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005571/0.5754, allocations: 196.8 kB / 411.1 MB, free: 8.516 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007035/0.5761, allocations: 357.7 kB / 411.4 MB, free: 8.309 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00059/0.5767, allocations: 215.3 kB / 411.6 MB, free: 8.281 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.5767, allocations: 0 / 411.6 MB, free: 8.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001619/0.5783, allocations: 0.6535 MB / 412.3 MB, free: 8.141 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003312/0.5787, allocations: 1.571 MB / 413.9 MB, free: 6.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.5787, allocations: 7.875 kB / 413.9 MB, free: 6.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007309/0.5794, allocations: 157.1 kB / 414 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005887/0.5801, allocations: 88.08 kB / 414.1 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003734/0.5838, allocations: 2.374 MB / 416.5 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008455/0.5847, allocations: 82.22 kB / 416.6 MB, free: 4.848 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.414e-05/0.5848, allocations: 23.25 kB / 416.6 MB, free: 4.848 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.5848, allocations: 9.469 kB / 416.6 MB, free: 4.844 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001403/0.5862, allocations: 0.5806 MB / 417.2 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.5862, allocations: 3.875 kB / 417.2 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005722/0.5868, allocations: 146.3 kB / 417.3 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000482/0.5873, allocations: 80.22 kB / 417.4 MB, free: 4.707 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003545/0.5909, allocations: 2.348 MB / 419.7 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000577/0.5915, allocations: 69.58 kB / 419.8 MB, free: 3.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.928e-05/0.5915, allocations: 23.16 kB / 419.8 MB, free: 3.141 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: 27 ($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,rectifier.diode_n1.off,rectifier.diode_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 (59): * Single equations (assignments): 58 * 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.0005991/0.5921, allocations: 313.2 kB / 420.1 MB, free: 2.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.5923, allocations: 58.56 kB / 420.2 MB, free: 2.898 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.5925, allocations: 70.48 kB / 420.3 MB, free: 2.879 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.5925, allocations: 7.844 kB / 420.3 MB, free: 2.879 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.5925, allocations: 4 kB / 420.3 MB, free: 2.875 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.07e-05/0.5926, allocations: 3.984 kB / 420.3 MB, free: 2.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002627/0.5952, allocations: 1.325 MB / 421.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.5952, allocations: 0 / 421.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003786/0.5956, allocations: 51.03 kB / 421.7 MB, free: 2.312 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006569/0.5963, allocations: 147.6 kB / 421.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.5964, allocations: 10.19 kB / 421.8 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003611/0.6, allocations: 2.369 MB / 424.2 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6, allocations: 3.953 kB / 424.2 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/0.6021, allocations: 0.886 MB / 425.1 MB, free: 16.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003576/0.6025, allocations: 183.4 kB / 425.2 MB, free: 16.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.6027, allocations: 14.27 kB / 425.3 MB, free: 16.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005808/0.6033, allocations: 44.69 kB / 425.3 MB, free: 16.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/0.6035, allocations: 65.75 kB / 425.4 MB, free: 16.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.51e-05/0.6036, allocations: 19.05 kB / 425.4 MB, free: 16.29 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006675/0.6042, allocations: 336.7 kB / 425.7 MB, free: 16.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6043, allocations: 0 / 425.7 MB, free: 16.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00144/0.6057, allocations: 326.5 kB / 426 MB, free: 16.11 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.diode_n1.off,rectifier.diode_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: 5 (meanVoltage.x,rootMeanSquareVoltage.mean.x,meanCurrent.x,rectifier.thyristor_p2.off,rectifier.thyristor_p1.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.002577/0.6083, allocations: 1.461 MB / 427.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002856/0.6112, allocations: 1.189 MB / 428.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.6113, allocations: 4.938 kB / 428.7 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.6123, allocations: 447.9 kB / 429.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008893/0.6132, allocations: 104 kB / 429.2 MB, free: 14.67 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006675/0.6199, allocations: 4.494 MB / 433.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009035/0.6209, allocations: 0.9422 MB / 434.7 MB, free: 9.984 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006393/0.6215, allocations: 224 kB / 434.9 MB, free: 9.957 MB / 330.7 MB Notification: Performance of SimCode: time 1.373e-06/0.6215, allocations: 3.156 kB / 434.9 MB, free: 9.957 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.932/3.553, allocations: 12.97 MB / 447.9 MB, free: 1.895 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.ACDC.RectifierBridge2Pulse.HalfControlledBridge2Pulse_res.mat does not exist to compare? outputFormat=mat