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.001/0.001, allocations: 180 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.145/1.145, allocations: 194.5 MB / 211.6 MB, free: 3.066 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: 123.5 kB / 256.9 MB, free: 4.336 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002698/0.0002698, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07215/0.07243, allocations: 44.49 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2345/0.3069, allocations: 97.75 MB / 452.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.3072, allocations: 97.39 kB / 452.9 MB, free: 8.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09948/0.4067, allocations: 41.22 MB / 494.1 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4067, allocations: 7.938 kB / 494.1 MB, free: 0.957 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.962e-05/0.4068, allocations: 43.94 kB / 494.2 MB, free: 0.9141 MB / 362.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.003145/0.41, allocations: 2.039 MB / 496.2 MB, free: 14.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.41, allocations: 8.031 kB / 496.2 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006109/0.4106, allocations: 261.2 kB / 496.5 MB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/0.4126, allocations: 1.206 MB / 497.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.398e-05/0.4126, allocations: 123.1 kB / 497.8 MB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.4129, allocations: 160 kB / 498 MB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002535/0.4154, allocations: 1.692 MB / 499.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.71e-05/0.4154, allocations: 7.906 kB / 499.7 MB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.4156, allocations: 71.98 kB / 499.7 MB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.331e-05/0.4156, allocations: 40 kB / 499.8 MB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002097/0.4177, allocations: 1.253 MB / 0.4893 GB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007814/0.4256, allocations: 6.928 MB / 0.496 GB, free: 2.652 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/0.4272, allocations: 1.076 MB / 0.4971 GB, free: 1.574 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.232e-05/0.4272, allocations: 16.98 kB / 0.4971 GB, free: 1.559 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.4283, allocations: 0.7266 MB / 0.4978 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 2.845e-06/0.4283, allocations: 0 / 0.4978 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.007271/0.4356, allocations: 4.162 MB / 0.5019 GB, free: 12.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.4357, allocations: 204.9 kB / 0.5021 GB, free: 12.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.4372, allocations: 1.181 MB / 0.5032 GB, free: 11.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.478e-05/0.4373, allocations: 53.7 kB / 0.5033 GB, free: 10.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006032/0.4379, allocations: 0.7933 MB / 0.5041 GB, free: 10.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/0.4382, allocations: 378.7 kB / 0.5044 GB, free: 9.777 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.089e-05/0.4382, allocations: 28 kB / 0.5045 GB, free: 9.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.4384, allocations: 361.9 kB / 0.5048 GB, free: 9.391 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007365/0.4391, allocations: 455.8 kB / 0.5052 GB, free: 8.945 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009742/0.4401, allocations: 0.864 MB / 0.5061 GB, free: 7.906 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008894/0.441, allocations: 0.6131 MB / 0.5067 GB, free: 7.273 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.441, allocations: 0 / 0.5067 GB, free: 7.273 MB / 394.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.002654/0.4437, allocations: 1.765 MB / 0.5084 GB, free: 5.473 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001568/0.4453, allocations: 4.96 MB / 0.5132 GB, free: 212 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.4453, allocations: 15.98 kB / 0.5133 GB, free: 196 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1351/0.5804, allocations: 333.5 kB / 0.5136 GB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008802/0.5813, allocations: 224.6 kB / 0.5138 GB, free: 101.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004998/0.5863, allocations: 6.171 MB / 0.5198 GB, free: 97.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.5874, allocations: 75.11 kB / 0.5199 GB, free: 97.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.498e-05/0.5875, allocations: 66.56 kB / 0.52 GB, free: 97.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.5876, allocations: 4.531 kB / 0.52 GB, free: 97.18 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002162/0.5897, allocations: 1.629 MB / 0.5215 GB, free: 97.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/0.5898, allocations: 15.25 kB / 0.5216 GB, free: 97.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007188/0.5905, allocations: 338.8 kB / 0.5219 GB, free: 97.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005921/0.5911, allocations: 217.2 kB / 0.5221 GB, free: 97.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004704/0.5958, allocations: 6.177 MB / 0.5281 GB, free: 93.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000973/0.5968, allocations: 73.86 kB / 0.5282 GB, free: 93.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-05/0.5969, allocations: 65.44 kB / 0.5283 GB, free: 93.06 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 133 * 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%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0008331/0.5977, allocations: 0.5617 MB / 0.5288 GB, free: 92.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.5979, allocations: 166.5 kB / 0.529 GB, free: 92.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/0.6002, allocations: 1.472 MB / 0.5304 GB, free: 92.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.6002, allocations: 12.36 kB / 0.5304 GB, free: 92.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.6003, allocations: 1.094 kB / 0.5304 GB, free: 92.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.305e-05/0.6003, allocations: 8.281 kB / 0.5304 GB, free: 92.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004273/0.6046, allocations: 3.157 MB / 0.5335 GB, free: 92.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.6046, allocations: 2.281 kB / 0.5335 GB, free: 92.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004809/0.6051, allocations: 123.5 kB / 0.5336 GB, free: 92.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000726/0.6058, allocations: 325.1 kB / 0.5339 GB, free: 92.12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.157e-05/0.6059, allocations: 35.03 kB / 0.534 GB, free: 92.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004932/0.6108, allocations: 6.156 MB / 0.54 GB, free: 88.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.6108, allocations: 2.281 kB / 0.54 GB, free: 88.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003302/0.6141, allocations: 2.344 MB / 0.5423 GB, free: 87.12 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006587/0.6148, allocations: 374 kB / 0.5426 GB, free: 86.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.615, allocations: 31.36 kB / 0.5427 GB, free: 86.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006291/0.6156, allocations: 55.16 kB / 0.5427 GB, free: 86.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000284/0.6159, allocations: 114.7 kB / 0.5428 GB, free: 86.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.572e-05/0.616, allocations: 46.83 kB / 0.5429 GB, free: 86.79 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001263/0.6173, allocations: 0.8872 MB / 0.5437 GB, free: 86.44 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6173, allocations: 0 / 0.5437 GB, free: 86.44 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002584/0.6199, allocations: 0.7596 MB / 0.5445 GB, free: 86.36 MB / 394.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 70 * 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%) 4} * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007366/0.6206, allocations: 388.2 kB / 0.5448 GB, free: 86.24 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004414/0.6251, allocations: 3.372 MB / 0.5481 GB, free: 84.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.6251, allocations: 3.938 kB / 0.5481 GB, free: 84.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001582/0.6267, allocations: 1.295 MB / 0.5494 GB, free: 83.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.628, allocations: 316 kB / 0.5497 GB, free: 83.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004392/0.6324, allocations: 3.686 MB / 0.5533 GB, free: 81.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007374/0.6332, allocations: 1.351 MB / 0.5546 GB, free: 80.57 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006777/0.6339, allocations: 187.6 kB / 0.5548 GB, free: 80.53 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.634, allocations: 86.31 kB / 0.5549 GB, free: 80.53 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6341, allocations: 0 / 0.5549 GB, free: 80.53 MB / 394.7 MB Notification: Performance of Templates: time 0.03284/0.6669, allocations: 26.83 MB / 0.5811 GB, free: 76.73 MB / 394.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)