Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.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_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009759/0.0009755, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001014/0.001014, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.485/1.485, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004592/0.0004595, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2623, allocations: 47.58 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.003297/0.2656, allocations: 2.978 MB / 329.4 MB, free: 15.13 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.2674, allocations: 0.9532 MB / 330.4 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.2676, allocations: 15.09 kB / 330.4 MB, free: 14.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.2678, allocations: 44.33 kB / 330.4 MB, free: 14.3 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002704/0.2681, allocations: 140.9 kB / 330.6 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004631/0.2686, allocations: 148.5 kB / 330.7 MB, free: 14.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004466/0.269, allocations: 391.8 kB / 331.1 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.2693, allocations: 161.2 kB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001879/0.2695, allocations: 172.8 kB / 331.4 MB, free: 13.62 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.2697, allocations: 193.8 kB / 331.6 MB, free: 13.49 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.2698, allocations: 30.06 kB / 331.7 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.103e-05/0.2699, allocations: 21.53 kB / 331.7 MB, free: 13.48 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.996e-05/0.27, allocations: 79.72 kB / 331.8 MB, free: 13.42 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.858e-05/0.2701, allocations: 113.5 kB / 331.9 MB, free: 13.34 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000416/0.2705, allocations: 459.9 kB / 332.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.2705, allocations: 0 / 332.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2705, allocations: 0 / 332.3 MB, free: 12.99 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2705, allocations: 0 / 332.3 MB, free: 12.99 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001294/0.2718, allocations: 0.7416 MB / 333.1 MB, free: 12.36 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2719, allocations: 8.344 kB / 333.1 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.272, allocations: 55.31 kB / 333.1 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.2725, allocations: 381.5 kB / 333.5 MB, free: 11.98 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.134e-05/0.2726, allocations: 39.84 kB / 333.5 MB, free: 11.96 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.867e-05/0.2727, allocations: 41 kB / 333.6 MB, free: 11.95 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007617/0.2735, allocations: 453.5 kB / 334 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.2735, allocations: 5 kB / 334 MB, free: 11.66 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.421e-05/0.2735, allocations: 20.47 kB / 334 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.2736, allocations: 10.25 kB / 334 MB, free: 11.64 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006127/0.2742, allocations: 312.6 kB / 334.4 MB, free: 11.49 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.2764, allocations: 1.682 MB / 336 MB, free: 9.707 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006577/0.277, allocations: 307.7 kB / 336.3 MB, free: 9.398 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.2771, allocations: 4.281 kB / 336.3 MB, free: 9.395 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000476/0.2776, allocations: 265.2 kB / 336.6 MB, free: 9.117 MB / 270.1 MB Notification: Performance of pre-optimization done (n=37): time 1.613e-06/0.2776, allocations: 0 / 336.6 MB, free: 9.117 MB / 270.1 MB Notification: Performance of matching and sorting (n=37): time 0.001403/0.279, allocations: 0.6272 MB / 337.2 MB, free: 8.461 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.2791, allocations: 110.8 kB / 337.3 MB, free: 8.328 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003568/0.2794, allocations: 357.6 kB / 337.7 MB, free: 7.965 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.2795, allocations: 33.7 kB / 337.7 MB, free: 7.926 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001487/0.2796, allocations: 240.3 kB / 338 MB, free: 7.684 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.052e-05/0.2797, allocations: 110.5 kB / 338.1 MB, free: 7.574 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.679e-05/0.2797, allocations: 4 kB / 338.1 MB, free: 7.57 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.2799, allocations: 350.8 kB / 338.4 MB, free: 7.219 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.2801, allocations: 124.8 kB / 338.5 MB, free: 7.098 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.2804, allocations: 247.8 kB / 338.8 MB, free: 6.801 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.2807, allocations: 170.7 kB / 338.9 MB, free: 6.629 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.2807, allocations: 4 kB / 338.9 MB, free: 6.625 MB / 270.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007519/0.2815, allocations: 496.5 kB / 339.4 MB, free: 6.125 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004731/0.282, allocations: 1.427 MB / 340.9 MB, free: 4.582 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.282, allocations: 4 kB / 340.9 MB, free: 4.578 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000259/0.2823, allocations: 72.83 kB / 340.9 MB, free: 4.504 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/0.2825, allocations: 75.89 kB / 341 MB, free: 4.43 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001579/0.2841, allocations: 1.714 MB / 342.7 MB, free: 2.586 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002918/0.2844, allocations: 55.58 kB / 342.8 MB, free: 2.531 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.2844, allocations: 16 kB / 342.8 MB, free: 2.516 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/0.2845, allocations: 4 kB / 342.8 MB, free: 2.512 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006175/0.2851, allocations: 414.1 kB / 343.2 MB, free: 2.098 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2851, allocations: 4 kB / 343.2 MB, free: 2.094 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001798/0.2853, allocations: 77.23 kB / 343.3 MB, free: 2.016 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002017/0.2855, allocations: 63.91 kB / 343.3 MB, free: 1.953 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.2869, allocations: 1.718 MB / 345.1 MB, free: 100 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.2872, allocations: 47.67 kB / 345.1 MB, free: 52 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.2872, allocations: 16 kB / 345.1 MB, free: 36 kB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (45): * Single equations (assignments): 43 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002291/0.2875, allocations: 259.3 kB / 345.4 MB, free: 15.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.505e-05/0.2875, allocations: 39.53 kB / 345.4 MB, free: 15.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.091e-05/0.2876, allocations: 48.12 kB / 345.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.2876, allocations: 4 kB / 345.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2876, allocations: 0 / 345.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.2876, allocations: 0 / 345.5 MB, free: 15.68 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.2889, allocations: 0.934 MB / 346.4 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.2889, allocations: 0 / 346.4 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001965/0.2891, allocations: 51.94 kB / 346.4 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/0.2893, allocations: 68.81 kB / 346.5 MB, free: 14.56 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.2893, allocations: 8 kB / 346.5 MB, free: 14.55 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.2908, allocations: 1.718 MB / 348.2 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2909, allocations: 3.938 kB / 348.2 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009121/0.2918, allocations: 0.6439 MB / 348.9 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.2919, allocations: 148.6 kB / 349 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.309e-05/0.292, allocations: 11.95 kB / 349 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.2923, allocations: 32.22 kB / 349.1 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.406e-05/0.2924, allocations: 27.95 kB / 349.1 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.2924, allocations: 23.92 kB / 349.1 MB, free: 11.77 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002402/0.2926, allocations: 247.2 kB / 349.4 MB, free: 11.53 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2927, allocations: 0 / 349.4 MB, free: 11.53 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0007284/0.2934, allocations: 215.4 kB / 349.6 MB, free: 11.32 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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 (30): * Single equations (assignments): 23 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001348/0.2935, allocations: 111.2 kB / 349.7 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.2948, allocations: 0.891 MB / 350.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2948, allocations: 0 / 350.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.2952, allocations: 307.2 kB / 350.9 MB, free: 9.945 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.2956, allocations: 61.41 kB / 350.9 MB, free: 9.887 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.2971, allocations: 1.018 MB / 352 MB, free: 8.84 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.2974, allocations: 0.8391 MB / 352.8 MB, free: 7.977 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001662/0.2976, allocations: 47.3 kB / 352.8 MB, free: 7.926 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.811e-05/0.2977, allocations: 27.44 kB / 352.9 MB, free: 7.898 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2977, allocations: 0 / 352.9 MB, free: 7.898 MB / 286.1 MB Notification: Performance of Templates: time 0.009791/0.3075, allocations: 5.885 MB / 358.7 MB, free: 2.012 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & ./Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) Environment - environmentSimulation: