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.001775/0.001775, allocations: 94.97 kB / 16.3 MB, free: 5.996 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.002173/0.002173, allocations: 185.1 kB / 17.2 MB, free: 5.914 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.651/1.651, allocations: 205.4 MB / 223.4 MB, free: 5.539 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.0005953/0.0005955, allocations: 16 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3355, allocations: 47.58 MB / 327.7 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004373/0.34, allocations: 2.893 MB / 330.6 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00213/0.3421, allocations: 0.9249 MB / 331.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002655/0.3424, allocations: 10.91 kB / 331.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000227/0.3426, allocations: 51.73 kB / 331.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.3429, allocations: 135.7 kB / 331.7 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.3435, allocations: 136.1 kB / 331.9 MB, free: 14.17 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005839/0.3441, allocations: 368.3 kB / 332.2 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.3446, allocations: 176.9 kB / 332.4 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.3448, allocations: 161.4 kB / 332.5 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.3451, allocations: 182.2 kB / 332.7 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.466e-05/0.3452, allocations: 20.53 kB / 332.7 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.239e-05/0.3453, allocations: 24.75 kB / 332.8 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001223/0.3454, allocations: 74.55 kB / 332.8 MB, free: 13.53 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001531/0.3456, allocations: 108.1 kB / 332.9 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.3461, allocations: 446.5 kB / 333.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3461, allocations: 0 / 333.4 MB, free: 13.12 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3461, allocations: 4 kB / 333.4 MB, free: 13.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.3461, allocations: 0.75 kB / 333.4 MB, free: 13.11 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.001463/0.3476, allocations: 0.7196 MB / 334.1 MB, free: 12.49 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.3476, allocations: 9.906 kB / 334.1 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001306/0.3478, allocations: 50.41 kB / 334.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006114/0.3484, allocations: 367.1 kB / 334.5 MB, free: 12.13 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.042e-05/0.3485, allocations: 38.72 kB / 334.6 MB, free: 12.12 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.104e-05/0.3486, allocations: 43.25 kB / 334.6 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008474/0.3494, allocations: 437.5 kB / 335 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.3495, allocations: 1.031 kB / 335 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.861e-05/0.3495, allocations: 16.22 kB / 335 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.3496, allocations: 8.875 kB / 335.1 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006442/0.3502, allocations: 300.6 kB / 335.4 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002349/0.3526, allocations: 1.607 MB / 337 MB, free: 10.04 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006275/0.3532, allocations: 302.7 kB / 337.3 MB, free: 9.73 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.3533, allocations: 4.531 kB / 337.3 MB, free: 9.727 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005019/0.3538, allocations: 246 kB / 337.5 MB, free: 9.469 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.693e-06/0.3538, allocations: 0 / 337.5 MB, free: 9.469 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001554/0.3553, allocations: 0.6322 MB / 338.1 MB, free: 8.809 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.3554, allocations: 114.8 kB / 338.2 MB, free: 8.672 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.3558, allocations: 345.6 kB / 338.6 MB, free: 8.328 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.676e-05/0.3559, allocations: 37.7 kB / 338.6 MB, free: 8.285 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.3561, allocations: 216.4 kB / 338.8 MB, free: 8.07 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.786e-05/0.3561, allocations: 106.6 kB / 338.9 MB, free: 7.965 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.822e-05/0.3562, allocations: 8 kB / 338.9 MB, free: 7.957 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.3563, allocations: 346.8 kB / 339.3 MB, free: 7.609 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.3566, allocations: 116.8 kB / 339.4 MB, free: 7.492 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003334/0.3569, allocations: 239.7 kB / 339.6 MB, free: 7.203 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.3572, allocations: 161.6 kB / 339.8 MB, free: 7.039 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3572, allocations: 0 / 339.8 MB, free: 7.039 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000802/0.358, allocations: 479.6 kB / 340.3 MB, free: 6.555 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006366/0.3587, allocations: 1.424 MB / 341.7 MB, free: 5.016 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.3587, allocations: 7.938 kB / 341.7 MB, free: 5.008 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003284/0.359, allocations: 84.73 kB / 341.8 MB, free: 4.922 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.3593, allocations: 63.91 kB / 341.8 MB, free: 4.859 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001914/0.3612, allocations: 1.784 MB / 343.6 MB, free: 2.938 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003124/0.3615, allocations: 55.64 kB / 343.7 MB, free: 2.883 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.3616, allocations: 20 kB / 343.7 MB, free: 2.863 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.3616, allocations: 4 kB / 343.7 MB, free: 2.859 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006161/0.3622, allocations: 398.5 kB / 344.1 MB, free: 2.461 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3622, allocations: 4 kB / 344.1 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002035/0.3624, allocations: 84.77 kB / 344.2 MB, free: 2.371 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.3626, allocations: 59.84 kB / 344.2 MB, free: 2.312 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.3644, allocations: 1.78 MB / 346 MB, free: 412 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.3647, allocations: 51.64 kB / 346.1 MB, free: 360 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.3647, allocations: 16 kB / 346.1 MB, free: 344 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.0002864/0.365, allocations: 255.2 kB / 346.3 MB, free: 80 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.817e-05/0.3651, allocations: 39.61 kB / 346.4 MB, free: 40 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.075e-05/0.3651, allocations: 40.09 kB / 346.4 MB, free: 0 / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.3652, allocations: 4.047 kB / 346.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.3652, allocations: 4 kB / 346.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3652, allocations: 0 / 346.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.3665, allocations: 0.9126 MB / 347.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3665, allocations: 0 / 347.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.3667, allocations: 39.97 kB / 347.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002027/0.3669, allocations: 76.75 kB / 347.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.3669, allocations: 4 kB / 347.4 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/0.3686, allocations: 1.78 MB / 349.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.3686, allocations: 7.969 kB / 349.2 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009735/0.3696, allocations: 0.6236 MB / 349.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.3698, allocations: 144.6 kB / 350 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.3699, allocations: 11.95 kB / 350 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.3701, allocations: 36.31 kB / 350 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.196e-05/0.3702, allocations: 27.95 kB / 350.1 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.921e-05/0.3703, allocations: 16 kB / 350.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000256/0.3705, allocations: 243.1 kB / 350.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.3705, allocations: 4 kB / 350.3 MB, free: 11.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008141/0.3714, allocations: 199.4 kB / 350.5 MB, free: 11.64 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.0001913/0.3715, allocations: 123.2 kB / 350.6 MB, free: 11.51 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.373, allocations: 0.8809 MB / 351.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.373, allocations: 128 / 351.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.3734, allocations: 310.4 kB / 351.8 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.3739, allocations: 62.34 kB / 351.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.3755, allocations: 0.9046 MB / 352.8 MB, free: 9.266 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004629/0.3759, allocations: 0.839 MB / 353.6 MB, free: 8.402 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001771/0.3761, allocations: 51.25 kB / 353.7 MB, free: 8.352 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.541e-05/0.3762, allocations: 27.44 kB / 353.7 MB, free: 8.324 MB / 286.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3762, allocations: 0 / 353.7 MB, free: 8.324 MB / 286.1 MB Notification: Performance of Templates: time 0.01094/0.3872, allocations: 5.928 MB / 359.6 MB, free: 2.395 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: