Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_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.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001596/0.001596, allocations: 179.5 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.131/1.131, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001549/0.001549, allocations: 123.4 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003001, allocations: 12 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07538/0.07569, allocations: 44.49 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2015/0.2772, allocations: 79.57 MB / 434.6 MB, free: 10.08 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002075/0.2775, allocations: 89.53 kB / 434.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02585/0.3033, allocations: 11.76 MB / 446.5 MB, free: 256 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3034, allocations: 0 / 446.5 MB, free: 256 kB / 314.7 MB Notification: Performance of Transformations before backend: time 2.958e-05/0.3034, allocations: 16 kB / 446.5 MB, free: 240 kB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.001678/0.3051, allocations: 1.043 MB / 447.5 MB, free: 15.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.3051, allocations: 8.031 kB / 447.6 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.3053, allocations: 98.86 kB / 447.6 MB, free: 15.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006634/0.306, allocations: 0.5043 MB / 448.2 MB, free: 14.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.664e-05/0.306, allocations: 51.62 kB / 448.2 MB, free: 14.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.175e-05/0.3061, allocations: 76.23 kB / 448.3 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.3073, allocations: 0.7337 MB / 449 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.3073, allocations: 15.06 kB / 449 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.231e-05/0.3074, allocations: 32.48 kB / 449.1 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3074, allocations: 16 kB / 449.1 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.3085, allocations: 0.5863 MB / 449.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003398/0.3119, allocations: 2.6 MB / 452.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.313, allocations: 0.6155 MB / 452.9 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.728e-05/0.3131, allocations: 12.55 kB / 452.9 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007526/0.3139, allocations: 461.7 kB / 453.3 MB, free: 9.711 MB / 330.7 MB Notification: Performance of pre-optimization done (n=67): time 1.764e-06/0.3139, allocations: 0 / 453.3 MB, free: 9.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.002856/0.3167, allocations: 1.25 MB / 454.6 MB, free: 8.434 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.884e-05/0.3168, allocations: 123.3 kB / 454.7 MB, free: 8.289 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004981/0.3173, allocations: 462.2 kB / 455.2 MB, free: 7.832 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.495e-05/0.3174, allocations: 46.91 kB / 455.2 MB, free: 7.781 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.3176, allocations: 320.6 kB / 455.5 MB, free: 7.461 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.3178, allocations: 205.2 kB / 455.7 MB, free: 7.258 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.3178, allocations: 20 kB / 455.7 MB, free: 7.238 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.318, allocations: 378.7 kB / 456.1 MB, free: 6.859 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.3185, allocations: 245.9 kB / 456.3 MB, free: 6.617 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000595/0.3191, allocations: 426 kB / 456.8 MB, free: 6.133 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005321/0.3196, allocations: 302.4 kB / 457.1 MB, free: 5.832 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3196, allocations: 4 kB / 457.1 MB, free: 5.828 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001457/0.3211, allocations: 0.8578 MB / 457.9 MB, free: 4.953 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000625/0.3217, allocations: 1.865 MB / 459.8 MB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.3217, allocations: 8 kB / 459.8 MB, free: 2.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004211/0.3222, allocations: 153.9 kB / 459.9 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/0.3226, allocations: 117.2 kB / 460.1 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.3251, allocations: 2.369 MB / 462.4 MB, free: 176 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004739/0.3256, allocations: 101 kB / 462.5 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.635e-05/0.3257, allocations: 24 kB / 462.6 MB, free: 52 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.323e-06/0.3257, allocations: 7.953 kB / 462.6 MB, free: 44 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001308/0.327, allocations: 0.7588 MB / 463.3 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.327, allocations: 4 kB / 463.3 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003546/0.3274, allocations: 148.8 kB / 463.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004214/0.3278, allocations: 115.8 kB / 463.6 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002382/0.3302, allocations: 2.354 MB / 465.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004309/0.3307, allocations: 87.28 kB / 466 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.973e-05/0.3307, allocations: 24 kB / 466 MB, free: 12.42 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003223/0.331, allocations: 317.1 kB / 466.4 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.897e-05/0.3311, allocations: 71.16 kB / 466.4 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001428/0.3326, allocations: 0.7681 MB / 467.2 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.3326, allocations: 9.781 kB / 467.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.3326, allocations: 0 / 467.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.3326, allocations: 3.984 kB / 467.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.3348, allocations: 1.565 MB / 468.8 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3348, allocations: 0 / 468.8 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000391/0.3352, allocations: 83.88 kB / 468.9 MB, free: 9.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003631/0.3356, allocations: 153.3 kB / 469 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.24e-05/0.3357, allocations: 15.98 kB / 469 MB, free: 9.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002398/0.3381, allocations: 2.355 MB / 471.4 MB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3381, allocations: 4 kB / 471.4 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.34, allocations: 1.179 MB / 472.6 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.3403, allocations: 212.1 kB / 472.8 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.016e-05/0.3403, allocations: 15.98 kB / 472.8 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/0.3408, allocations: 51.95 kB / 472.8 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3409, allocations: 68.47 kB / 472.9 MB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.018e-05/0.341, allocations: 23.98 kB / 472.9 MB, free: 5.277 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00037/0.3414, allocations: 362.8 kB / 473.3 MB, free: 4.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3414, allocations: 0 / 473.3 MB, free: 4.926 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009561/0.3423, allocations: 347.2 kB / 473.6 MB, free: 4.586 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001732/0.3425, allocations: 147 kB / 473.8 MB, free: 4.434 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002343/0.3449, allocations: 1.509 MB / 475.3 MB, free: 2.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3449, allocations: 0 / 475.3 MB, free: 2.883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007906/0.3457, allocations: 0.5318 MB / 475.8 MB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000462/0.3461, allocations: 109.1 kB / 475.9 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.3483, allocations: 1.56 MB / 477.5 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.3488, allocations: 0.9512 MB / 478.4 MB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003545/0.3492, allocations: 93.02 kB / 478.5 MB, free: 15.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.3493, allocations: 47.42 kB / 478.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3493, allocations: 0 / 478.5 MB, free: 15.54 MB / 362.7 MB Notification: Performance of Templates: time 0.01599/0.3653, allocations: 10.53 MB / 489.1 MB, free: 5.039 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1)