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.00113/0.00113, allocations: 182.7 kB / 13.64 MB, free: 1.676 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.397/1.397, allocations: 194.3 MB / 208.4 MB, free: 6.711 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.001635/0.001635, allocations: 120.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.193e-05/3.197e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0724/0.07246, allocations: 44.51 MB / 349.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/0.36, allocations: 79.49 MB / 428.9 MB, free: 9.996 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002114/0.3603, allocations: 82.33 kB / 429 MB, free: 9.984 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02787/0.3882, allocations: 11.77 MB / 440.8 MB, free: 5.371 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3882, allocations: 0 / 440.8 MB, free: 5.371 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.547e-05/0.3882, allocations: 15.59 kB / 440.8 MB, free: 5.371 MB / 298.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.001425/0.3897, allocations: 0.9595 MB / 441.8 MB, free: 4.445 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3897, allocations: 12.03 kB / 441.8 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.3898, allocations: 90.88 kB / 441.9 MB, free: 4.344 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00062/0.3905, allocations: 0.5073 MB / 442.4 MB, free: 3.895 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.3905, allocations: 45.81 kB / 442.4 MB, free: 3.867 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.326e-05/0.3906, allocations: 78.11 kB / 442.5 MB, free: 3.812 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009704/0.3916, allocations: 0.6722 MB / 443.2 MB, free: 3.332 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.3916, allocations: 7.953 kB / 443.2 MB, free: 3.324 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.029e-05/0.3917, allocations: 24.06 kB / 443.2 MB, free: 3.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.3917, allocations: 16 kB / 443.2 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007106/0.3924, allocations: 483.6 kB / 443.7 MB, free: 3.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00303/0.3955, allocations: 2.606 MB / 446.3 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007773/0.3963, allocations: 0.5215 MB / 446.8 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/0.3966, allocations: 262.1 kB / 447.1 MB, free: 444 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.3967, allocations: 12.23 kB / 447.1 MB, free: 432 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005227/0.3972, allocations: 406.8 kB / 447.5 MB, free: 116 kB / 298.7 MB Notification: Performance of pre-optimization done (n=67): time 2.705e-06/0.3972, allocations: 0 / 447.5 MB, free: 116 kB / 298.7 MB Notification: Performance of matching and sorting (n=67): time 0.0009933/0.3982, allocations: 0.6036 MB / 448.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.154e-05/0.3983, allocations: 123.4 kB / 448.2 MB, free: 15.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004994/0.3988, allocations: 454.6 kB / 448.6 MB, free: 15.19 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.71e-05/0.3989, allocations: 48.83 kB / 448.7 MB, free: 15.15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.3991, allocations: 323.7 kB / 449 MB, free: 14.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.3993, allocations: 203.5 kB / 449.2 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.3993, allocations: 15.38 kB / 449.2 MB, free: 14.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3995, allocations: 377.7 kB / 449.6 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003172/0.3998, allocations: 194.3 kB / 449.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.4002, allocations: 367.8 kB / 450.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003854/0.4006, allocations: 243.7 kB / 450.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4006, allocations: 4 kB / 450.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001128/0.4018, allocations: 0.7416 MB / 451.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006622/0.4025, allocations: 1.865 MB / 453 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/0.4025, allocations: 8 kB / 453 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004633/0.4029, allocations: 148 kB / 453.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/0.4035, allocations: 127 kB / 453.3 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002515/0.406, allocations: 2.305 MB / 455.6 MB, free: 9.016 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006057/0.4066, allocations: 94.19 kB / 455.7 MB, free: 8.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.582e-05/0.4067, allocations: 31.7 kB / 455.7 MB, free: 8.906 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.4067, allocations: 4 kB / 455.7 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001125/0.4078, allocations: 0.6662 MB / 456.4 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.4079, allocations: 4 kB / 456.4 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003745/0.4082, allocations: 147.7 kB / 456.5 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004379/0.4087, allocations: 127.2 kB / 456.6 MB, free: 8.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002435/0.4111, allocations: 2.307 MB / 458.9 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005642/0.4117, allocations: 81.53 kB / 459 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.396e-05/0.4118, allocations: 26.06 kB / 459 MB, free: 6.113 MB / 314.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 () * 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.0002301/0.412, allocations: 174.8 kB / 459.2 MB, free: 5.957 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.4121, allocations: 71.16 kB / 459.3 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.4132, allocations: 0.6483 MB / 459.9 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.4133, allocations: 8 kB / 459.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.4133, allocations: 0 / 459.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.4133, allocations: 0 / 459.9 MB, free: 5.441 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/0.4152, allocations: 1.459 MB / 461.4 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.4152, allocations: 0 / 461.4 MB, free: 4.355 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004102/0.4156, allocations: 86.75 kB / 461.5 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003699/0.416, allocations: 154 kB / 461.6 MB, free: 4.16 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/0.4161, allocations: 14.98 kB / 461.7 MB, free: 4.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/0.4185, allocations: 2.302 MB / 464 MB, free: 2.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.4185, allocations: 4 kB / 464 MB, free: 2.156 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00148/0.42, allocations: 1.015 MB / 465 MB, free: 1.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.4203, allocations: 208.6 kB / 465.2 MB, free: 1.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.107e-05/0.4204, allocations: 16.56 kB / 465.2 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000444/0.4208, allocations: 54.89 kB / 465.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001655/0.421, allocations: 65.41 kB / 465.3 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.777e-05/0.4211, allocations: 21.73 kB / 465.3 MB, free: 1.145 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004275/0.4215, allocations: 356.5 kB / 465.7 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4215, allocations: 0 / 465.7 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001182/0.4227, allocations: 346.5 kB / 466 MB, free: 0.5742 MB / 314.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) * 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.000215/0.4229, allocations: 146.2 kB / 466.2 MB, free: 444 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.4251, allocations: 1.361 MB / 467.5 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4251, allocations: 4.062 kB / 467.5 MB, free: 15.15 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007005/0.4258, allocations: 481.5 kB / 468 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005114/0.4263, allocations: 107.3 kB / 468.1 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.4284, allocations: 0.9641 MB / 469.1 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.4289, allocations: 0.9598 MB / 470 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000511/0.4295, allocations: 117.1 kB / 470.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.4296, allocations: 51.42 kB / 470.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4296, allocations: 0 / 470.2 MB, free: 12.42 MB / 330.7 MB Notification: Performance of Templates: time 0.01955/0.4492, allocations: 11.37 MB / 481.6 MB, free: 1.043 MB / 330.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)