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.0009382/0.0009385, allocations: 91.7 kB / 16.65 MB, free: 6.598 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.0009013/0.0009015, allocations: 179.3 kB / 17.56 MB, free: 6.199 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.325/1.325, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.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.0006754/0.0006754, allocations: 12 kB / 280.8 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1349, allocations: 47.58 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.003887/0.1389, allocations: 3.156 MB / 331.5 MB, free: 0.5781 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.1406, allocations: 0.9397 MB / 332.4 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.1408, allocations: 11.94 kB / 332.4 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.141, allocations: 55.48 kB / 332.5 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002103/0.1412, allocations: 99.22 kB / 332.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.1417, allocations: 175.8 kB / 332.8 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007347/0.1425, allocations: 0.5368 MB / 333.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004941/0.143, allocations: 189.2 kB / 333.5 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/0.1433, allocations: 171.2 kB / 333.7 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.1436, allocations: 183 kB / 333.8 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.676e-05/0.1437, allocations: 24 kB / 333.9 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.425e-05/0.1438, allocations: 20 kB / 333.9 MB, free: 14.17 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.1439, allocations: 91.53 kB / 334 MB, free: 14.08 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002934/0.1442, allocations: 232.5 kB / 334.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006883/0.1449, allocations: 0.5411 MB / 334.7 MB, free: 13.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1449, allocations: 0 / 334.7 MB, free: 13.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1449, allocations: 0 / 334.7 MB, free: 13.3 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.145, allocations: 0 / 334.7 MB, free: 13.3 MB / 286.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.001826/0.1468, allocations: 0.7285 MB / 335.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.1469, allocations: 8.031 kB / 335.5 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.1471, allocations: 56.28 kB / 335.5 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007125/0.1478, allocations: 368.2 kB / 335.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.1479, allocations: 45.55 kB / 335.9 MB, free: 12.01 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.148, allocations: 44.38 kB / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.1491, allocations: 436.8 kB / 336.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.1492, allocations: 4 kB / 336.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.084e-05/0.1493, allocations: 23.98 kB / 336.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.1493, allocations: 8 kB / 336.4 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008843/0.1502, allocations: 303.8 kB / 336.7 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003048/0.1532, allocations: 1.597 MB / 338.3 MB, free: 9.496 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008883/0.1541, allocations: 302.8 kB / 338.6 MB, free: 9.191 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005357/0.1547, allocations: 164.8 kB / 338.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.105e-05/0.1547, allocations: 7.984 kB / 338.8 MB, free: 9.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007016/0.1555, allocations: 253.8 kB / 339 MB, free: 8.75 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 2.585e-06/0.1555, allocations: 0 / 339 MB, free: 8.75 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002312/0.1578, allocations: 0.6312 MB / 339.7 MB, free: 8.094 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.1579, allocations: 148.5 kB / 339.8 MB, free: 7.918 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000542/0.1585, allocations: 349.6 kB / 340.2 MB, free: 7.57 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.271e-05/0.1586, allocations: 33.7 kB / 340.2 MB, free: 7.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.1588, allocations: 220.5 kB / 340.4 MB, free: 7.312 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.1589, allocations: 102.5 kB / 340.5 MB, free: 7.211 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.692e-05/0.159, allocations: 45.7 kB / 340.5 MB, free: 7.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1592, allocations: 350.7 kB / 340.9 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.1596, allocations: 120.8 kB / 341 MB, free: 6.691 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004774/0.1601, allocations: 240.9 kB / 341.2 MB, free: 6.395 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007844/0.1609, allocations: 384.5 kB / 341.6 MB, free: 5.961 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.1609, allocations: 0 / 341.6 MB, free: 5.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001219/0.1622, allocations: 484.5 kB / 342.1 MB, free: 5.473 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002704/0.1624, allocations: 225.3 kB / 342.3 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.1625, allocations: 4 kB / 342.3 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003957/0.1629, allocations: 88.73 kB / 342.4 MB, free: 5.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002935/0.1632, allocations: 59.91 kB / 342.5 MB, free: 5.039 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.1651, allocations: 1.765 MB / 344.2 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.1654, allocations: 59.66 kB / 344.3 MB, free: 3.078 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.1654, allocations: 20 kB / 344.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.224e-06/0.1654, allocations: 8 kB / 344.3 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006671/0.1661, allocations: 410.7 kB / 344.7 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.1661, allocations: 4.078 kB / 344.7 MB, free: 2.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002056/0.1663, allocations: 76.81 kB / 344.8 MB, free: 2.559 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.1665, allocations: 55.8 kB / 344.8 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/0.1684, allocations: 1.772 MB / 346.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.1687, allocations: 47.73 kB / 346.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.882e-05/0.1688, allocations: 20 kB / 346.7 MB, free: 0.5352 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 21 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,meanCurrent.y,$PRE.meanCurrent.y,meanVoltage.y,$PRE.meanVoltage.y,$whenCondition2,$whenCondition1,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,chopperStepDown.diode.off,chopperStepDown.transistor.off,chopperStepDown.andCondition_p.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002987/0.1691, allocations: 259.1 kB / 346.9 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.103e-05/0.1692, allocations: 39.53 kB / 347 MB, free: 240 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.103e-05/0.1693, allocations: 48.08 kB / 347 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.1693, allocations: 4 kB / 347 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1693, allocations: 4 kB / 347 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1693, allocations: 0 / 347 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001482/0.1708, allocations: 0.9917 MB / 348 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1708, allocations: 0 / 348 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001462/0.171, allocations: 43.91 kB / 348.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002091/0.1712, allocations: 68.81 kB / 348.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.1712, allocations: 11.94 kB / 348.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001731/0.173, allocations: 1.764 MB / 349.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.173, allocations: 0 / 349.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009646/0.174, allocations: 0.6106 MB / 350.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001419/0.1741, allocations: 144.8 kB / 350.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.231e-05/0.1742, allocations: 11.98 kB / 350.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002587/0.1744, allocations: 28.05 kB / 350.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.1746, allocations: 47.77 kB / 350.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/0.1746, allocations: 11.98 kB / 350.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002653/0.1749, allocations: 243.2 kB / 351 MB, free: 11.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1749, allocations: 0 / 351 MB, free: 11.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007307/0.1756, allocations: 203.4 kB / 351.2 MB, free: 11.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001618/0.1758, allocations: 123 kB / 351.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001396/0.1772, allocations: 0.8806 MB / 352.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.1772, allocations: 4 kB / 352.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004587/0.1777, allocations: 298.5 kB / 352.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005752/0.1783, allocations: 73.7 kB / 352.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.1798, allocations: 0.9663 MB / 353.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004001/0.1802, allocations: 0.8118 MB / 354.3 MB, free: 8.492 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.1804, allocations: 43.27 kB / 354.4 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.309e-05/0.1805, allocations: 35.44 kB / 354.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1805, allocations: 0 / 354.4 MB, free: 8.418 MB / 302.1 MB Notification: Performance of Templates: time 0.01098/0.1915, allocations: 6.11 MB / 360.5 MB, free: 2.316 MB / 302.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)