Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 85.83 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 177.5 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.4 MB / 223.4 MB, free: 5.285 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000482/0.0004822, allocations: 15.98 kB / 280.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2662, allocations: 47.59 MB / 327.8 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.003502/0.2698, allocations: 3.016 MB / 330.8 MB, free: 15.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.2714, allocations: 0.9083 MB / 331.7 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001966/0.2716, allocations: 11.75 kB / 331.7 MB, free: 14.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001836/0.2718, allocations: 52.84 kB / 331.7 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.2721, allocations: 94.92 kB / 331.8 MB, free: 14.19 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005073/0.2726, allocations: 149.3 kB / 332 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006101/0.2732, allocations: 0.5038 MB / 332.5 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003647/0.2736, allocations: 164.9 kB / 332.6 MB, free: 13.65 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002138/0.2738, allocations: 158.9 kB / 332.8 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.2741, allocations: 182.7 kB / 333 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.364e-05/0.2741, allocations: 20.69 kB / 333 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.63e-05/0.2742, allocations: 21.16 kB / 333 MB, free: 13.44 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2743, allocations: 82.05 kB / 333.1 MB, free: 13.38 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.2745, allocations: 112 kB / 333.2 MB, free: 13.3 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004414/0.2749, allocations: 440.5 kB / 333.6 MB, free: 12.96 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2749, allocations: 0 / 333.6 MB, free: 12.96 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2749, allocations: 0 / 333.6 MB, free: 12.96 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.275, allocations: 1.062 kB / 333.6 MB, free: 12.96 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.001364/0.2763, allocations: 0.7233 MB / 334.4 MB, free: 12.34 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.2764, allocations: 10.25 kB / 334.4 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.2765, allocations: 50 kB / 334.4 MB, free: 12.32 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.277, allocations: 366.9 kB / 334.8 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.11e-05/0.2771, allocations: 43.02 kB / 334.8 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.152e-05/0.2772, allocations: 43.5 kB / 334.9 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007823/0.278, allocations: 433.2 kB / 335.3 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.278, allocations: 0 / 335.3 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.2781, allocations: 20.8 kB / 335.3 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.2781, allocations: 8.812 kB / 335.3 MB, free: 11.65 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005844/0.2787, allocations: 307.2 kB / 335.6 MB, free: 11.45 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002292/0.281, allocations: 1.601 MB / 337.2 MB, free: 9.754 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006096/0.2816, allocations: 294.7 kB / 337.5 MB, free: 9.457 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.2819, allocations: 160.8 kB / 337.7 MB, free: 9.297 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.268e-05/0.282, allocations: 8 kB / 337.7 MB, free: 9.289 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004867/0.2825, allocations: 255.1 kB / 337.9 MB, free: 9.02 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 5.471e-06/0.2825, allocations: 3.984 kB / 337.9 MB, free: 9.016 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001542/0.2841, allocations: 0.6352 MB / 338.6 MB, free: 8.355 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.2842, allocations: 148.4 kB / 338.7 MB, free: 8.18 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003731/0.2845, allocations: 345.6 kB / 339 MB, free: 7.836 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.2846, allocations: 33.7 kB / 339.1 MB, free: 7.797 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.2848, allocations: 220.4 kB / 339.3 MB, free: 7.578 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.877e-05/0.2849, allocations: 102.6 kB / 339.4 MB, free: 7.477 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.975e-05/0.2849, allocations: 8 kB / 339.4 MB, free: 7.469 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.2851, allocations: 350.8 kB / 339.7 MB, free: 7.117 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002361/0.2853, allocations: 112.8 kB / 339.8 MB, free: 7.004 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003223/0.2856, allocations: 248.8 kB / 340.1 MB, free: 6.703 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.2859, allocations: 161.9 kB / 340.3 MB, free: 6.539 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.286, allocations: 0 / 340.3 MB, free: 6.539 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007782/0.2867, allocations: 480.6 kB / 340.7 MB, free: 6.055 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.2869, allocations: 225.3 kB / 340.9 MB, free: 5.773 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.2869, allocations: 7.938 kB / 340.9 MB, free: 5.766 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003001/0.2872, allocations: 80.81 kB / 341 MB, free: 5.684 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.2874, allocations: 59.91 kB / 341.1 MB, free: 5.625 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/0.2894, allocations: 1.764 MB / 342.8 MB, free: 3.723 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.2897, allocations: 59.56 kB / 342.9 MB, free: 3.664 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.2897, allocations: 16.27 kB / 342.9 MB, free: 3.648 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-06/0.2897, allocations: 8.062 kB / 342.9 MB, free: 3.641 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000647/0.2904, allocations: 406.7 kB / 343.3 MB, free: 3.234 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.2904, allocations: 4 kB / 343.3 MB, free: 3.23 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002021/0.2906, allocations: 80.75 kB / 343.4 MB, free: 3.148 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.2908, allocations: 47.92 kB / 343.5 MB, free: 3.102 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.2925, allocations: 1.764 MB / 345.2 MB, free: 1.207 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.2927, allocations: 47.73 kB / 345.3 MB, free: 1.16 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.2928, allocations: 16 kB / 345.3 MB, free: 1.145 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,chopperStepDown.andCondition_p.y,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,$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 (41): * Single equations (assignments): 39 * 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 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002778/0.2931, allocations: 251.3 kB / 345.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.447e-05/0.2931, allocations: 43.52 kB / 345.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.086e-05/0.2932, allocations: 40.09 kB / 345.6 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.2932, allocations: 7.953 kB / 345.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.2933, allocations: 0 / 345.6 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.2933, allocations: 4 kB / 345.6 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.2947, allocations: 1.004 MB / 346.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2947, allocations: 3.953 kB / 346.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.2948, allocations: 35.97 kB / 346.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002142/0.295, allocations: 76.75 kB / 346.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.2951, allocations: 8 kB / 346.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/0.2968, allocations: 1.768 MB / 348.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.2968, allocations: 0 / 348.5 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009899/0.2978, allocations: 0.6105 MB / 349.1 MB, free: 13.06 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000171/0.298, allocations: 144.5 kB / 349.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.41e-05/0.2981, allocations: 7.984 kB / 349.3 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.2983, allocations: 36.05 kB / 349.3 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.2985, allocations: 31.95 kB / 349.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.265e-05/0.2985, allocations: 15.98 kB / 349.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002735/0.2988, allocations: 243.2 kB / 349.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2988, allocations: 0 / 349.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008107/0.2996, allocations: 199.5 kB / 349.8 MB, free: 12.38 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001687/0.2998, allocations: 123.1 kB / 349.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.3012, allocations: 0.8769 MB / 350.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3012, allocations: 0 / 350.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004597/0.3017, allocations: 302.5 kB / 351.1 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005292/0.3022, allocations: 73.58 kB / 351.2 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001599/0.3038, allocations: 0.9285 MB / 352.1 MB, free: 9.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.3042, allocations: 0.8157 MB / 352.9 MB, free: 9.141 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001787/0.3044, allocations: 43.27 kB / 352.9 MB, free: 9.098 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.167e-05/0.3045, allocations: 31.44 kB / 353 MB, free: 9.066 MB / 286.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3045, allocations: 4 kB / 353 MB, free: 9.062 MB / 286.1 MB Notification: Performance of Templates: time 0.01098/0.3155, allocations: 5.913 MB / 358.9 MB, free: 3.148 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1)