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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.00155/0.00155, allocations: 182.2 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.321/1.321, allocations: 194.3 MB / 208.4 MB, free: 6.699 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001821/0.001821, allocations: 112.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.691e-05/2.692e-05, allocations: 8 kB / 305 MB, free: 29.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.077/0.07704, allocations: 44.49 MB / 349.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.295/0.3721, allocations: 77.63 MB / 427.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.3723, allocations: 87.53 kB / 427.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01525/0.3876, allocations: 6.593 MB / 433.8 MB, free: 7.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3876, allocations: 0 / 433.8 MB, free: 7.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.3877, allocations: 19.38 kB / 433.8 MB, free: 7.832 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008746/0.3885, allocations: 0.6775 MB / 434.5 MB, free: 7.277 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3886, allocations: 7.625 kB / 434.5 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.794e-05/0.3887, allocations: 61.86 kB / 434.5 MB, free: 7.246 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.3891, allocations: 351.9 kB / 434.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.3891, allocations: 30.47 kB / 434.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.64e-05/0.3892, allocations: 40.75 kB / 434.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005606/0.3897, allocations: 410.6 kB / 435.3 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.3897, allocations: 0 / 435.3 MB, free: 6.836 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.3898, allocations: 17.55 kB / 435.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.3898, allocations: 11.5 kB / 435.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003853/0.3902, allocations: 253.7 kB / 435.6 MB, free: 6.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.3919, allocations: 1.6 MB / 437.2 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004562/0.3924, allocations: 259.8 kB / 437.5 MB, free: 5.746 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002478/0.3927, allocations: 147.6 kB / 437.6 MB, free: 5.727 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.3927, allocations: 8.328 kB / 437.6 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003102/0.393, allocations: 231.5 kB / 437.9 MB, free: 5.602 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.563e-06/0.393, allocations: 0 / 437.9 MB, free: 5.602 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004872/0.3935, allocations: 307.7 kB / 438.2 MB, free: 5.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.3936, allocations: 148.1 kB / 438.3 MB, free: 5.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.3939, allocations: 296.8 kB / 438.6 MB, free: 5.234 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.3939, allocations: 41.28 kB / 438.6 MB, free: 5.199 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.026e-05/0.394, allocations: 217.1 kB / 438.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.789e-05/0.3941, allocations: 100.2 kB / 438.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/0.3941, allocations: 11.69 kB / 438.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.45e-05/0.3941, allocations: 349.7 kB / 439.3 MB, free: 4.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001396/0.3943, allocations: 89.31 kB / 439.4 MB, free: 4.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.3945, allocations: 222.4 kB / 439.6 MB, free: 4.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001741/0.3947, allocations: 137 kB / 439.7 MB, free: 4.445 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3947, allocations: 4 kB / 439.7 MB, free: 4.441 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005435/0.3952, allocations: 427.3 kB / 440.1 MB, free: 4.309 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002393/0.3955, allocations: 1.432 MB / 441.6 MB, free: 2.805 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3955, allocations: 7.859 kB / 441.6 MB, free: 2.801 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002875/0.3958, allocations: 76.98 kB / 441.7 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001973/0.396, allocations: 57.47 kB / 441.7 MB, free: 2.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.3974, allocations: 1.811 MB / 443.5 MB, free: 1.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/0.3977, allocations: 61.34 kB / 443.6 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.3978, allocations: 18 kB / 443.6 MB, free: 1.301 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.115e-06/0.3978, allocations: 3.844 kB / 443.6 MB, free: 1.301 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005072/0.3983, allocations: 382.7 kB / 444 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3983, allocations: 3.75 kB / 444 MB, free: 1.211 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001878/0.3985, allocations: 80.09 kB / 444.1 MB, free: 1.191 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.3987, allocations: 58.91 kB / 444.1 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.4001, allocations: 1.814 MB / 445.9 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.4004, allocations: 46.38 kB / 446 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.4004, allocations: 26.89 kB / 446 MB, free: 15.71 MB / 314.7 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.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001408/0.4006, allocations: 153.4 kB / 446.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.439e-05/0.4006, allocations: 31.16 kB / 446.2 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.634e-05/0.4007, allocations: 43.59 kB / 446.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.4007, allocations: 3.812 kB / 446.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.4007, allocations: 0 / 446.2 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.667e-06/0.4008, allocations: 7.938 kB / 446.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.4019, allocations: 0.9596 MB / 447.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.4019, allocations: 0 / 447.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.402, allocations: 31.42 kB / 447.2 MB, free: 14.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002011/0.4023, allocations: 67.61 kB / 447.3 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.689e-05/0.4023, allocations: 19.69 kB / 447.3 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/0.4037, allocations: 1.737 MB / 449.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4038, allocations: 64 / 449.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007023/0.4045, allocations: 0.5438 MB / 449.6 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.4046, allocations: 146.3 kB / 449.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.4047, allocations: 15.36 kB / 449.8 MB, free: 12.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002701/0.405, allocations: 35.59 kB / 449.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.4051, allocations: 35.56 kB / 449.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-05/0.4051, allocations: 11.62 kB / 449.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002324/0.4053, allocations: 229.8 kB / 450.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4054, allocations: 0 / 450.1 MB, free: 12.26 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007146/0.4061, allocations: 201.9 kB / 450.3 MB, free: 12.08 MB / 314.7 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.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 19 * 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.0001675/0.4062, allocations: 130.7 kB / 450.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.4074, allocations: 0.8486 MB / 451.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4074, allocations: 0 / 451.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.4078, allocations: 271.8 kB / 451.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.4081, allocations: 78.95 kB / 451.6 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.4091, allocations: 0.5255 MB / 452.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.4095, allocations: 0.8202 MB / 452.9 MB, free: 9.594 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.4097, allocations: 59.25 kB / 453 MB, free: 9.535 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.014e-05/0.4098, allocations: 27.38 kB / 453 MB, free: 9.508 MB / 314.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4098, allocations: 0 / 453 MB, free: 9.508 MB / 314.7 MB Notification: Performance of Templates: time 0.01061/0.4204, allocations: 6.339 MB / 459.3 MB, free: 3.188 MB / 314.7 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)