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_DC_Drive.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_DC_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=240000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=240000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001042/0.001042, allocations: 182.3 kB / 13.64 MB, free: 1.676 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.389/1.389, allocations: 194.3 MB / 208.4 MB, free: 6.691 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.001584/0.001584, allocations: 112.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.353e-05/2.356e-05, allocations: 4 kB / 305 MB, free: 29.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07024/0.07028, allocations: 44.5 MB / 349.5 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3026/0.3729, allocations: 97.67 MB / 447.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/0.3732, allocations: 93.38 kB / 447.2 MB, free: 13.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1053/0.4785, allocations: 41.24 MB / 488.5 MB, free: 11.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4785, allocations: 0 / 488.5 MB, free: 11.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001298/0.4787, allocations: 43.94 kB / 488.5 MB, free: 11.16 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.003286/0.482, allocations: 1.811 MB / 490.3 MB, free: 9.395 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.482, allocations: 12.03 kB / 490.3 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006554/0.4827, allocations: 261.2 kB / 490.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002137/0.4848, allocations: 1.194 MB / 491.8 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.67e-05/0.485, allocations: 119.1 kB / 491.9 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002289/0.4852, allocations: 160 kB / 492 MB, free: 7.789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002857/0.4881, allocations: 1.646 MB / 493.7 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.313e-05/0.4881, allocations: 7.906 kB / 493.7 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.4883, allocations: 68 kB / 493.8 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-05/0.4883, allocations: 40 kB / 493.8 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002168/0.4905, allocations: 1.179 MB / 495 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009491/0.5, allocations: 6.932 MB / 0.4901 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001591/0.5016, allocations: 1.013 MB / 0.4911 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009678/0.5026, allocations: 0.6403 MB / 0.4918 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.558e-05/0.5027, allocations: 16.98 kB / 0.4918 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.5038, allocations: 0.6993 MB / 0.4925 GB, free: 11.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 3.005e-06/0.5038, allocations: 0 / 0.4925 GB, free: 11.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=125): time 0.00475/0.5085, allocations: 2.88 MB / 0.4953 GB, free: 8.172 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.5086, allocations: 200.9 kB / 0.4955 GB, free: 7.934 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/0.5104, allocations: 1.16 MB / 0.4966 GB, free: 6.766 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.431e-05/0.5105, allocations: 57.69 kB / 0.4967 GB, free: 6.703 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000731/0.5113, allocations: 0.7856 MB / 0.4974 GB, free: 5.906 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003405/0.5116, allocations: 378.6 kB / 0.4978 GB, free: 5.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.559e-05/0.5117, allocations: 32 kB / 0.4978 GB, free: 5.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.5119, allocations: 365.8 kB / 0.4982 GB, free: 5.137 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008672/0.5127, allocations: 420 kB / 0.4986 GB, free: 4.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.5138, allocations: 0.829 MB / 0.4994 GB, free: 3.723 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008461/0.5147, allocations: 0.5876 MB / 0.4999 GB, free: 3.117 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.5147, allocations: 4 kB / 0.4999 GB, free: 3.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.002654/0.5173, allocations: 1.706 MB / 0.5016 GB, free: 1.371 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001807/0.5192, allocations: 4.963 MB / 0.5065 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.5192, allocations: 12 kB / 0.5065 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009222/0.5201, allocations: 343.1 kB / 0.5068 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007559/0.5209, allocations: 219.6 kB / 0.507 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006187/0.5271, allocations: 6.112 MB / 0.513 GB, free: 5.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009817/0.5281, allocations: 72.03 kB / 0.513 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.5282, allocations: 64 kB / 0.5131 GB, free: 4.879 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.184e-06/0.5282, allocations: 4 kB / 0.5131 GB, free: 4.875 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00248/0.5307, allocations: 1.582 MB / 0.5147 GB, free: 3.262 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.5308, allocations: 12 kB / 0.5147 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008226/0.5316, allocations: 355.2 kB / 0.515 GB, free: 2.895 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.5323, allocations: 223.7 kB / 0.5152 GB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00611/0.5384, allocations: 6.118 MB / 0.5212 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009918/0.5394, allocations: 59.97 kB / 0.5213 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.5395, allocations: 68 kB / 0.5213 GB, free: 12.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition4,$whenCondition3,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition2,signalPWM.zeroOrderHold.ySample,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled,$whenCondition5,$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,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count,torqueTable.a,torqueTable.b,torqueTable.last,$PRE.torqueTable.nextEvent,torqueTable.nextEvent,torqueTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003867/0.5399, allocations: 285.5 kB / 0.5216 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.5402, allocations: 165.9 kB / 0.5217 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/0.5427, allocations: 1.421 MB / 0.5231 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.906e-05/0.5427, allocations: 12 kB / 0.5231 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.5427, allocations: 0 / 0.5231 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.5428, allocations: 7.984 kB / 0.5232 GB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004565/0.5473, allocations: 3.113 MB / 0.5262 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.5473, allocations: 0 / 0.5262 GB, free: 6.871 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004957/0.5478, allocations: 119.8 kB / 0.5263 GB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008099/0.5487, allocations: 322.7 kB / 0.5266 GB, free: 6.43 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-05/0.5488, allocations: 43.97 kB / 0.5267 GB, free: 6.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005876/0.5546, allocations: 6.084 MB / 0.5326 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.5547, allocations: 7.938 kB / 0.5326 GB, free: 15.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003282/0.5579, allocations: 2.256 MB / 0.5348 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006209/0.5586, allocations: 374.9 kB / 0.5352 GB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.5588, allocations: 31.98 kB / 0.5352 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006458/0.5594, allocations: 59.97 kB / 0.5353 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.5597, allocations: 112.7 kB / 0.5354 GB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.197e-05/0.5598, allocations: 47.98 kB / 0.5354 GB, free: 12.89 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001266/0.561, allocations: 0.871 MB / 0.5363 GB, free: 12.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5611, allocations: 4 kB / 0.5363 GB, free: 12.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002342/0.5634, allocations: 0.7656 MB / 0.537 GB, free: 11.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (meanCurrent.x,meanVoltage.x,dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,inductor.i) * Number of discrete variables: 38 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,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,torqueTable.a,torqueTable.b,torqueTable.last,torqueTable.nextEvent,torqueTable.nextEventScaled,dutyCycleTable.a,dutyCycleTable.b,dutyCycleTable.last,dutyCycleTable.nextEvent,dutyCycleTable.nextEventScaled) * Number of discrete states: 16 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.nextEventScaled,dutyCycleTable.b,dutyCycleTable.a,$whenCondition2,torqueTable.nextEvent,torqueTable.last,torqueTable.nextEventScaled,torqueTable.b,torqueTable.a,$whenCondition1,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005719/0.564, allocations: 377.1 kB / 0.5374 GB, free: 10.87 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004296/0.5683, allocations: 3.32 MB / 0.5406 GB, free: 7.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.118e-05/0.5683, allocations: 0 / 0.5406 GB, free: 7.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.5699, allocations: 1.266 MB / 0.5418 GB, free: 6.078 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.5712, allocations: 322.9 kB / 0.5422 GB, free: 5.766 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004148/0.5754, allocations: 2.368 MB / 0.5445 GB, free: 3.352 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009931/0.5764, allocations: 1.354 MB / 0.5458 GB, free: 1.961 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001052/0.5774, allocations: 260.2 kB / 0.546 GB, free: 1.703 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.5776, allocations: 75.44 kB / 0.5461 GB, free: 1.629 MB / 410.7 MB Notification: Performance of SimCode: time 6.52e-07/0.5776, allocations: 0 / 0.5461 GB, free: 1.629 MB / 410.7 MB Notification: Performance of Templates: time 0.2187/0.7963, allocations: 29.2 MB / 0.5746 GB, free: 112.6 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1)