Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.5 MB / 245.3 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007337/0.0007337, allocations: 97.88 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002106/0.0002107, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1808, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09445/0.2753, allocations: 89.02 MB / 497.7 MB, free: 2.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.2756, allocations: 87.94 kB / 497.8 MB, free: 2.453 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1924/0.468, allocations: 18.67 MB / 0.5044 GB, free: 88.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.468, allocations: 0.9688 kB / 0.5044 GB, free: 88.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001125/0.4682, allocations: 23.09 kB / 0.5044 GB, free: 88.79 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.002969/0.4711, allocations: 1.232 MB / 0.5056 GB, free: 88.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.4712, allocations: 10.06 kB / 0.5056 GB, free: 88.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003308/0.4715, allocations: 121.3 kB / 0.5057 GB, free: 88.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.4729, allocations: 0.692 MB / 0.5064 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.095e-05/0.473, allocations: 70.66 kB / 0.5064 GB, free: 87.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001904/0.4732, allocations: 93.05 kB / 0.5065 GB, free: 87.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.4752, allocations: 1.032 MB / 0.5075 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.4752, allocations: 1.406 kB / 0.5075 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.334e-05/0.4753, allocations: 41.14 kB / 0.5076 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.943e-05/0.4753, allocations: 22.5 kB / 0.5076 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.477, allocations: 0.8325 MB / 0.5084 GB, free: 87.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006226/0.4833, allocations: 3.88 MB / 0.5122 GB, free: 86.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002511/0.4858, allocations: 0.8912 MB / 0.5131 GB, free: 86.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001237/0.4871, allocations: 0.525 MB / 0.5136 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.718e-05/0.4872, allocations: 16.47 kB / 0.5136 GB, free: 86.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001177/0.4884, allocations: 0.5165 MB / 0.5141 GB, free: 85.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=88): time 4.358e-06/0.4884, allocations: 0 / 0.5141 GB, free: 85.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.005723/0.4941, allocations: 1.742 MB / 0.5158 GB, free: 85.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.4942, allocations: 123.1 kB / 0.5159 GB, free: 85.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.4954, allocations: 0.7192 MB / 0.5166 GB, free: 84.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.45e-05/0.4955, allocations: 45.52 kB / 0.5167 GB, free: 84.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.4958, allocations: 381 kB / 0.517 GB, free: 84.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002175/0.4961, allocations: 258.8 kB / 0.5173 GB, free: 84.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-05/0.4961, allocations: 15.94 kB / 0.5173 GB, free: 84.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.4963, allocations: 394.2 kB / 0.5177 GB, free: 83.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008864/0.4972, allocations: 318.9 kB / 0.518 GB, free: 83.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009402/0.4981, allocations: 496.2 kB / 0.5185 GB, free: 83.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.4998, allocations: 0.756 MB / 0.5192 GB, free: 82.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.4998, allocations: 0 / 0.5192 GB, free: 82.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002641/0.5024, allocations: 1.082 MB / 0.5203 GB, free: 82.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.5026, allocations: 245.4 kB / 0.5205 GB, free: 82.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.5026, allocations: 6.125 kB / 0.5205 GB, free: 82.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.5037, allocations: 292.8 kB / 0.5208 GB, free: 82.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006859/0.5044, allocations: 129.5 kB / 0.5209 GB, free: 82.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005811/0.5102, allocations: 4.583 MB / 0.5254 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00118/0.5114, allocations: 119.7 kB / 0.5255 GB, free: 78.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-05/0.5115, allocations: 28.81 kB / 0.5255 GB, free: 78.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.5116, allocations: 3.5 kB / 0.5255 GB, free: 78.25 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002399/0.514, allocations: 0.9637 MB / 0.5265 GB, free: 77.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.514, allocations: 3.625 kB / 0.5265 GB, free: 77.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009716/0.515, allocations: 300.1 kB / 0.5267 GB, free: 77.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006166/0.5156, allocations: 129 kB / 0.5269 GB, free: 77.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005785/0.5214, allocations: 4.587 MB / 0.5313 GB, free: 73.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009667/0.5224, allocations: 102.4 kB / 0.5314 GB, free: 73.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.414e-05/0.5225, allocations: 29.69 kB / 0.5315 GB, free: 73.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 38 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$whenCondition3,$whenCondition2,$whenCondition1,zeroOrderHold.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition5,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition4,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.triangle.T_start,signalPWM.triangle.T_start,$PRE.signalPWM.triangle.count,signalPWM.triangle.count,zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 74 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0006856/0.5232, allocations: 355.2 kB / 0.5318 GB, free: 73.58 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.5234, allocations: 90.09 kB / 0.5319 GB, free: 73.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002534/0.5237, allocations: 107.9 kB / 0.532 GB, free: 73.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.5237, allocations: 14.5 kB / 0.532 GB, free: 73.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5237, allocations: 0 / 0.532 GB, free: 73.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.5237, allocations: 6.562 kB / 0.532 GB, free: 73.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/0.5278, allocations: 2.12 MB / 0.5341 GB, free: 71.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.5279, allocations: 6.234 kB / 0.5341 GB, free: 71.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000552/0.5284, allocations: 98.69 kB / 0.5342 GB, free: 71.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009455/0.5294, allocations: 281.1 kB / 0.5345 GB, free: 71.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.909e-05/0.5295, allocations: 15.75 kB / 0.5345 GB, free: 71.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005621/0.5351, allocations: 4.571 MB / 0.5389 GB, free: 67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.5351, allocations: 5.578 kB / 0.5389 GB, free: 67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003451/0.5386, allocations: 1.515 MB / 0.5404 GB, free: 65.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005342/0.5392, allocations: 277.9 kB / 0.5407 GB, free: 65.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.5393, allocations: 19.8 kB / 0.5407 GB, free: 65.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006923/0.54, allocations: 55.16 kB / 0.5408 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/0.5403, allocations: 91.2 kB / 0.5408 GB, free: 65.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.811e-05/0.5404, allocations: 28 kB / 0.5409 GB, free: 65.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008484/0.5412, allocations: 0.4889 MB / 0.5414 GB, free: 64.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5413, allocations: 0 / 0.5414 GB, free: 64.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002052/0.5433, allocations: 475.1 kB / 0.5418 GB, free: 64.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * Number of discrete variables: 30 (signalPWM.zeroOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition5,$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.triangle.T_start,signalPWM.triangle.count,meanCurrent.y_last,meanVoltage.y_last,zeroOrderHold.firstTrigger,zeroOrderHold.ySample) * Number of discrete states: 5 (signalPWM.triangle.count,meanCurrent.x,meanVoltage.x,zeroOrderHold.ySample,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002149/0.5435, allocations: 145.7 kB / 0.5419 GB, free: 64.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004183/0.5477, allocations: 2.159 MB / 0.5441 GB, free: 62.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.5478, allocations: 4 kB / 0.5441 GB, free: 62.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.5493, allocations: 0.8028 MB / 0.5448 GB, free: 61.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.5506, allocations: 173.6 kB / 0.545 GB, free: 61.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004001/0.5547, allocations: 2.092 MB / 0.547 GB, free: 59.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005311/0.5552, allocations: 1.019 MB / 0.548 GB, free: 58.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.5555, allocations: 51.44 kB / 0.5481 GB, free: 58.29 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5555, allocations: 0 / 0.5481 GB, free: 58.29 MB / 378.7 MB Notification: Performance of Templates: time 0.02501/0.5805, allocations: 20.68 MB / 0.5683 GB, free: 39.44 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL --alarm=480 > Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe 2>&1)