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.001419/0.001419, allocations: 184.3 kB / 13.65 MB, free: 1.668 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.386/1.386, allocations: 194.3 MB / 208.4 MB, free: 6.742 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.001625/0.001625, allocations: 120.7 kB / 253.5 MB, free: 9.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.62e-05/2.625e-05, allocations: 4 kB / 304.9 MB, free: 29.79 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07469/0.07473, allocations: 44.51 MB / 349.5 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3037/0.3785, allocations: 79.79 MB / 429.3 MB, free: 9.977 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001846/0.3787, allocations: 86 kB / 429.3 MB, free: 9.961 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02991/0.4086, allocations: 14.78 MB / 444.1 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4086, allocations: 0 / 444.1 MB, free: 2.926 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.515e-05/0.4087, allocations: 20 kB / 444.1 MB, free: 2.906 MB / 298.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.001453/0.4102, allocations: 1.045 MB / 445.2 MB, free: 1.875 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.4102, allocations: 8.031 kB / 445.2 MB, free: 1.867 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.4104, allocations: 114.6 kB / 445.3 MB, free: 1.754 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007483/0.4111, allocations: 0.6272 MB / 445.9 MB, free: 1.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.4112, allocations: 66.56 kB / 446 MB, free: 1.211 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.4113, allocations: 84.81 kB / 446.1 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.4126, allocations: 0.9131 MB / 447 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.146e-05/0.4126, allocations: 0 / 447 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-05/0.4127, allocations: 37.86 kB / 447 MB, free: 0.4961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.4127, allocations: 20 kB / 447 MB, free: 488 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009612/0.4137, allocations: 0.6835 MB / 447.7 MB, free: 60 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004327/0.418, allocations: 3.712 MB / 451.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.4192, allocations: 0.7603 MB / 452.2 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006378/0.4198, allocations: 438.3 kB / 452.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.397e-05/0.4199, allocations: 8.781 kB / 452.6 MB, free: 12.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006791/0.4206, allocations: 448.3 kB / 453.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=81): time 2.675e-06/0.4206, allocations: 0 / 453.1 MB, free: 12.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.00157/0.4222, allocations: 0.846 MB / 453.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.43e-05/0.4223, allocations: 118.8 kB / 454 MB, free: 11.46 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007028/0.423, allocations: 0.5839 MB / 454.6 MB, free: 11.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.472e-05/0.4231, allocations: 43.52 kB / 454.7 MB, free: 10.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/0.4233, allocations: 354 kB / 455 MB, free: 10.75 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00024/0.4236, allocations: 246 kB / 455.3 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.415e-05/0.4236, allocations: 17.88 kB / 455.3 MB, free: 10.55 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.4239, allocations: 386.7 kB / 455.6 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004706/0.4243, allocations: 242.5 kB / 455.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004692/0.4248, allocations: 379 kB / 456.3 MB, free: 9.758 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004187/0.4252, allocations: 286.9 kB / 456.5 MB, free: 9.562 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.4253, allocations: 0 / 456.5 MB, free: 9.562 MB / 314.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001363/0.4266, allocations: 0.9133 MB / 457.4 MB, free: 8.926 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005543/0.4272, allocations: 1.35 MB / 458.8 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.4272, allocations: 4 kB / 458.8 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008775/0.4281, allocations: 315.5 kB / 459.1 MB, free: 7.273 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003844/0.4285, allocations: 95.19 kB / 459.2 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004651/0.4332, allocations: 3.621 MB / 462.8 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006885/0.4339, allocations: 87.53 kB / 462.9 MB, free: 4.422 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-05/0.4339, allocations: 29.88 kB / 462.9 MB, free: 4.398 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.434, allocations: 7.938 kB / 462.9 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001356/0.4353, allocations: 0.8259 MB / 463.8 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.4353, allocations: 4 kB / 463.8 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007567/0.4361, allocations: 325.3 kB / 464.1 MB, free: 3.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.4364, allocations: 87.84 kB / 464.2 MB, free: 3.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004608/0.441, allocations: 3.611 MB / 467.8 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005565/0.4416, allocations: 79.41 kB / 467.9 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.938e-05/0.4417, allocations: 28 kB / 467.9 MB, free: 15.31 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 60 * 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 26} Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.4419, allocations: 164.8 kB / 468.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.4421, allocations: 90.95 kB / 468.1 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.4424, allocations: 96.25 kB / 468.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.4424, allocations: 8 kB / 468.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4424, allocations: 0 / 468.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.4424, allocations: 3.984 kB / 468.3 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.445, allocations: 1.922 MB / 470.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4451, allocations: 0 / 470.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002815/0.4454, allocations: 55.91 kB / 470.2 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000771/0.4461, allocations: 320.6 kB / 470.5 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/0.4462, allocations: 16 kB / 470.6 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004428/0.4506, allocations: 3.616 MB / 474.2 MB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4506, allocations: 4 kB / 474.2 MB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.4525, allocations: 1.284 MB / 475.5 MB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003288/0.4528, allocations: 263.8 kB / 475.7 MB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.087e-05/0.4529, allocations: 12 kB / 475.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.4534, allocations: 48.03 kB / 475.8 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.4536, allocations: 84.61 kB / 475.9 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.4536, allocations: 20 kB / 475.9 MB, free: 7.082 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005808/0.4542, allocations: 455.2 kB / 476.3 MB, free: 6.645 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4542, allocations: 0 / 476.3 MB, free: 6.645 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001284/0.4555, allocations: 447.1 kB / 476.8 MB, free: 6.207 MB / 330.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 41 * 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 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002452/0.4558, allocations: 150.2 kB / 476.9 MB, free: 6.047 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.4586, allocations: 1.766 MB / 478.7 MB, free: 4.234 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4587, allocations: 0 / 478.7 MB, free: 4.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009718/0.4596, allocations: 0.6632 MB / 479.3 MB, free: 3.562 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000639/0.4603, allocations: 155.5 kB / 479.5 MB, free: 3.41 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.4627, allocations: 1.198 MB / 480.7 MB, free: 2.191 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005808/0.4633, allocations: 1.012 MB / 481.7 MB, free: 1.148 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004327/0.4637, allocations: 114.4 kB / 481.8 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.043e-05/0.4638, allocations: 39.44 kB / 481.8 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4638, allocations: 4 kB / 481.9 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of Templates: time 0.02645/0.4903, allocations: 17.16 MB / 499 MB, free: 15.81 MB / 362.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)