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") [: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.001743/0.001743, allocations: 188.5 kB / 8.135 MB, free: 2.215 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.062/1.062, allocations: 194.2 MB / 202.8 MB, free: 8.676 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.001697/0.001697, allocations: 114.5 kB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/5.66e-06, allocations: 0 / 297.6 MB, free: 7.906 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06946/0.06948, allocations: 44.49 MB / 342.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1866/0.2561, allocations: 79.06 MB / 421.1 MB, free: 15.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002087/0.2563, allocations: 81.28 kB / 421.2 MB, free: 15.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03283/0.2892, allocations: 14.4 MB / 435.6 MB, free: 4.043 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.051e-05/0.2893, allocations: 32.14 kB / 435.6 MB, free: 4.012 MB / 314.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.00179/0.2911, allocations: 1.055 MB / 436.7 MB, free: 2.961 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.359e-05/0.2911, allocations: 12.03 kB / 436.7 MB, free: 2.949 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002175/0.2913, allocations: 114.6 kB / 436.8 MB, free: 2.836 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009298/0.2923, allocations: 0.6359 MB / 437.5 MB, free: 2.312 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.2923, allocations: 31.98 kB / 437.5 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.2924, allocations: 55.91 kB / 437.5 MB, free: 2.227 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001145/0.2936, allocations: 0.6122 MB / 438.2 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.2948, allocations: 0.7884 MB / 438.9 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.2949, allocations: 1.969 kB / 438.9 MB, free: 1.277 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.295e-05/0.295, allocations: 3.938 kB / 438.9 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.295, allocations: 24 kB / 439 MB, free: 1.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004486/0.2995, allocations: 3.523 MB / 442.5 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3006, allocations: 0.6497 MB / 443.1 MB, free: 14.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006483/0.3013, allocations: 402 kB / 443.5 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/0.3013, allocations: 8.656 kB / 443.5 MB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006308/0.302, allocations: 394.6 kB / 443.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=81): time 2.605e-06/0.302, allocations: 0 / 443.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.001506/0.3035, allocations: 0.7597 MB / 444.7 MB, free: 13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.3036, allocations: 118.6 kB / 444.8 MB, free: 12.87 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005439/0.3041, allocations: 430.9 kB / 445.2 MB, free: 12.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.216e-05/0.3042, allocations: 29.7 kB / 445.3 MB, free: 12.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.3044, allocations: 301.9 kB / 445.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002017/0.3046, allocations: 228.8 kB / 445.8 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.859e-05/0.3047, allocations: 4 kB / 445.8 MB, free: 12.05 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3048, allocations: 378.7 kB / 446.1 MB, free: 11.7 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.3052, allocations: 223.2 kB / 446.4 MB, free: 11.58 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005202/0.3058, allocations: 368.5 kB / 446.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004334/0.3062, allocations: 239.5 kB / 447 MB, free: 11.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3062, allocations: 0 / 447 MB, free: 11.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00139/0.3076, allocations: 0.7954 MB / 447.8 MB, free: 10.6 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004775/0.3081, allocations: 1.297 MB / 449.1 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.3081, allocations: 4 kB / 449.1 MB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008968/0.309, allocations: 307 kB / 449.4 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004236/0.3095, allocations: 102.8 kB / 449.5 MB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004515/0.314, allocations: 3.183 MB / 452.6 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005691/0.3146, allocations: 71.48 kB / 452.7 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.942e-05/0.3147, allocations: 26.88 kB / 452.7 MB, free: 6.371 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.501e-06/0.3147, allocations: 4 kB / 452.7 MB, free: 6.367 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001246/0.3159, allocations: 0.6913 MB / 453.4 MB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.3159, allocations: 4 kB / 453.4 MB, free: 5.918 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008483/0.3168, allocations: 307.1 kB / 453.7 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.3172, allocations: 94.2 kB / 453.8 MB, free: 5.629 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00442/0.3216, allocations: 3.199 MB / 457 MB, free: 3.078 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.3221, allocations: 55.52 kB / 457.1 MB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-05/0.3222, allocations: 24 kB / 457.1 MB, free: 3 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.00021/0.3224, allocations: 132.8 kB / 457.2 MB, free: 2.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.3225, allocations: 71.16 kB / 457.3 MB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000181/0.3227, allocations: 78.92 kB / 457.4 MB, free: 2.711 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.3228, allocations: 11.91 kB / 457.4 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3228, allocations: 0 / 457.4 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.3228, allocations: 3.984 kB / 457.4 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002662/0.3254, allocations: 1.716 MB / 459.1 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3255, allocations: 3.984 kB / 459.1 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.3258, allocations: 63.89 kB / 459.2 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008328/0.3266, allocations: 300.7 kB / 459.5 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.538e-05/0.3267, allocations: 4 kB / 459.5 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004496/0.3312, allocations: 3.182 MB / 462.7 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3312, allocations: 7.906 kB / 462.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001842/0.3331, allocations: 1.201 MB / 463.9 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003152/0.3334, allocations: 232 kB / 464.1 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/0.3335, allocations: 4 kB / 464.1 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004479/0.334, allocations: 35.97 kB / 464.1 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.3341, allocations: 68.55 kB / 464.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.284e-05/0.3342, allocations: 20 kB / 464.2 MB, free: 11.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003828/0.3346, allocations: 315 kB / 464.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001099/0.3357, allocations: 402.8 kB / 464.9 MB, free: 10.96 MB / 346.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.0001891/0.3359, allocations: 123.2 kB / 465 MB, free: 10.83 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002419/0.3383, allocations: 1.44 MB / 466.5 MB, free: 9.363 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3383, allocations: 0 / 466.5 MB, free: 9.363 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008839/0.3392, allocations: 0.5427 MB / 467 MB, free: 8.812 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005495/0.3398, allocations: 102 kB / 467.1 MB, free: 8.719 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.3427, allocations: 1.164 MB / 468.3 MB, free: 7.523 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006885/0.3434, allocations: 1.03 MB / 469.3 MB, free: 6.469 MB / 346.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3434, allocations: 0 / 469.3 MB, free: 6.469 MB / 346.7 MB Notification: Performance of Templates: time 0.02784/0.3713, allocations: 17.02 MB / 486.3 MB, free: 5.469 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)