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.DCDC.HBridge.HBridge_RL.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: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") Notification: Performance of loadModel(Modelica): time 2.13/2.13, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005614/0.0005616, allocations: 15.98 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1108, allocations: 44.51 MB / 309 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.415/0.5259, allocations: 80.17 MB / 389.2 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003515/0.5263, allocations: 93.91 kB / 389.3 MB, free: 14.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06501/0.5913, allocations: 15.08 MB / 404.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.5914, allocations: 4 kB / 404.3 MB, free: 12.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.531e-05/0.5915, allocations: 26.73 kB / 404.4 MB, free: 12.1 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: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.003788/0.5953, allocations: 1.154 MB / 405.5 MB, free: 11.28 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.5954, allocations: 19.62 kB / 405.5 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00038/0.5958, allocations: 113.1 kB / 405.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.5975, allocations: 0.6372 MB / 406.3 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.528e-05/0.5976, allocations: 64.94 kB / 406.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002497/0.5979, allocations: 100.5 kB / 406.5 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003408/0.6013, allocations: 0.9615 MB / 407.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.044e-05/0.6014, allocations: 7.938 kB / 407.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/0.6016, allocations: 38.41 kB / 407.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.977e-05/0.6016, allocations: 23.3 kB / 407.5 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003198/0.6048, allocations: 0.7415 MB / 408.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009592/0.6145, allocations: 3.778 MB / 412 MB, free: 8.348 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00278/0.6173, allocations: 0.8147 MB / 412.8 MB, free: 8.238 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.6174, allocations: 8.406 kB / 412.8 MB, free: 8.238 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001617/0.6191, allocations: 485.8 kB / 413.3 MB, free: 8.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=84): time 4.519e-06/0.6191, allocations: 0 / 413.3 MB, free: 8.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=84): time 0.03534/0.6545, allocations: 1.63 MB / 414.9 MB, free: 7.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.538e-05/0.6546, allocations: 115.5 kB / 415 MB, free: 7.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/0.6564, allocations: 0.6531 MB / 415.7 MB, free: 7.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002612/0.6567, allocations: 42.67 kB / 415.7 MB, free: 7.148 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004605/0.6572, allocations: 380.4 kB / 416.1 MB, free: 6.906 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004577/0.6577, allocations: 253.7 kB / 416.4 MB, free: 6.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.826e-05/0.6578, allocations: 17.88 kB / 416.4 MB, free: 6.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.6579, allocations: 340.1 kB / 416.7 MB, free: 6.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.6594, allocations: 272.6 kB / 417 MB, free: 6.375 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.661, allocations: 426.8 kB / 417.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001404/0.6625, allocations: 311.3 kB / 417.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.6625, allocations: 4 kB / 417.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003686/0.6662, allocations: 0.9221 MB / 418.6 MB, free: 5.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001788/0.6665, allocations: 220.1 kB / 418.8 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.6665, allocations: 3.844 kB / 418.8 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002114/0.6686, allocations: 281.8 kB / 419.1 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.6699, allocations: 118.8 kB / 419.2 MB, free: 5.594 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.6811, allocations: 4.655 MB / 423.9 MB, free: 2.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.6827, allocations: 82.05 kB / 424 MB, free: 2.531 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001908/0.6829, allocations: 31.23 kB / 424 MB, free: 2.527 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.6829, allocations: 3.875 kB / 424 MB, free: 2.527 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003652/0.6866, allocations: 0.8562 MB / 424.9 MB, free: 2.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.6867, allocations: 7.828 kB / 424.9 MB, free: 2.387 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.6886, allocations: 291.6 kB / 425.1 MB, free: 2.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/0.6898, allocations: 101.4 kB / 425.2 MB, free: 2.297 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.7018, allocations: 4.623 MB / 429.9 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.703, allocations: 58.67 kB / 429.9 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.7031, allocations: 34.25 kB / 430 MB, free: 15.28 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001184/0.7043, allocations: 348.8 kB / 430.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003682/0.7047, allocations: 93.48 kB / 430.4 MB, free: 15 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004488/0.7052, allocations: 99.12 kB / 430.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.7052, allocations: 7.5 kB / 430.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.7053, allocations: 0 / 430.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/0.7053, allocations: 11.92 kB / 430.5 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007761/0.7131, allocations: 2.012 MB / 432.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/0.7132, allocations: 3.938 kB / 432.5 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.7142, allocations: 80.89 kB / 432.6 MB, free: 13.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/0.7163, allocations: 286.4 kB / 432.9 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/0.7165, allocations: 19.81 kB / 432.9 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/0.7296, allocations: 4.638 MB / 437.5 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.207e-06/0.7296, allocations: 0 / 437.5 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006453/0.7361, allocations: 1.415 MB / 439 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.7372, allocations: 251 kB / 439.2 MB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002926/0.7375, allocations: 19.75 kB / 439.2 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.7388, allocations: 43.34 kB / 439.3 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004558/0.7392, allocations: 83.88 kB / 439.3 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/0.7394, allocations: 23.58 kB / 439.4 MB, free: 8.152 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001392/0.7408, allocations: 457.7 kB / 439.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.7408, allocations: 3.938 kB / 439.8 MB, free: 7.887 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003211/0.744, allocations: 444.9 kB / 440.3 MB, free: 7.793 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004164/0.7445, allocations: 148.1 kB / 440.4 MB, free: 7.672 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007641/0.7522, allocations: 2.002 MB / 442.4 MB, free: 6.324 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/0.7522, allocations: 3.984 kB / 442.4 MB, free: 6.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002928/0.7552, allocations: 0.7774 MB / 443.2 MB, free: 5.781 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.7571, allocations: 148.7 kB / 443.3 MB, free: 5.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005698/0.7628, allocations: 2.015 MB / 445.3 MB, free: 4.348 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.7639, allocations: 1.02 MB / 446.4 MB, free: 3.492 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004771/0.7644, allocations: 50.31 kB / 446.4 MB, free: 3.484 MB / 330.7 MB Notification: Performance of SimCode: time 2.164e-06/0.7644, allocations: 0 / 446.4 MB, free: 3.484 MB / 330.7 MB Notification: Performance of Templates: time 0.04091/0.8054, allocations: 18.61 MB / 465 MB, free: 1.445 MB / 346.7 MB