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.0009412/0.0009412, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.223/1.223, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001683/0.001683, allocations: 114.4 kB / 248.1 MB, free: 6.348 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.54e-05/1.543e-05, allocations: 4 kB / 298.1 MB, free: 8.215 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09135/0.09138, allocations: 44.5 MB / 342.6 MB, free: 11.62 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2901/0.3816, allocations: 76.96 MB / 419.6 MB, free: 18.85 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.3819, allocations: 91.52 kB / 419.6 MB, free: 18.8 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01586/0.3977, allocations: 6.527 MB / 426.2 MB, free: 13.42 MB / 315.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.3978, allocations: 3.828 kB / 426.2 MB, free: 13.42 MB / 315.1 MB Notification: Performance of Transformations before backend: time 2.225e-05/0.3978, allocations: 12 kB / 426.2 MB, free: 13.41 MB / 315.1 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.000873/0.3987, allocations: 0.6684 MB / 426.9 MB, free: 12.72 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.3987, allocations: 12.78 kB / 426.9 MB, free: 12.71 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.3988, allocations: 55.03 kB / 426.9 MB, free: 12.66 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000405/0.3992, allocations: 357.1 kB / 427.3 MB, free: 12.31 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.3993, allocations: 15.62 kB / 427.3 MB, free: 12.3 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.3993, allocations: 27.94 kB / 427.3 MB, free: 12.27 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003878/0.3997, allocations: 230.9 kB / 427.5 MB, free: 12.14 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004928/0.4002, allocations: 358.1 kB / 427.9 MB, free: 11.86 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.4002, allocations: 0 / 427.9 MB, free: 11.86 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.414e-05/0.4003, allocations: 0.9375 kB / 427.9 MB, free: 11.86 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.4003, allocations: 12 kB / 427.9 MB, free: 11.85 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.402, allocations: 1.502 MB / 429.4 MB, free: 10.54 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.4024, allocations: 252.5 kB / 429.6 MB, free: 10.38 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.4026, allocations: 136.3 kB / 429.8 MB, free: 10.29 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.4027, allocations: 4 kB / 429.8 MB, free: 10.28 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003389/0.403, allocations: 211.2 kB / 430 MB, free: 10.1 MB / 315.1 MB Notification: Performance of pre-optimization done (n=34): time 2.345e-06/0.4031, allocations: 3.938 kB / 430 MB, free: 10.09 MB / 315.1 MB Notification: Performance of matching and sorting (n=34): time 0.0005285/0.4036, allocations: 283.4 kB / 430.3 MB, free: 9.875 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.4036, allocations: 140.3 kB / 430.4 MB, free: 9.711 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.4039, allocations: 239.3 kB / 430.6 MB, free: 9.516 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.4039, allocations: 33.62 kB / 430.7 MB, free: 9.48 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.583e-05/0.404, allocations: 225.7 kB / 430.9 MB, free: 9.297 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.418e-05/0.4041, allocations: 89.84 kB / 431 MB, free: 9.223 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.4041, allocations: 0 / 431 MB, free: 9.223 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 9.992e-05/0.4042, allocations: 350.1 kB / 431.3 MB, free: 8.887 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.4043, allocations: 87.88 kB / 431.4 MB, free: 8.836 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.4045, allocations: 200.8 kB / 431.6 MB, free: 8.625 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.4047, allocations: 103.2 kB / 431.7 MB, free: 8.559 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4047, allocations: 0 / 431.7 MB, free: 8.559 MB / 315.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004574/0.4051, allocations: 361.4 kB / 432.1 MB, free: 8.281 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002692/0.4054, allocations: 1.428 MB / 433.5 MB, free: 6.766 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.4054, allocations: 4 kB / 433.5 MB, free: 6.762 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002792/0.4057, allocations: 92.38 kB / 433.6 MB, free: 6.695 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.406, allocations: 55.91 kB / 433.6 MB, free: 6.641 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/0.4072, allocations: 1.736 MB / 435.4 MB, free: 5.004 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.4075, allocations: 55.72 kB / 435.4 MB, free: 4.949 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.826e-05/0.4075, allocations: 24.8 kB / 435.5 MB, free: 4.93 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.082e-06/0.4076, allocations: 7.953 kB / 435.5 MB, free: 4.922 MB / 315.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000406/0.408, allocations: 291.3 kB / 435.7 MB, free: 4.715 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.408, allocations: 4 kB / 435.7 MB, free: 4.711 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001903/0.4082, allocations: 88 kB / 435.8 MB, free: 4.645 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.4084, allocations: 47.91 kB / 435.9 MB, free: 4.598 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.4096, allocations: 1.757 MB / 437.6 MB, free: 2.961 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/0.41, allocations: 43.72 kB / 437.7 MB, free: 2.918 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.234e-05/0.41, allocations: 17.25 kB / 437.7 MB, free: 2.906 MB / 315.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.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.0001024/0.4101, allocations: 137.9 kB / 437.8 MB, free: 2.77 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.225e-05/0.4101, allocations: 31.62 kB / 437.9 MB, free: 2.738 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.848e-05/0.4102, allocations: 41.22 kB / 437.9 MB, free: 2.715 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.4102, allocations: 4 kB / 437.9 MB, free: 2.711 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.4102, allocations: 0 / 437.9 MB, free: 2.711 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.4103, allocations: 7.984 kB / 437.9 MB, free: 2.703 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008791/0.4111, allocations: 0.8578 MB / 438.8 MB, free: 1.98 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.4112, allocations: 0 / 438.8 MB, free: 1.98 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.4113, allocations: 31.95 kB / 438.8 MB, free: 1.949 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000171/0.4115, allocations: 67.52 kB / 438.9 MB, free: 1.902 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.4115, allocations: 7.984 kB / 438.9 MB, free: 1.895 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.4126, allocations: 1.684 MB / 440.6 MB, free: 300 kB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.4127, allocations: 0 / 440.6 MB, free: 300 kB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.4133, allocations: 0.5159 MB / 441.1 MB, free: 15.88 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.4134, allocations: 136.5 kB / 441.2 MB, free: 15.74 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.017e-05/0.4135, allocations: 7.953 kB / 441.2 MB, free: 15.73 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.4137, allocations: 31.03 kB / 441.2 MB, free: 15.71 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.981e-05/0.4139, allocations: 45.3 kB / 441.3 MB, free: 15.67 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.4139, allocations: 11.25 kB / 441.3 MB, free: 15.66 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001605/0.414, allocations: 183.1 kB / 441.5 MB, free: 15.52 MB / 331.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4141, allocations: 1.219 kB / 441.5 MB, free: 15.52 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0006996/0.4148, allocations: 187.4 kB / 441.7 MB, free: 15.33 MB / 331.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.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.0001627/0.4149, allocations: 119 kB / 441.8 MB, free: 15.21 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0009956/0.4159, allocations: 0.7719 MB / 442.6 MB, free: 14.55 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.416, allocations: 0 / 442.6 MB, free: 14.55 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003963/0.4164, allocations: 269.7 kB / 442.8 MB, free: 14.32 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.4167, allocations: 48.58 kB / 442.9 MB, free: 14.29 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.4178, allocations: 0.5044 MB / 443.4 MB, free: 13.81 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/0.4182, allocations: 0.8236 MB / 444.2 MB, free: 12.96 MB / 331.1 MB Notification: Performance of simCode: alias equations: time 0.0002001/0.4184, allocations: 43.27 kB / 444.2 MB, free: 12.91 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.439e-05/0.4184, allocations: 30.5 kB / 444.3 MB, free: 12.89 MB / 331.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4185, allocations: 0 / 444.3 MB, free: 12.89 MB / 331.1 MB Notification: Performance of Templates: time 0.01073/0.4292, allocations: 5.553 MB / 449.8 MB, free: 7.418 MB / 331.1 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)