Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.776/1.776, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003677/0.0003678, allocations: 8 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07979/0.08019, allocations: 44.51 MB / 308.5 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3402/0.4204, allocations: 80.19 MB / 388.7 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.4207, allocations: 85.62 kB / 388.7 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05969/0.4804, allocations: 15.09 MB / 403.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.508e-06/0.4805, allocations: 3.938 kB / 403.8 MB, free: 16.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000107/0.4806, allocations: 23.22 kB / 403.9 MB, free: 16.51 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.003938/0.4846, allocations: 1.162 MB / 405 MB, free: 15.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.4847, allocations: 7.625 kB / 405 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000428/0.4851, allocations: 112.5 kB / 405.1 MB, free: 15.63 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.4873, allocations: 0.6382 MB / 405.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.4875, allocations: 72 kB / 405.8 MB, free: 15.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002954/0.4878, allocations: 94.59 kB / 405.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003944/0.4917, allocations: 0.9563 MB / 406.9 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.998e-05/0.4918, allocations: 7.859 kB / 406.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002198/0.4921, allocations: 33.28 kB / 406.9 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.58e-05/0.4921, allocations: 23.42 kB / 407 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003696/0.4959, allocations: 0.7512 MB / 407.7 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/0.5064, allocations: 3.752 MB / 411.5 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003143/0.5096, allocations: 0.8037 MB / 412.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.303e-05/0.5098, allocations: 12.41 kB / 412.3 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001828/0.5116, allocations: 463.4 kB / 412.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 7.329e-06/0.5116, allocations: 0 / 412.7 MB, free: 12.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=83): time 0.009232/0.5209, allocations: 1.571 MB / 414.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.888e-05/0.521, allocations: 118.9 kB / 414.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001913/0.523, allocations: 0.6044 MB / 415 MB, free: 11.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.5231, allocations: 48.16 kB / 415.1 MB, free: 11.59 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004064/0.5236, allocations: 379.4 kB / 415.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003733/0.524, allocations: 246.5 kB / 415.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.5241, allocations: 18.16 kB / 415.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.5243, allocations: 337.8 kB / 416 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.5257, allocations: 272.6 kB / 416.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001531/0.5272, allocations: 429.5 kB / 416.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001406/0.5287, allocations: 311.1 kB / 417 MB, free: 10.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.5287, allocations: 0 / 417 MB, free: 10.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.004093/0.5328, allocations: 0.9188 MB / 417.9 MB, free: 10.39 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004107/0.5333, allocations: 1.334 MB / 419.3 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.5333, allocations: 3.875 kB / 419.3 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001966/0.5353, allocations: 297.8 kB / 419.6 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009993/0.5363, allocations: 102.9 kB / 419.7 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009678/0.546, allocations: 4.676 MB / 424.3 MB, free: 5.852 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009116/0.547, allocations: 91.3 kB / 424.4 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.681e-05/0.5471, allocations: 26.56 kB / 424.5 MB, free: 5.812 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.5471, allocations: 4.656 kB / 424.5 MB, free: 5.812 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002039/0.5492, allocations: 0.8638 MB / 425.3 MB, free: 5.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.151e-06/0.5492, allocations: 3.938 kB / 425.3 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009894/0.5502, allocations: 288.1 kB / 425.6 MB, free: 5.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005104/0.5507, allocations: 97.33 kB / 425.7 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006734/0.5575, allocations: 4.623 MB / 430.3 MB, free: 18.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006196/0.5581, allocations: 79.84 kB / 430.4 MB, free: 18.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.26e-05/0.5582, allocations: 29.56 kB / 430.4 MB, free: 18.55 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.0007437/0.559, allocations: 346.3 kB / 430.8 MB, free: 18.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002087/0.5592, allocations: 82.44 kB / 430.9 MB, free: 18.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002181/0.5594, allocations: 99.62 kB / 430.9 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.629e-06/0.5595, allocations: 11.66 kB / 431 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.5595, allocations: 4 kB / 431 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.5595, allocations: 3.984 kB / 431 MB, free: 18.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003897/0.5634, allocations: 1.952 MB / 432.9 MB, free: 17.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.421e-06/0.5635, allocations: 0 / 432.9 MB, free: 17.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000492/0.564, allocations: 83.31 kB / 433 MB, free: 17.14 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/0.5651, allocations: 280.8 kB / 433.3 MB, free: 16.99 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.994e-05/0.5652, allocations: 19.56 kB / 433.3 MB, free: 16.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006924/0.5721, allocations: 4.652 MB / 437.9 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5721, allocations: 0 / 437.9 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003049/0.5752, allocations: 1.352 MB / 439.3 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005989/0.5758, allocations: 251 kB / 439.5 MB, free: 11.92 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.576, allocations: 19.95 kB / 439.6 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000595/0.5766, allocations: 43.22 kB / 439.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002647/0.5769, allocations: 87.8 kB / 439.7 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.012e-05/0.577, allocations: 23.59 kB / 439.7 MB, free: 11.83 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008998/0.5779, allocations: 469.5 kB / 440.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.48e-07/0.5779, allocations: 0 / 440.2 MB, free: 11.56 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001984/0.5799, allocations: 446.1 kB / 440.6 MB, free: 11.46 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (55): * Single equations (assignments): 47 * 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.0003017/0.5803, allocations: 150.1 kB / 440.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004214/0.5845, allocations: 1.982 MB / 442.7 MB, free: 9.996 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.993e-06/0.5845, allocations: 7.828 kB / 442.7 MB, free: 9.992 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.5861, allocations: 0.7552 MB / 443.5 MB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.5872, allocations: 158.9 kB / 443.7 MB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/0.5916, allocations: 1.969 MB / 445.6 MB, free: 8.043 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008996/0.5926, allocations: 1.022 MB / 446.6 MB, free: 7.184 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.5928, allocations: 53.86 kB / 446.7 MB, free: 7.172 MB / 330.7 MB Notification: Performance of SimCode: time 2.092e-06/0.5928, allocations: 0 / 446.7 MB, free: 7.172 MB / 330.7 MB Notification: Performance of Templates: time 0.03133/0.6242, allocations: 18.61 MB / 465.3 MB, free: 5.664 MB / 346.7 MB