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.001334/0.001334, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.327/1.327, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001664/0.001664, allocations: 108.9 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.414e-05/1.416e-05, allocations: 4 kB / 298.1 MB, free: 8.234 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07527/0.0753, allocations: 44.51 MB / 342.6 MB, free: 11.62 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2602/0.3355, allocations: 96.99 MB / 439.6 MB, free: 15.08 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.3357, allocations: 97.81 kB / 439.7 MB, free: 15.02 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1034/0.4391, allocations: 40.73 MB / 480.4 MB, free: 13.54 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4392, allocations: 0 / 480.4 MB, free: 13.54 MB / 363.1 MB Notification: Performance of Transformations before backend: time 0.0001521/0.4393, allocations: 43.94 kB / 480.5 MB, free: 13.49 MB / 363.1 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.003689/0.443, allocations: 1.818 MB / 482.3 MB, free: 11.6 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.4431, allocations: 8.031 kB / 482.3 MB, free: 11.59 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000873/0.444, allocations: 269.2 kB / 482.5 MB, free: 11.32 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002382/0.4464, allocations: 1.186 MB / 483.7 MB, free: 10.08 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.666e-05/0.4464, allocations: 48 kB / 483.8 MB, free: 10.04 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002642/0.4467, allocations: 108 kB / 483.9 MB, free: 9.93 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002178/0.4489, allocations: 1.069 MB / 485 MB, free: 8.859 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.4514, allocations: 1.421 MB / 486.4 MB, free: 7.355 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.242e-05/0.4515, allocations: 11.84 kB / 486.4 MB, free: 7.344 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/0.4516, allocations: 7.984 kB / 486.4 MB, free: 7.336 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.95e-05/0.4517, allocations: 43.98 kB / 486.4 MB, free: 7.293 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009049/0.4607, allocations: 6.61 MB / 493 MB, free: 452 kB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.4622, allocations: 0.9681 MB / 494 MB, free: 15.46 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000907/0.4632, allocations: 0.6022 MB / 494.6 MB, free: 14.86 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.864e-05/0.4633, allocations: 9.312 kB / 494.6 MB, free: 14.85 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.4643, allocations: 0.6742 MB / 495.3 MB, free: 14.15 MB / 379.1 MB Notification: Performance of pre-optimization done (n=122): time 4.949e-06/0.4643, allocations: 0 / 495.3 MB, free: 14.15 MB / 379.1 MB Notification: Performance of matching and sorting (n=125): time 0.004764/0.4691, allocations: 2.532 MB / 497.8 MB, free: 11.56 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.4692, allocations: 205.2 kB / 498 MB, free: 11.32 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.4707, allocations: 0.9214 MB / 499 MB, free: 10.39 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 8.181e-05/0.4708, allocations: 29.7 kB / 499 MB, free: 10.35 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006545/0.4715, allocations: 0.7918 MB / 499.8 MB, free: 9.547 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000304/0.4718, allocations: 366.7 kB / 0.4884 GB, free: 9.184 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.94e-05/0.4719, allocations: 4 kB / 0.4884 GB, free: 9.18 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.472, allocations: 357.9 kB / 0.4888 GB, free: 8.824 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006312/0.4727, allocations: 392 kB / 0.4891 GB, free: 8.441 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009551/0.4736, allocations: 0.7903 MB / 0.4899 GB, free: 7.473 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008488/0.4745, allocations: 486.1 kB / 0.4904 GB, free: 6.996 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.4745, allocations: 4 kB / 0.4904 GB, free: 6.992 MB / 379.1 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.002387/0.4769, allocations: 1.451 MB / 0.4918 GB, free: 5.523 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001917/0.4788, allocations: 4.909 MB / 0.4966 GB, free: 248 kB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.4789, allocations: 12 kB / 0.4966 GB, free: 236 kB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.4799, allocations: 335 kB / 0.4969 GB, free: 15.89 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008412/0.4807, allocations: 223.6 kB / 0.4971 GB, free: 15.68 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006216/0.487, allocations: 5.928 MB / 0.5029 GB, free: 9.402 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.4881, allocations: 40.05 kB / 0.503 GB, free: 9.363 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/0.4883, allocations: 71.97 kB / 0.503 GB, free: 9.293 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.825e-06/0.4884, allocations: 4 kB / 0.503 GB, free: 9.289 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002423/0.4908, allocations: 1.322 MB / 0.5043 GB, free: 7.957 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-05/0.4908, allocations: 12 kB / 0.5043 GB, free: 7.945 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008082/0.4916, allocations: 327 kB / 0.5046 GB, free: 7.617 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006939/0.4923, allocations: 215.7 kB / 0.5048 GB, free: 7.406 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005782/0.4981, allocations: 5.924 MB / 0.5106 GB, free: 1.129 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009318/0.4991, allocations: 40.05 kB / 0.5107 GB, free: 1.09 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001413/0.4992, allocations: 71.98 kB / 0.5107 GB, free: 1.02 MB / 395.1 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.000365/0.4996, allocations: 241.2 kB / 0.511 GB, free: 0.7656 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002866/0.4999, allocations: 150.2 kB / 0.5111 GB, free: 0.6172 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1763/0.6762, allocations: 1.235 MB / 0.5123 GB, free: 92.77 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.6763, allocations: 11.84 kB / 0.5123 GB, free: 92.77 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.6763, allocations: 1.547 kB / 0.5123 GB, free: 92.77 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.6763, allocations: 4.5 kB / 0.5123 GB, free: 92.77 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00402/0.6804, allocations: 2.747 MB / 0.515 GB, free: 92.41 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.6804, allocations: 0 / 0.515 GB, free: 92.41 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004783/0.6809, allocations: 120.4 kB / 0.5151 GB, free: 92.41 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006893/0.6816, allocations: 317.6 kB / 0.5154 GB, free: 92.39 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.515e-05/0.6817, allocations: 25.58 kB / 0.5155 GB, free: 92.39 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004328/0.686, allocations: 5.881 MB / 0.5212 GB, free: 88.63 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.686, allocations: 3.906 kB / 0.5212 GB, free: 88.63 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002669/0.6887, allocations: 2.074 MB / 0.5232 GB, free: 88.25 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004856/0.6892, allocations: 348.3 kB / 0.5236 GB, free: 88.16 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.6894, allocations: 14.44 kB / 0.5236 GB, free: 88.16 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006144/0.69, allocations: 39.22 kB / 0.5236 GB, free: 88.16 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.6902, allocations: 110.8 kB / 0.5237 GB, free: 88.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-05/0.6903, allocations: 46.05 kB / 0.5238 GB, free: 88.16 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0007825/0.6911, allocations: 0.6682 MB / 0.5244 GB, free: 88.05 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6911, allocations: 5.562 kB / 0.5244 GB, free: 88.05 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002159/0.6933, allocations: 0.6424 MB / 0.525 GB, free: 88.05 MB / 395.1 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.0005058/0.6938, allocations: 350.9 kB / 0.5254 GB, free: 87.95 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003356/0.6972, allocations: 3.123 MB / 0.5284 GB, free: 86.88 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.6972, allocations: 2.5 kB / 0.5284 GB, free: 86.88 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.6984, allocations: 1.207 MB / 0.5296 GB, free: 86.42 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.6996, allocations: 252.7 kB / 0.5299 GB, free: 86.42 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003601/0.7032, allocations: 2.285 MB / 0.5321 GB, free: 85.75 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006978/0.7039, allocations: 1.361 MB / 0.5334 GB, free: 85.01 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0009635/0.7049, allocations: 237.7 kB / 0.5336 GB, free: 84.99 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.705, allocations: 66.36 kB / 0.5337 GB, free: 84.99 MB / 395.1 MB Notification: Performance of SimCode: time 5.41e-07/0.705, allocations: 0.5625 kB / 0.5337 GB, free: 84.99 MB / 395.1 MB Notification: Performance of Templates: time 0.04036/0.7454, allocations: 23.97 MB / 0.5571 GB, free: 83.52 MB / 395.1 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)