Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=240000,variableFilter="time|dcpm.inertiaRotor.phi|dcpm.inertiaRotor.w|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=240000,variableFilter="time|dcpm.inertiaRotor.phi|dcpm.inertiaRotor.w|inductor.i|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001048/0.001048, allocations: 114.8 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001077/0.001077, allocations: 208 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 63.89 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2239, allocations: 50.54 MB / 410 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.01218/0.2362, allocations: 11.43 MB / 421.4 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005642/0.2418, allocations: 3.806 MB / 425.2 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007405/0.2426, allocations: 35.88 kB / 425.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.2441, allocations: 0.788 MB / 426 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001215/0.2454, allocations: 0.7603 MB / 426.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.2466, allocations: 0.729 MB / 427.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002356/0.249, allocations: 2.677 MB / 430.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001279/0.2503, allocations: 1.036 MB / 431.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.2513, allocations: 0.9885 MB / 432.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.2524, allocations: 1.07 MB / 433.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002963/0.2527, allocations: 267.9 kB / 433.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006466/0.2534, allocations: 447.8 kB / 434 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004218/0.2538, allocations: 0.5217 MB / 434.5 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009375/0.2547, allocations: 1.151 MB / 435.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00283/0.2576, allocations: 3.187 MB / 438.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2576, allocations: 0 / 438.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2576, allocations: 0 / 438.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.545e-05/0.2576, allocations: 4 kB / 438.9 MB, free: 4.523 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 421 * Number of variables: 421 Notification: Performance of Generate backend data structure: time 0.003861/0.2615, allocations: 2.531 MB / 441.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.2615, allocations: 16.03 kB / 441.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006288/0.2622, allocations: 279.4 kB / 441.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.2641, allocations: 1.239 MB / 442.9 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.399e-05/0.2642, allocations: 127.6 kB / 443.1 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/0.2644, allocations: 180.3 kB / 443.2 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002783/0.2672, allocations: 1.767 MB / 445 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.281e-05/0.2673, allocations: 4 kB / 445 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.2674, allocations: 72 kB / 445.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.094e-05/0.2675, allocations: 43.94 kB / 445.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002442/0.2699, allocations: 1.308 MB / 446.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007803/0.2777, allocations: 6.909 MB / 453.3 MB, free: 5.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.2796, allocations: 1.119 MB / 454.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.2807, allocations: 0.6975 MB / 455.1 MB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.527e-05/0.2808, allocations: 13 kB / 455.2 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.282, allocations: 0.7577 MB / 455.9 MB, free: 2.953 MB / 366.1 MB Notification: Performance of pre-optimization done (n=124): time 4.148e-06/0.282, allocations: 0 / 455.9 MB, free: 2.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=127): time 0.00804/0.29, allocations: 4.28 MB / 460.2 MB, free: 14.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.2902, allocations: 208.8 kB / 460.4 MB, free: 14.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/0.2918, allocations: 1.426 MB / 461.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.2919, allocations: 53.69 kB / 461.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005553/0.2924, allocations: 0.8344 MB / 462.7 MB, free: 11.94 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002777/0.2927, allocations: 412.6 kB / 463.1 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003563/0.2931, allocations: 279.4 kB / 463.4 MB, free: 11.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.286e-05/0.2932, allocations: 312.9 kB / 463.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008976/0.2941, allocations: 488.6 kB / 464.2 MB, free: 10.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.2952, allocations: 0.9056 MB / 465.1 MB, free: 9.379 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.2973, allocations: 1.505 MB / 466.6 MB, free: 7.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.463e-06/0.2973, allocations: 4 kB / 466.6 MB, free: 7.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.002981/0.3003, allocations: 1.894 MB / 468.5 MB, free: 5.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.88e-05/0.3003, allocations: 105.5 kB / 468.6 MB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.3004, allocations: 20 kB / 468.6 MB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008635/0.3012, allocations: 334.3 kB / 468.9 MB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007677/0.302, allocations: 247.6 kB / 469.2 MB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006378/0.3084, allocations: 6.786 MB / 476 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008619/0.3093, allocations: 76.02 kB / 476 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.292e-05/0.3094, allocations: 67.94 kB / 476.1 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001289/0.3107, allocations: 0.7655 MB / 476.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001169/0.3119, allocations: 0.8938 MB / 477.8 MB, free: 11.83 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002014/0.3139, allocations: 1.486 MB / 479.2 MB, free: 10.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.533e-06/0.3139, allocations: 4 kB / 479.2 MB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization_lambda0): time 0.002954/0.3169, allocations: 1.871 MB / 481.1 MB, free: 8.227 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.967e-05/0.3169, allocations: 109.1 kB / 481.2 MB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.317, allocations: 16 kB / 481.2 MB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008351/0.3178, allocations: 347 kB / 481.6 MB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007422/0.3186, allocations: 235.6 kB / 481.8 MB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00646/0.325, allocations: 6.779 MB / 488.6 MB, free: 324 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000911/0.326, allocations: 91.95 kB / 488.7 MB, free: 232 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.794e-05/0.3261, allocations: 60 kB / 488.7 MB, free: 172 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 47 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,meanCurrent.y_last,$PRE.meanCurrent.y_last,meanVoltage.y_last,$PRE.meanVoltage.y_last,$whenCondition4,$whenCondition3,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,dutyCycleTable.nextEventScaled,dutyCycleTable.nextEvent,$PRE.dutyCycleTable.nextEvent,dutyCycleTable.last,dutyCycleTable.b,dutyCycleTable.a,torqueTable.nextEventScaled,torqueTable.nextEvent,$PRE.torqueTable.nextEvent,torqueTable.last,torqueTable.b,torqueTable.a,signalPWM.triangle.count,$PRE.signalPWM.triangle.count,signalPWM.triangle.T_start,$PRE.signalPWM.triangle.T_start,signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,hbridge.not_n.y,hbridge.not_p.y,hbridge.inverter_n.diode_n.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_p.diode_n.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.andCondition_p.y,hbridge.fire_p,$whenCondition2,$whenCondition1,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (145): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0003672/0.3264, allocations: 364.5 kB / 489.1 MB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002042/0.3266, allocations: 182.9 kB / 489.3 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002956/0.3296, allocations: 1.643 MB / 490.9 MB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.3296, allocations: 3.984 kB / 490.9 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3296, allocations: 0 / 490.9 MB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004845/0.3301, allocations: 371.8 kB / 491.3 MB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002007/0.3303, allocations: 32 kB / 491.3 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006835/0.331, allocations: 63.88 kB / 491.4 MB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.3312, allocations: 96.88 kB / 491.5 MB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00357/0.3348, allocations: 1.824 MB / 493.3 MB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003272/0.3381, allocations: 2.17 MB / 495.5 MB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009079/0.339, allocations: 0.5704 MB / 496 MB, free: 8.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001219/0.3403, allocations: 0.9518 MB / 497 MB, free: 7.77 MB / 414.1 MB Notification: Performance of Backend: time 6.21e-07/0.3403, allocations: 4 kB / 497 MB, free: 7.766 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004701/0.345, allocations: 3.254 MB / 0.4885 GB, free: 4.359 MB / 414.1 MB Notification: Performance of SimCode: time 0.004681/0.3497, allocations: 3.912 MB / 0.4923 GB, free: 388 kB / 414.1 MB Notification: Performance of Templates: time 0.04509/0.3948, allocations: 31.14 MB / 0.5227 GB, free: 1.43 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1)