Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001225/0.001226, allocations: 99.86 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.001391/0.001391, 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.556/1.556, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.000476/0.000476, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2886, allocations: 47.59 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.003211/0.2918, allocations: 2.892 MB / 329.4 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.2935, allocations: 0.9287 MB / 330.3 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.2937, allocations: 10.62 kB / 330.3 MB, free: 14.42 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.2938, allocations: 51.11 kB / 330.3 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002339/0.2941, allocations: 132.3 kB / 330.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004456/0.2945, allocations: 136.3 kB / 330.6 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000457/0.295, allocations: 369.2 kB / 331 MB, free: 13.91 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003286/0.2953, allocations: 161.1 kB / 331.1 MB, free: 13.81 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.2955, allocations: 159.9 kB / 331.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.2958, allocations: 187.4 kB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.336e-05/0.2958, allocations: 19.97 kB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.524e-05/0.2959, allocations: 20.97 kB / 331.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.296, allocations: 77.94 kB / 331.6 MB, free: 13.53 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.2961, allocations: 107.6 kB / 331.7 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003992/0.2965, allocations: 443.5 kB / 332.1 MB, free: 13.12 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2965, allocations: 4 kB / 332.1 MB, free: 13.11 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2966, allocations: 0 / 332.1 MB, free: 13.11 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.2966, allocations: 1.188 kB / 332.1 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.001331/0.2979, allocations: 0.7229 MB / 332.9 MB, free: 12.49 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.2979, allocations: 10.28 kB / 332.9 MB, free: 12.49 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.2981, allocations: 49.81 kB / 332.9 MB, free: 12.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.2986, allocations: 363.9 kB / 333.3 MB, free: 12.13 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.125e-05/0.2987, allocations: 41.42 kB / 333.3 MB, free: 12.11 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.373e-05/0.2988, allocations: 43.97 kB / 333.3 MB, free: 12.1 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007711/0.2996, allocations: 442.2 kB / 333.8 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.2996, allocations: 0 / 333.8 MB, free: 11.81 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.233e-05/0.2997, allocations: 16.41 kB / 333.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.2997, allocations: 10.06 kB / 333.8 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006063/0.3003, allocations: 295.8 kB / 334.1 MB, free: 11.67 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002144/0.3024, allocations: 1.613 MB / 335.7 MB, free: 10.03 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000598/0.3031, allocations: 298.6 kB / 336 MB, free: 9.73 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.3031, allocations: 4.531 kB / 336 MB, free: 9.727 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004789/0.3036, allocations: 242 kB / 336.2 MB, free: 9.473 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.724e-06/0.3036, allocations: 0 / 336.2 MB, free: 9.473 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001527/0.3051, allocations: 0.636 MB / 336.9 MB, free: 8.809 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.76e-05/0.3052, allocations: 110.8 kB / 337 MB, free: 8.676 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003707/0.3056, allocations: 349.6 kB / 337.3 MB, free: 8.328 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.979e-05/0.3056, allocations: 33.7 kB / 337.4 MB, free: 8.289 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.3058, allocations: 220.5 kB / 337.6 MB, free: 8.07 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.976e-05/0.3059, allocations: 98.64 kB / 337.7 MB, free: 7.973 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.07e-05/0.3059, allocations: 12 kB / 337.7 MB, free: 7.961 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3061, allocations: 346.8 kB / 338 MB, free: 7.613 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.3063, allocations: 116.8 kB / 338.1 MB, free: 7.496 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.3067, allocations: 239.7 kB / 338.4 MB, free: 7.207 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.307, allocations: 161.7 kB / 338.5 MB, free: 7.043 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.307, allocations: 0 / 338.5 MB, free: 7.043 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000767/0.3077, allocations: 483.6 kB / 339 MB, free: 6.555 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005093/0.3083, allocations: 1.42 MB / 340.4 MB, free: 5.02 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3083, allocations: 4 kB / 340.4 MB, free: 5.016 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002987/0.3086, allocations: 84.75 kB / 340.5 MB, free: 4.93 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.3088, allocations: 59.91 kB / 340.6 MB, free: 4.871 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001702/0.3105, allocations: 1.792 MB / 342.4 MB, free: 2.941 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.3108, allocations: 59.64 kB / 342.4 MB, free: 2.883 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.3109, allocations: 15.94 kB / 342.4 MB, free: 2.867 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/0.3109, allocations: 4 kB / 342.4 MB, free: 2.863 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006546/0.3116, allocations: 406.5 kB / 342.8 MB, free: 2.457 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3116, allocations: 4 kB / 342.8 MB, free: 2.453 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002088/0.3118, allocations: 76.77 kB / 342.9 MB, free: 2.375 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.312, allocations: 55.91 kB / 343 MB, free: 2.32 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/0.3136, allocations: 1.785 MB / 344.7 MB, free: 416 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.3139, allocations: 47.66 kB / 344.8 MB, free: 368 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.3139, allocations: 24.06 kB / 344.8 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.0002701/0.3142, allocations: 255.2 kB / 345.1 MB, free: 80 kB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/0.3142, allocations: 35.62 kB / 345.1 MB, free: 44 kB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.194e-05/0.3143, allocations: 40.09 kB / 345.1 MB, free: 4 kB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3143, allocations: 4 kB / 345.1 MB, free: 0 / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3144, allocations: 4.047 kB / 345.2 MB, free: 15.99 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.3144, allocations: 3.984 kB / 345.2 MB, free: 15.99 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.3156, allocations: 0.9126 MB / 346.1 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3157, allocations: 4 kB / 346.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001557/0.3158, allocations: 31.97 kB / 346.1 MB, free: 14.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002059/0.316, allocations: 76.75 kB / 346.2 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.3161, allocations: 8.188 kB / 346.2 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.3177, allocations: 1.784 MB / 348 MB, free: 12.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3177, allocations: 4.031 kB / 348 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/0.3187, allocations: 0.6235 MB / 348.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001943/0.3189, allocations: 144.6 kB / 348.7 MB, free: 12.16 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.319, allocations: 15.95 kB / 348.8 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.3192, allocations: 32.03 kB / 348.8 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.3194, allocations: 31.95 kB / 348.8 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.683e-05/0.3194, allocations: 12 kB / 348.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003053/0.3198, allocations: 243.2 kB / 349.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3198, allocations: 0 / 349.1 MB, free: 11.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.001049/0.3208, allocations: 199.4 kB / 349.3 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.0002238/0.3211, allocations: 127.1 kB / 349.4 MB, free: 11.51 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.3229, allocations: 0.8809 MB / 350.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/0.3229, allocations: 4.125 kB / 350.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/0.3234, allocations: 302.4 kB / 350.6 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.0004573/0.3239, allocations: 73.33 kB / 350.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.3257, allocations: 0.9125 MB / 351.5 MB, free: 9.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000435/0.3262, allocations: 0.8312 MB / 352.4 MB, free: 8.395 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0002045/0.3264, allocations: 47.25 kB / 352.4 MB, free: 8.348 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.389e-05/0.3265, allocations: 31.44 kB / 352.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3265, allocations: 0 / 352.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of Templates: time 0.01223/0.3387, allocations: 5.929 MB / 358.4 MB, free: 2.387 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) Environment - environmentSimulation: