Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001239/0.001239, allocations: 99.55 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.001796/0.001797, allocations: 177.3 kB / 15.94 MB, free: 228 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.715/1.715, allocations: 205.4 MB / 222.1 MB, free: 5.535 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.0008054/0.0008057, allocations: 12 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3174, allocations: 47.58 MB / 326.5 MB, free: 1.465 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.003948/0.3214, allocations: 2.903 MB / 329.4 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.3236, allocations: 0.9211 MB / 330.3 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006004/0.3242, allocations: 10.44 kB / 330.3 MB, free: 14.47 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003141/0.3246, allocations: 51.86 kB / 330.3 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000573/0.3251, allocations: 131.2 kB / 330.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007013/0.3259, allocations: 140.8 kB / 330.6 MB, free: 14.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001008/0.3269, allocations: 369 kB / 331 MB, free: 13.96 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004713/0.3274, allocations: 168.3 kB / 331.1 MB, free: 13.85 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004629/0.3278, allocations: 157.2 kB / 331.3 MB, free: 13.76 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005074/0.3284, allocations: 186.2 kB / 331.5 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001312/0.3285, allocations: 20.91 kB / 331.5 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001646/0.3287, allocations: 20.53 kB / 331.5 MB, free: 13.63 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.3288, allocations: 74.39 kB / 331.6 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002266/0.329, allocations: 107.5 kB / 331.7 MB, free: 13.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005869/0.3296, allocations: 443.4 kB / 332.1 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.3296, allocations: 3.938 kB / 332.1 MB, free: 13.16 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3297, allocations: 0 / 332.1 MB, free: 13.16 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.548e-05/0.3297, allocations: 1.094 kB / 332.1 MB, free: 13.16 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.001847/0.3316, allocations: 0.7231 MB / 332.9 MB, free: 12.54 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.3316, allocations: 9.156 kB / 332.9 MB, free: 12.54 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.3319, allocations: 54.89 kB / 332.9 MB, free: 12.51 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007275/0.3326, allocations: 359.3 kB / 333.3 MB, free: 12.18 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.437e-05/0.3327, allocations: 38.5 kB / 333.3 MB, free: 12.16 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.987e-05/0.3328, allocations: 46.97 kB / 333.3 MB, free: 12.14 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009899/0.3338, allocations: 429.8 kB / 333.8 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.3338, allocations: 1.062 kB / 333.8 MB, free: 11.87 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.128e-05/0.3339, allocations: 20.44 kB / 333.8 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.3339, allocations: 8.906 kB / 333.8 MB, free: 11.85 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007742/0.3347, allocations: 304.7 kB / 334.1 MB, free: 11.71 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002638/0.3374, allocations: 1.604 MB / 335.7 MB, free: 10.03 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006235/0.338, allocations: 294.7 kB / 336 MB, free: 9.73 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.338, allocations: 8.531 kB / 336 MB, free: 9.723 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005156/0.3386, allocations: 249.9 kB / 336.2 MB, free: 9.461 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 2.104e-06/0.3386, allocations: 0 / 336.2 MB, free: 9.461 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001617/0.3402, allocations: 0.6322 MB / 336.9 MB, free: 8.801 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/0.3403, allocations: 118.8 kB / 337 MB, free: 8.66 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004181/0.3407, allocations: 349.6 kB / 337.3 MB, free: 8.312 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.3408, allocations: 33.7 kB / 337.4 MB, free: 8.273 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.341, allocations: 224.4 kB / 337.6 MB, free: 8.051 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.3411, allocations: 102.6 kB / 337.7 MB, free: 7.949 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.932e-05/0.3411, allocations: 4 kB / 337.7 MB, free: 7.945 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3413, allocations: 350.8 kB / 338 MB, free: 7.594 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003308/0.3416, allocations: 108.8 kB / 338.1 MB, free: 7.484 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.3419, allocations: 243.7 kB / 338.4 MB, free: 7.191 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003244/0.3423, allocations: 157.6 kB / 338.5 MB, free: 7.031 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.3423, allocations: 0 / 338.5 MB, free: 7.031 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008227/0.3431, allocations: 491.6 kB / 339 MB, free: 6.535 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006158/0.3437, allocations: 1.42 MB / 340.4 MB, free: 5 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3438, allocations: 4 kB / 340.4 MB, free: 4.996 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003592/0.3441, allocations: 84.75 kB / 340.5 MB, free: 4.91 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002264/0.3444, allocations: 67.91 kB / 340.6 MB, free: 4.844 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.3463, allocations: 1.78 MB / 342.4 MB, free: 2.926 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003503/0.3467, allocations: 51.58 kB / 342.4 MB, free: 2.875 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.177e-05/0.3467, allocations: 20 kB / 342.4 MB, free: 2.855 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.779e-06/0.3468, allocations: 8.25 kB / 342.4 MB, free: 2.848 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006759/0.3474, allocations: 398.5 kB / 342.8 MB, free: 2.449 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3475, allocations: 11.97 kB / 342.8 MB, free: 2.438 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.3477, allocations: 80.77 kB / 342.9 MB, free: 2.355 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.3479, allocations: 55.84 kB / 343 MB, free: 2.301 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.3498, allocations: 1.776 MB / 344.7 MB, free: 404 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.3501, allocations: 59.58 kB / 344.8 MB, free: 344 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.819e-05/0.3501, allocations: 16 kB / 344.8 MB, free: 328 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 (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.0003667/0.3505, allocations: 255.2 kB / 345.1 MB, free: 64 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.835e-05/0.3506, allocations: 35.61 kB / 345.1 MB, free: 28 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001269/0.3507, allocations: 44.17 kB / 345.1 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.638e-06/0.3507, allocations: 4 kB / 345.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3508, allocations: 4 kB / 345.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3508, allocations: 0 / 345.2 MB, free: 15.97 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00149/0.3523, allocations: 0.9086 MB / 346.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3523, allocations: 8.016 kB / 346.1 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.3525, allocations: 35.98 kB / 346.1 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002114/0.3527, allocations: 72.75 kB / 346.2 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.3527, allocations: 11.98 kB / 346.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001704/0.3544, allocations: 1.784 MB / 348 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.3544, allocations: 4.062 kB / 348 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.3555, allocations: 0.6196 MB / 348.6 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001895/0.3557, allocations: 144.6 kB / 348.7 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/0.3557, allocations: 11.95 kB / 348.7 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002802/0.356, allocations: 36.03 kB / 348.8 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.3561, allocations: 31.95 kB / 348.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.3562, allocations: 8 kB / 348.8 MB, free: 12.06 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.3565, allocations: 243.2 kB / 349.1 MB, free: 11.83 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3565, allocations: 0 / 349.1 MB, free: 11.83 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000832/0.3573, allocations: 203.4 kB / 349.3 MB, free: 11.63 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.000161/0.3575, allocations: 119.2 kB / 349.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.359, allocations: 0.8848 MB / 350.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.359, allocations: 3.938 kB / 350.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004625/0.3595, allocations: 302.6 kB / 350.6 MB, free: 10.26 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.3599, allocations: 65.34 kB / 350.6 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.3616, allocations: 0.9164 MB / 351.5 MB, free: 9.242 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.3621, allocations: 0.8312 MB / 352.4 MB, free: 8.387 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.3623, allocations: 55.19 kB / 352.4 MB, free: 8.332 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.515e-05/0.3624, allocations: 31.44 kB / 352.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3624, allocations: 0 / 352.5 MB, free: 8.301 MB / 286.1 MB Notification: Performance of Templates: time 0.01163/0.374, allocations: 5.917 MB / 358.4 MB, free: 2.383 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) Environment - environmentSimulation: