Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 111 kB / 17.75 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 186.4 kB / 18.68 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000965/0.000965, allocations: 47.94 kB / 352 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2183, allocations: 49.44 MB / 401.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive): time 0.01168/0.23, allocations: 11.15 MB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006126/0.2361, allocations: 3.65 MB / 416.3 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.2372, allocations: 39.88 kB / 416.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001626/0.2389, allocations: 0.7919 MB / 417.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001406/0.2403, allocations: 0.7409 MB / 417.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.2417, allocations: 0.7051 MB / 418.5 MB, free: 7.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002253/0.2439, allocations: 2.599 MB / 421.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001218/0.2451, allocations: 1.008 MB / 422.1 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009641/0.2461, allocations: 0.9457 MB / 423.1 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009862/0.2471, allocations: 1.046 MB / 424.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002951/0.2474, allocations: 252 kB / 424.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000646/0.2481, allocations: 439.8 kB / 424.8 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003882/0.2485, allocations: 0.5099 MB / 425.3 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009045/0.2494, allocations: 1.124 MB / 426.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002554/0.252, allocations: 3.084 MB / 429.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.252, allocations: 0 / 429.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.252, allocations: 0 / 429.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.293e-05/0.252, allocations: 0 / 429.5 MB, free: 12.62 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: 412 * Number of variables: 412 Notification: Performance of Generate backend data structure: time 0.003733/0.2557, allocations: 2.389 MB / 431.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.2558, allocations: 12.03 kB / 431.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006426/0.2564, allocations: 262.2 kB / 432.2 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001753/0.2582, allocations: 1.171 MB / 433.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.349e-05/0.2583, allocations: 119.5 kB / 433.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002132/0.2585, allocations: 168.3 kB / 433.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/0.2612, allocations: 1.7 MB / 435.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.2613, allocations: 15.94 kB / 435.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.2614, allocations: 64 kB / 435.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.2614, allocations: 40 kB / 435.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002151/0.2636, allocations: 1.233 MB / 436.7 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007793/0.2714, allocations: 6.8 MB / 443.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.273, allocations: 1.052 MB / 444.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.2741, allocations: 0.6541 MB / 445.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.538e-05/0.2742, allocations: 13 kB / 445.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001094/0.2753, allocations: 0.7148 MB / 445.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 4.479e-06/0.2753, allocations: 0 / 445.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.007876/0.2832, allocations: 4.069 MB / 450 MB, free: 7.496 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.894e-05/0.2833, allocations: 208.9 kB / 450.2 MB, free: 7.25 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001689/0.285, allocations: 1.388 MB / 451.6 MB, free: 5.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.54e-05/0.2851, allocations: 49.7 kB / 451.6 MB, free: 5.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005889/0.2857, allocations: 0.7933 MB / 452.4 MB, free: 4.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002799/0.2859, allocations: 382.5 kB / 452.8 MB, free: 4.613 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003635/0.2863, allocations: 275.4 kB / 453.1 MB, free: 4.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.19e-05/0.2864, allocations: 301.1 kB / 453.4 MB, free: 4.043 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007637/0.2872, allocations: 452.7 kB / 453.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/0.2882, allocations: 0.8704 MB / 454.7 MB, free: 2.543 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001775/0.29, allocations: 1.435 MB / 456.1 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.934e-06/0.29, allocations: 11.94 kB / 456.1 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.002748/0.2928, allocations: 1.823 MB / 457.9 MB, free: 15.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.717e-05/0.2928, allocations: 101.1 kB / 458 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.605e-05/0.2929, allocations: 15.94 kB / 458.1 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009063/0.2938, allocations: 350.9 kB / 458.4 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007347/0.2945, allocations: 227.6 kB / 458.6 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006817/0.3014, allocations: 6.77 MB / 465.4 MB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.3024, allocations: 59.97 kB / 465.5 MB, free: 7.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.492e-05/0.3026, allocations: 60 kB / 465.5 MB, free: 7.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001292/0.3039, allocations: 0.7343 MB / 466.2 MB, free: 6.277 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001002/0.3049, allocations: 0.8548 MB / 467.1 MB, free: 5.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001713/0.3066, allocations: 1.42 MB / 468.5 MB, free: 3.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.834e-06/0.3066, allocations: 7.938 kB / 468.5 MB, free: 3.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=186) (initialization_lambda0): time 0.00274/0.3094, allocations: 1.796 MB / 470.3 MB, free: 1.777 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.41e-05/0.3094, allocations: 105.1 kB / 470.4 MB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.3095, allocations: 12.56 kB / 470.4 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008615/0.3103, allocations: 358.4 kB / 470.8 MB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000697/0.311, allocations: 215.7 kB / 471 MB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00648/0.3175, allocations: 6.774 MB / 477.8 MB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.3186, allocations: 67.91 kB / 477.8 MB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.978e-05/0.3187, allocations: 68.11 kB / 477.9 MB, free: 9.754 MB / 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: 46 (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,signalPWM.zeroOrderHold.ySample,$whenCondition2,torqueTable.nextEventScaled,torqueTable.nextEvent,$PRE.torqueTable.nextEvent,torqueTable.last,torqueTable.b,torqueTable.a,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,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.andCondition_n.y,hbridge.andCondition_p.y,$whenCondition1,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 136 * 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.0003874/0.3191, allocations: 360.7 kB / 478.3 MB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.3193, allocations: 165.9 kB / 478.4 MB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002727/0.322, allocations: 1.563 MB / 480 MB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.322, allocations: 7.922 kB / 480 MB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3221, allocations: 3.984 kB / 480 MB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005303/0.3226, allocations: 359 kB / 480.3 MB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002091/0.3228, allocations: 28 kB / 480.4 MB, free: 7.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006663/0.3235, allocations: 51.95 kB / 480.4 MB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.3237, allocations: 84.88 kB / 480.5 MB, free: 7.074 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003411/0.3271, allocations: 1.74 MB / 482.2 MB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002916/0.33, allocations: 2.061 MB / 484.3 MB, free: 3.191 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007696/0.3308, allocations: 0.531 MB / 484.8 MB, free: 2.664 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001248/0.3321, allocations: 0.9271 MB / 485.8 MB, free: 1.738 MB / 398.1 MB Notification: Performance of Backend: time 2.4e-07/0.3321, allocations: 0 / 485.8 MB, free: 1.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004791/0.3369, allocations: 3.165 MB / 488.9 MB, free: 14.42 MB / 414.1 MB Notification: Performance of SimCode: time 0.004993/0.3419, allocations: 3.771 MB / 492.7 MB, free: 10.58 MB / 414.1 MB Notification: Performance of Templates: time 0.04759/0.3895, allocations: 30.01 MB / 0.5105 GB, free: 12.78 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_DC_Drive.pipe 2>&1)