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.001015/0.001015, allocations: 184.6 kB / 8.352 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.337/1.337, allocations: 194.3 MB / 203.1 MB, free: 9.312 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00171/0.00171, allocations: 115.1 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.558e-05/1.571e-05, allocations: 0 / 298.1 MB, free: 8.223 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08358/0.08362, allocations: 44.49 MB / 342.6 MB, free: 11.62 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2718/0.3555, allocations: 78.81 MB / 421.4 MB, free: 17.03 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.3558, allocations: 83.14 kB / 421.5 MB, free: 16.98 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02896/0.3848, allocations: 11.64 MB / 433.1 MB, free: 7.414 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3848, allocations: 6.906 kB / 433.1 MB, free: 7.41 MB / 315.1 MB Notification: Performance of Transformations before backend: time 5.204e-05/0.3849, allocations: 16 kB / 433.1 MB, free: 7.395 MB / 315.1 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.001711/0.3866, allocations: 0.9584 MB / 434.1 MB, free: 6.434 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.3866, allocations: 8.031 kB / 434.1 MB, free: 6.426 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.3869, allocations: 102.1 kB / 434.2 MB, free: 6.328 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007086/0.3876, allocations: 0.5053 MB / 434.7 MB, free: 5.867 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3876, allocations: 22.44 kB / 434.7 MB, free: 5.848 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.062e-05/0.3877, allocations: 44 kB / 434.8 MB, free: 5.805 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007684/0.3885, allocations: 442.6 kB / 435.2 MB, free: 5.551 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008643/0.3894, allocations: 0.5891 MB / 435.8 MB, free: 5.098 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.3894, allocations: 0 / 435.8 MB, free: 5.098 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.682e-05/0.3895, allocations: 7.984 kB / 435.8 MB, free: 5.09 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3895, allocations: 16 kB / 435.8 MB, free: 5.074 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003162/0.3926, allocations: 2.467 MB / 438.3 MB, free: 3.066 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008195/0.3935, allocations: 0.4921 MB / 438.8 MB, free: 2.762 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.3938, allocations: 250.3 kB / 439 MB, free: 2.609 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.3939, allocations: 16.55 kB / 439 MB, free: 2.594 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005306/0.3944, allocations: 377.4 kB / 439.4 MB, free: 2.309 MB / 315.1 MB Notification: Performance of pre-optimization done (n=67): time 2.104e-06/0.3944, allocations: 4 kB / 439.4 MB, free: 2.305 MB / 315.1 MB Notification: Performance of matching and sorting (n=67): time 0.0008714/0.3953, allocations: 0.5627 MB / 440 MB, free: 1.891 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.3953, allocations: 114.5 kB / 440.1 MB, free: 1.758 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003819/0.3957, allocations: 376 kB / 440.5 MB, free: 1.469 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.3958, allocations: 33.69 kB / 440.5 MB, free: 1.43 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.396, allocations: 331.2 kB / 440.8 MB, free: 1.191 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.3961, allocations: 185.3 kB / 441 MB, free: 1.031 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.3962, allocations: 0 / 441 MB, free: 1.031 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 9.463e-05/0.3963, allocations: 375.5 kB / 441.4 MB, free: 0.6836 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003826/0.3966, allocations: 175.7 kB / 441.5 MB, free: 0.5859 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003503/0.397, allocations: 348.8 kB / 441.9 MB, free: 272 kB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.3974, allocations: 203.5 kB / 442.1 MB, free: 148 kB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3974, allocations: 0 / 442.1 MB, free: 148 kB / 315.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001009/0.3985, allocations: 0.6467 MB / 442.7 MB, free: 15.66 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007361/0.3992, allocations: 1.858 MB / 444.6 MB, free: 13.68 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.3992, allocations: 11.98 kB / 444.6 MB, free: 13.67 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004518/0.3997, allocations: 139.7 kB / 444.7 MB, free: 13.57 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004995/0.4002, allocations: 127.5 kB / 444.8 MB, free: 13.45 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002793/0.403, allocations: 2.238 MB / 447.1 MB, free: 11.51 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/0.4036, allocations: 68.17 kB / 447.2 MB, free: 11.44 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.222e-05/0.4037, allocations: 30.55 kB / 447.2 MB, free: 11.42 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.4037, allocations: 7.938 kB / 447.2 MB, free: 11.41 MB / 331.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009894/0.4047, allocations: 0.5554 MB / 447.7 MB, free: 11.02 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.4047, allocations: 7.938 kB / 447.8 MB, free: 11.01 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003712/0.4051, allocations: 149.2 kB / 447.9 MB, free: 10.9 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.4056, allocations: 117.8 kB / 448 MB, free: 10.79 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.408, allocations: 2.226 MB / 450.2 MB, free: 8.875 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005161/0.4085, allocations: 55.69 kB / 450.3 MB, free: 8.82 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.4086, allocations: 33.75 kB / 450.3 MB, free: 8.793 MB / 331.1 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 () * 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.0002466/0.4089, allocations: 156.5 kB / 450.5 MB, free: 8.645 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.409, allocations: 59.25 kB / 450.5 MB, free: 8.586 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.4101, allocations: 0.5949 MB / 451.1 MB, free: 8.168 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.4101, allocations: 8 kB / 451.1 MB, free: 8.16 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.4101, allocations: 0 / 451.1 MB, free: 8.16 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4101, allocations: 3.984 kB / 451.1 MB, free: 8.156 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002011/0.4121, allocations: 1.318 MB / 452.5 MB, free: 7.164 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4122, allocations: 0 / 452.5 MB, free: 7.164 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004373/0.4126, allocations: 87.81 kB / 452.5 MB, free: 7.082 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003701/0.413, allocations: 136 kB / 452.7 MB, free: 6.984 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/0.413, allocations: 11.61 kB / 452.7 MB, free: 6.977 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.4155, allocations: 2.221 MB / 454.9 MB, free: 5.055 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.4155, allocations: 0 / 454.9 MB, free: 5.055 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.417, allocations: 0.9507 MB / 455.9 MB, free: 4.398 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002855/0.4173, allocations: 196.7 kB / 456.1 MB, free: 4.219 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.4174, allocations: 7.688 kB / 456.1 MB, free: 4.215 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004922/0.4179, allocations: 47.95 kB / 456.1 MB, free: 4.168 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.4181, allocations: 62.41 kB / 456.2 MB, free: 4.121 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.865e-05/0.4181, allocations: 31.73 kB / 456.2 MB, free: 4.094 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0003265/0.4185, allocations: 290 kB / 456.5 MB, free: 3.875 MB / 331.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4185, allocations: 0 / 456.5 MB, free: 3.875 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.001208/0.4197, allocations: 322.3 kB / 456.8 MB, free: 3.562 MB / 331.1 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) * 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.0002136/0.4199, allocations: 139.3 kB / 456.9 MB, free: 3.426 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.002055/0.422, allocations: 1.275 MB / 458.2 MB, free: 2.426 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.422, allocations: 0 / 458.2 MB, free: 2.426 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006318/0.4226, allocations: 458.8 kB / 458.7 MB, free: 2.082 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.4231, allocations: 78.62 kB / 458.7 MB, free: 2.027 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.4251, allocations: 0.9237 MB / 459.7 MB, free: 1.191 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/0.4257, allocations: 0.9514 MB / 460.6 MB, free: 224 kB / 331.1 MB Notification: Performance of simCode: alias equations: time 0.0004972/0.4262, allocations: 112.7 kB / 460.7 MB, free: 108 kB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.4263, allocations: 35.42 kB / 460.8 MB, free: 72 kB / 331.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4263, allocations: 0 / 460.8 MB, free: 72 kB / 331.1 MB Notification: Performance of Templates: time 0.01887/0.4452, allocations: 10.04 MB / 470.8 MB, free: 6.082 MB / 347.1 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)