Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009743/0.0009743, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.16/1.16, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001511/0.001511, allocations: 120.4 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002841/0.0002841, allocations: 11.98 kB / 310.6 MB, free: 14.92 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.07874, allocations: 44.5 MB / 355.1 MB, free: 2.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2152/0.294, allocations: 79.88 MB / 435 MB, free: 9.727 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.2942, allocations: 91.77 kB / 435 MB, free: 9.672 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03029/0.3245, allocations: 14.76 MB / 449.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3246, allocations: 1.688 kB / 449.8 MB, free: 13.48 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.004e-05/0.3247, allocations: 24 kB / 449.8 MB, free: 13.46 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.002313/0.327, allocations: 1.132 MB / 451 MB, free: 12.26 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.327, allocations: 8.031 kB / 451 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002909/0.3273, allocations: 118.6 kB / 451.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.3284, allocations: 0.6369 MB / 451.7 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.681e-05/0.3285, allocations: 66 kB / 451.8 MB, free: 11.39 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.3286, allocations: 84 kB / 451.9 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.3302, allocations: 0.9514 MB / 452.8 MB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.3303, allocations: 0 / 452.8 MB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.066e-05/0.3304, allocations: 36 kB / 452.9 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.3304, allocations: 20 kB / 452.9 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.3318, allocations: 0.7339 MB / 453.6 MB, free: 9.523 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004821/0.3366, allocations: 3.721 MB / 457.3 MB, free: 5.695 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.338, allocations: 0.7928 MB / 458.1 MB, free: 4.891 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.655e-05/0.3381, allocations: 8.656 kB / 458.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007239/0.3388, allocations: 455.2 kB / 458.6 MB, free: 4.418 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 2.505e-06/0.3388, allocations: 0 / 458.6 MB, free: 4.418 MB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.004516/0.3433, allocations: 1.709 MB / 460.3 MB, free: 2.684 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.334e-05/0.3434, allocations: 115.5 kB / 460.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008744/0.3443, allocations: 0.6049 MB / 461 MB, free: 1.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.307e-05/0.3444, allocations: 49.69 kB / 461 MB, free: 1.875 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.3447, allocations: 348.7 kB / 461.4 MB, free: 1.527 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.3449, allocations: 240.7 kB / 461.6 MB, free: 1.289 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.643e-05/0.3449, allocations: 16 kB / 461.6 MB, free: 1.273 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.3451, allocations: 386.7 kB / 462 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004783/0.3456, allocations: 265.9 kB / 462.3 MB, free: 0.625 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005711/0.3461, allocations: 425 kB / 462.7 MB, free: 164 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005408/0.3467, allocations: 304.9 kB / 463 MB, free: 15.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.3467, allocations: 0 / 463 MB, free: 15.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001588/0.3483, allocations: 0.956 MB / 463.9 MB, free: 14.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000494/0.3488, allocations: 1.34 MB / 465.3 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.3488, allocations: 5.25 kB / 465.3 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008038/0.3496, allocations: 292.7 kB / 465.6 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003643/0.35, allocations: 99.83 kB / 465.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00458/0.3546, allocations: 3.578 MB / 469.3 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005282/0.3551, allocations: 100.1 kB / 469.3 MB, free: 9.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.015e-05/0.3552, allocations: 24 kB / 469.4 MB, free: 9.215 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.796e-06/0.3552, allocations: 4 kB / 469.4 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001374/0.3566, allocations: 0.8455 MB / 470.2 MB, free: 8.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.3566, allocations: 4 kB / 470.2 MB, free: 8.352 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007161/0.3573, allocations: 305.3 kB / 470.5 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.3577, allocations: 87.89 kB / 470.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004397/0.3621, allocations: 3.574 MB / 474.2 MB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000471/0.3626, allocations: 75.36 kB / 474.3 MB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.777e-05/0.3626, allocations: 24 kB / 474.3 MB, free: 4.156 MB / 346.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 (64): * Single equations (assignments): 62 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 24} Notification: Performance of prepare postOptimizeDAE: time 0.0004622/0.3631, allocations: 348.9 kB / 474.6 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.3632, allocations: 83.06 kB / 474.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.3634, allocations: 100.2 kB / 474.8 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.3634, allocations: 8 kB / 474.8 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.3635, allocations: 0 / 474.8 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3635, allocations: 3.984 kB / 474.8 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.3662, allocations: 1.919 MB / 476.7 MB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3662, allocations: 0 / 476.7 MB, free: 1.621 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.3665, allocations: 63.91 kB / 476.8 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007322/0.3673, allocations: 313.4 kB / 477.1 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.361e-05/0.3673, allocations: 12 kB / 477.1 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004477/0.3718, allocations: 3.559 MB / 480.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3718, allocations: 3.938 kB / 480.7 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.3738, allocations: 1.332 MB / 482 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003557/0.3742, allocations: 251.9 kB / 482.3 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.3743, allocations: 19.98 kB / 482.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004196/0.3747, allocations: 35.98 kB / 482.3 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.3749, allocations: 84.59 kB / 482.4 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.001e-05/0.375, allocations: 27.98 kB / 482.4 MB, free: 11.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006473/0.3756, allocations: 471 kB / 482.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3757, allocations: 3.938 kB / 482.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001299/0.377, allocations: 439.1 kB / 483.3 MB, free: 10.87 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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 (50): * Single equations (assignments): 43 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002382/0.3772, allocations: 147.1 kB / 483.5 MB, free: 10.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002998/0.3802, allocations: 1.8 MB / 485.3 MB, free: 8.867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.3802, allocations: 0 / 485.3 MB, free: 8.867 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.3813, allocations: 0.6742 MB / 485.9 MB, free: 8.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006414/0.3819, allocations: 151.7 kB / 486.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/0.3852, allocations: 1.861 MB / 487.9 MB, free: 6.168 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006572/0.3858, allocations: 1.011 MB / 488.9 MB, free: 5.125 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003877/0.3862, allocations: 86.47 kB / 489 MB, free: 5.035 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3864, allocations: 43.44 kB / 489.1 MB, free: 4.992 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3864, allocations: 0 / 489.1 MB, free: 4.992 MB / 362.7 MB Notification: Performance of Templates: time 0.02506/0.4114, allocations: 15.92 MB / 0.4932 GB, free: 5.066 MB / 378.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1)