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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001475/0.001476, allocations: 194.9 kB / 8.138 MB, free: 2.191 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.171/1.171, allocations: 194.2 MB / 202.8 MB, free: 8.734 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.001804/0.001804, allocations: 127 kB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.006e-05/1.016e-05, allocations: 0 / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09427, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2063/0.3006, allocations: 96.92 MB / 439 MB, free: 14.45 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.3009, allocations: 89.44 kB / 439.1 MB, free: 14.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1143/0.4152, allocations: 40.72 MB / 479.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001382/0.4153, allocations: 43.94 kB / 479.8 MB, free: 13.02 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.003603/0.419, allocations: 1.845 MB / 481.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.419, allocations: 12.03 kB / 481.7 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009103/0.4199, allocations: 265.2 kB / 482 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002623/0.4226, allocations: 1.203 MB / 483.2 MB, free: 9.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.19e-05/0.4226, allocations: 52 kB / 483.2 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002441/0.4229, allocations: 99.89 kB / 483.3 MB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002302/0.4252, allocations: 1.076 MB / 484.4 MB, free: 8.344 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.4279, allocations: 1.421 MB / 485.8 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.454e-05/0.4279, allocations: 11.91 kB / 485.8 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.4281, allocations: 4 kB / 485.8 MB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.4281, allocations: 36 kB / 485.9 MB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009206/0.4373, allocations: 6.645 MB / 492.5 MB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008623/0.4382, allocations: 0.5323 MB / 493 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009646/0.4392, allocations: 0.6012 MB / 493.6 MB, free: 14.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.961e-05/0.4393, allocations: 16.98 kB / 493.6 MB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009962/0.4403, allocations: 0.6426 MB / 494.3 MB, free: 14.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 2.845e-06/0.4403, allocations: 0 / 494.3 MB, free: 14.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.004442/0.4447, allocations: 2.461 MB / 496.8 MB, free: 11.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.4449, allocations: 204.9 kB / 497 MB, free: 11.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/0.4461, allocations: 0.9175 MB / 497.9 MB, free: 10.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.159e-05/0.4462, allocations: 33.69 kB / 497.9 MB, free: 10.33 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004032/0.4466, allocations: 0.6043 MB / 498.5 MB, free: 9.715 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002818/0.4469, allocations: 366.7 kB / 498.9 MB, free: 9.352 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.032e-05/0.447, allocations: 0 / 498.9 MB, free: 9.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.4471, allocations: 361.8 kB / 499.2 MB, free: 8.992 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006886/0.4478, allocations: 396 kB / 499.6 MB, free: 8.605 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009329/0.4487, allocations: 0.7896 MB / 0.4887 GB, free: 7.633 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000829/0.4496, allocations: 482.6 kB / 0.4891 GB, free: 7.164 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.4496, allocations: 4 kB / 0.4891 GB, free: 7.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.002622/0.4522, allocations: 1.438 MB / 0.4905 GB, free: 5.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001613/0.4538, allocations: 4.806 MB / 0.4952 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.4539, allocations: 12 kB / 0.4952 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009737/0.4549, allocations: 344.6 kB / 0.4956 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/0.4557, allocations: 227.5 kB / 0.4958 GB, free: 15.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005834/0.4616, allocations: 5.501 MB / 0.5012 GB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009487/0.4626, allocations: 51.94 kB / 0.5012 GB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.4627, allocations: 64.05 kB / 0.5013 GB, free: 9.996 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-06/0.4627, allocations: 4 kB / 0.5013 GB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002229/0.4649, allocations: 1.258 MB / 0.5025 GB, free: 8.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.461e-05/0.465, allocations: 12 kB / 0.5025 GB, free: 8.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008777/0.4659, allocations: 330.8 kB / 0.5028 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007799/0.4666, allocations: 223.8 kB / 0.503 GB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005714/0.4724, allocations: 5.511 MB / 0.5084 GB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008844/0.4733, allocations: 40.16 kB / 0.5085 GB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.4734, allocations: 68.06 kB / 0.5085 GB, free: 2.207 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.0003158/0.4737, allocations: 233 kB / 0.5087 GB, free: 1.961 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/0.4739, allocations: 154.2 kB / 0.5089 GB, free: 1.809 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002243/0.4762, allocations: 1.197 MB / 0.5101 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.4762, allocations: 12 kB / 0.5101 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.4762, allocations: 3.906 kB / 0.5101 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.4762, allocations: 7.969 kB / 0.5101 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0982/0.5744, allocations: 2.718 MB / 0.5127 GB, free: 137.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.5745, allocations: 0 / 0.5127 GB, free: 137.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005636/0.5751, allocations: 128.3 kB / 0.5129 GB, free: 137.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008006/0.5759, allocations: 320.9 kB / 0.5132 GB, free: 137.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.83e-05/0.576, allocations: 20 kB / 0.5132 GB, free: 137.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004524/0.5805, allocations: 5.472 MB / 0.5185 GB, free: 134.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5805, allocations: 7.219 kB / 0.5185 GB, free: 134.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00256/0.5831, allocations: 2.049 MB / 0.5205 GB, free: 133.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005586/0.5837, allocations: 354.4 kB / 0.5209 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002508/0.5839, allocations: 12 kB / 0.5209 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006941/0.5846, allocations: 45.61 kB / 0.5209 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.5848, allocations: 89.31 kB / 0.521 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-05/0.5849, allocations: 52.3 kB / 0.5211 GB, free: 133.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0007567/0.5857, allocations: 0.6692 MB / 0.5217 GB, free: 133.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00193/0.5876, allocations: 0.6244 MB / 0.5223 GB, free: 133.6 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) * 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.0004885/0.5881, allocations: 351.8 kB / 0.5227 GB, free: 133.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003309/0.5914, allocations: 2.66 MB / 0.5253 GB, free: 132.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.5914, allocations: 2.719 kB / 0.5253 GB, free: 132.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.5927, allocations: 1.064 MB / 0.5263 GB, free: 132.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.5938, allocations: 254.8 kB / 0.5265 GB, free: 132.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.5981, allocations: 2.324 MB / 0.5288 GB, free: 131.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008728/0.599, allocations: 1.406 MB / 0.5302 GB, free: 130.9 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.599, allocations: 0 / 0.5302 GB, free: 130.9 MB / 394.7 MB Notification: Performance of Templates: time 0.04085/0.6399, allocations: 27.43 MB / 0.557 GB, free: 129.5 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)