Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_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.001043/0.001043, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.2 MB / 245 MB, free: 7.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007927/0.0007927, allocations: 96.38 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002036/0.0002036, allocations: 8 kB / 357.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.179, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09576/0.2748, allocations: 89.37 MB / 498.8 MB, free: 1.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/0.2752, allocations: 87.95 kB / 498.9 MB, free: 1.145 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2171/0.4923, allocations: 18.88 MB / 0.5056 GB, free: 88.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4923, allocations: 0 / 0.5056 GB, free: 88.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001104/0.4924, allocations: 26.31 kB / 0.5057 GB, free: 88.66 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: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.002921/0.4954, allocations: 1.263 MB / 0.5069 GB, free: 87.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.4954, allocations: 7.719 kB / 0.5069 GB, free: 87.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.4956, allocations: 121.1 kB / 0.507 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.4967, allocations: 0.6756 MB / 0.5077 GB, free: 87.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.575e-05/0.4967, allocations: 69.58 kB / 0.5077 GB, free: 87.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.4969, allocations: 95.33 kB / 0.5078 GB, free: 87.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.4986, allocations: 1.032 MB / 0.5088 GB, free: 87.45 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.4986, allocations: 5.375 kB / 0.5089 GB, free: 87.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.275e-05/0.4987, allocations: 41.91 kB / 0.5089 GB, free: 87.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.4987, allocations: 23.38 kB / 0.5089 GB, free: 87.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.5004, allocations: 0.8401 MB / 0.5097 GB, free: 87.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004489/0.5049, allocations: 3.903 MB / 0.5135 GB, free: 85.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.5062, allocations: 0.8924 MB / 0.5144 GB, free: 85.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.942e-05/0.5063, allocations: 16.62 kB / 0.5144 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007757/0.5071, allocations: 0.5213 MB / 0.5149 GB, free: 85.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=88): time 2.374e-06/0.5071, allocations: 0 / 0.5149 GB, free: 85.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.003559/0.5106, allocations: 1.719 MB / 0.5166 GB, free: 84.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.5107, allocations: 119.3 kB / 0.5167 GB, free: 84.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006577/0.5114, allocations: 0.6383 MB / 0.5174 GB, free: 84.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.5114, allocations: 40.98 kB / 0.5174 GB, free: 84.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002128/0.5116, allocations: 390.9 kB / 0.5178 GB, free: 83.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.5118, allocations: 266 kB / 0.518 GB, free: 83.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.698e-05/0.5118, allocations: 19.66 kB / 0.518 GB, free: 83.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.461e-05/0.5119, allocations: 390.8 kB / 0.5184 GB, free: 83.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005598/0.5125, allocations: 318.1 kB / 0.5187 GB, free: 83.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006067/0.5131, allocations: 483 kB / 0.5192 GB, free: 82.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005685/0.5137, allocations: 353.8 kB / 0.5195 GB, free: 82.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.5137, allocations: 3.625 kB / 0.5195 GB, free: 82.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001583/0.5153, allocations: 1.085 MB / 0.5206 GB, free: 82.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002608/0.5156, allocations: 1.598 MB / 0.5221 GB, free: 80.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.5156, allocations: 6.594 kB / 0.5221 GB, free: 80.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007304/0.5163, allocations: 282.4 kB / 0.5224 GB, free: 80.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004571/0.5168, allocations: 138 kB / 0.5225 GB, free: 80.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003889/0.5207, allocations: 4.664 MB / 0.5271 GB, free: 76.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.5213, allocations: 119.5 kB / 0.5272 GB, free: 76.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.5214, allocations: 30.09 kB / 0.5272 GB, free: 76.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.404e-06/0.5214, allocations: 3.344 kB / 0.5272 GB, free: 76.61 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001441/0.5228, allocations: 0.9636 MB / 0.5282 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.5228, allocations: 3.469 kB / 0.5282 GB, free: 76.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006108/0.5234, allocations: 292.3 kB / 0.5285 GB, free: 76.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.5239, allocations: 124.3 kB / 0.5286 GB, free: 76.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003732/0.5276, allocations: 4.673 MB / 0.5332 GB, free: 72.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005486/0.5282, allocations: 100.1 kB / 0.5332 GB, free: 72.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.554e-05/0.5282, allocations: 34 kB / 0.5333 GB, free: 72.2 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.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.0004619/0.5287, allocations: 358.7 kB / 0.5336 GB, free: 71.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.5288, allocations: 90.14 kB / 0.5337 GB, free: 71.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001766/0.529, allocations: 104 kB / 0.5338 GB, free: 71.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.529, allocations: 13.75 kB / 0.5338 GB, free: 71.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.529, allocations: 2 kB / 0.5338 GB, free: 71.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.529, allocations: 4.453 kB / 0.5338 GB, free: 71.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002634/0.5317, allocations: 2.121 MB / 0.5359 GB, free: 70.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/0.5317, allocations: 0 / 0.5359 GB, free: 70.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003938/0.5321, allocations: 97 kB / 0.536 GB, free: 69.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006256/0.5327, allocations: 284.7 kB / 0.5363 GB, free: 69.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-05/0.5328, allocations: 15.66 kB / 0.5363 GB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00376/0.5366, allocations: 4.65 MB / 0.5408 GB, free: 65.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5366, allocations: 2.031 kB / 0.5408 GB, free: 65.06 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.5386, allocations: 1.512 MB / 0.5423 GB, free: 63.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002755/0.5389, allocations: 265.6 kB / 0.5425 GB, free: 63.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.289e-05/0.539, allocations: 23.75 kB / 0.5426 GB, free: 63.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004662/0.5395, allocations: 60.55 kB / 0.5426 GB, free: 63.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.5397, allocations: 91.17 kB / 0.5427 GB, free: 63.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-05/0.5397, allocations: 27.52 kB / 0.5427 GB, free: 63.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004906/0.5402, allocations: 0.4888 MB / 0.5432 GB, free: 62.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5402, allocations: 0 / 0.5432 GB, free: 62.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001208/0.5415, allocations: 471.1 kB / 0.5437 GB, free: 62.37 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.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.0001671/0.5416, allocations: 158 kB / 0.5438 GB, free: 62.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002704/0.5443, allocations: 2.14 MB / 0.5459 GB, free: 60.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.5444, allocations: 0 / 0.5459 GB, free: 60.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009459/0.5453, allocations: 0.8074 MB / 0.5467 GB, free: 59.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006253/0.5459, allocations: 167.6 kB / 0.5469 GB, free: 59.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/0.5485, allocations: 2.058 MB / 0.5489 GB, free: 57.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.5489, allocations: 1.04 MB / 0.5499 GB, free: 56.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003195/0.5492, allocations: 92.38 kB / 0.55 GB, free: 56.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.5493, allocations: 55.23 kB / 0.55 GB, free: 56.34 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5493, allocations: 0 / 0.55 GB, free: 56.34 MB / 378.7 MB Notification: Performance of Templates: time 0.01996/0.5693, allocations: 16.7 MB / 0.5663 GB, free: 41.04 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL.pipe 2>&1)