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.000848/0.0008483, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006114/0.006114, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.406/1.406, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.0004317/0.0004318, allocations: 16 kB / 279.5 MB, free: 12.49 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2256, allocations: 47.58 MB / 327.1 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.003681/0.2293, allocations: 3.158 MB / 330.2 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.2312, allocations: 0.9382 MB / 331.1 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004041/0.2316, allocations: 7.219 kB / 331.2 MB, free: 14.18 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002655/0.2319, allocations: 62.33 kB / 331.2 MB, free: 14.12 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003789/0.2323, allocations: 90.14 kB / 331.3 MB, free: 14.04 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005546/0.2329, allocations: 180.9 kB / 331.5 MB, free: 13.89 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007513/0.2336, allocations: 0.5308 MB / 332 MB, free: 13.58 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003823/0.234, allocations: 199.7 kB / 332.2 MB, free: 13.45 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002224/0.2343, allocations: 171.8 kB / 332.4 MB, free: 13.35 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.2345, allocations: 186.3 kB / 332.6 MB, free: 13.22 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.644e-05/0.2346, allocations: 20.38 kB / 332.6 MB, free: 13.22 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.001e-05/0.2347, allocations: 21.56 kB / 332.6 MB, free: 13.22 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2348, allocations: 82.3 kB / 332.7 MB, free: 13.16 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.235, allocations: 240.3 kB / 332.9 MB, free: 12.98 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004826/0.2355, allocations: 0.5359 MB / 333.4 MB, free: 12.57 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.2355, allocations: 1.594 kB / 333.4 MB, free: 12.57 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2355, allocations: 0 / 333.4 MB, free: 12.57 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.2355, allocations: 0 / 333.4 MB, free: 12.57 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.001217/0.2368, allocations: 0.7235 MB / 334.2 MB, free: 11.94 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2368, allocations: 8.844 kB / 334.2 MB, free: 11.94 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.2369, allocations: 52.31 kB / 334.2 MB, free: 11.92 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.2374, allocations: 379.4 kB / 334.6 MB, free: 11.57 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.884e-05/0.2375, allocations: 39.98 kB / 334.6 MB, free: 11.55 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.466e-05/0.2376, allocations: 43.34 kB / 334.7 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007527/0.2383, allocations: 449.5 kB / 335.1 MB, free: 11.14 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.2383, allocations: 0 / 335.1 MB, free: 11.14 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.268e-05/0.2384, allocations: 16 kB / 335.1 MB, free: 11.13 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2384, allocations: 16 kB / 335.2 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005921/0.239, allocations: 299.8 kB / 335.4 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.2412, allocations: 1.601 MB / 337 MB, free: 9.129 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/0.2418, allocations: 302.7 kB / 337.3 MB, free: 8.824 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003601/0.2422, allocations: 164.8 kB / 337.5 MB, free: 8.66 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/0.2422, allocations: 4 kB / 337.5 MB, free: 8.656 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004897/0.2427, allocations: 263 kB / 337.8 MB, free: 8.379 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.964e-06/0.2427, allocations: 0 / 337.8 MB, free: 8.379 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001614/0.2444, allocations: 0.6313 MB / 338.4 MB, free: 7.723 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.466e-05/0.2444, allocations: 148.5 kB / 338.5 MB, free: 7.547 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003938/0.2448, allocations: 341.7 kB / 338.9 MB, free: 7.207 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.02e-05/0.2449, allocations: 37.7 kB / 338.9 MB, free: 7.164 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.2451, allocations: 228.4 kB / 339.1 MB, free: 6.938 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.986e-05/0.2452, allocations: 102.5 kB / 339.2 MB, free: 6.836 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/0.2452, allocations: 41.7 kB / 339.3 MB, free: 6.789 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2454, allocations: 354.7 kB / 339.6 MB, free: 6.434 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002666/0.2456, allocations: 112.8 kB / 339.7 MB, free: 6.32 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.246, allocations: 248.9 kB / 340 MB, free: 6.02 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005744/0.2466, allocations: 376.5 kB / 340.3 MB, free: 5.594 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.2466, allocations: 4 kB / 340.3 MB, free: 5.59 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008479/0.2474, allocations: 480.6 kB / 340.8 MB, free: 5.105 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.2476, allocations: 225.3 kB / 341 MB, free: 4.824 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.2476, allocations: 4 kB / 341 MB, free: 4.82 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003154/0.2479, allocations: 88.67 kB / 341.1 MB, free: 4.73 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000211/0.2481, allocations: 63.91 kB / 341.2 MB, free: 4.668 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001807/0.25, allocations: 1.768 MB / 343 MB, free: 2.762 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.2503, allocations: 51.67 kB / 343 MB, free: 2.711 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.904e-05/0.2503, allocations: 20 kB / 343 MB, free: 2.691 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.593e-06/0.2504, allocations: 8.062 kB / 343 MB, free: 2.684 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006472/0.251, allocations: 402.8 kB / 343.4 MB, free: 2.281 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.251, allocations: 4 kB / 343.4 MB, free: 2.277 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002079/0.2512, allocations: 76.75 kB / 343.5 MB, free: 2.199 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.2514, allocations: 59.8 kB / 343.6 MB, free: 2.141 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/0.2531, allocations: 1.769 MB / 345.3 MB, free: 248 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002994/0.2534, allocations: 47.73 kB / 345.4 MB, free: 200 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.2534, allocations: 20 kB / 345.4 MB, free: 180 kB / 270.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.0003422/0.2538, allocations: 259.2 kB / 345.7 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.303e-05/0.2538, allocations: 39.53 kB / 345.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.995e-05/0.2539, allocations: 44.09 kB / 345.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2539, allocations: 4 kB / 345.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2539, allocations: 0 / 345.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.254, allocations: 7.984 kB / 345.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001366/0.2553, allocations: 0.9993 MB / 346.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2553, allocations: 0 / 346.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.2555, allocations: 27.98 kB / 346.8 MB, free: 14.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002279/0.2557, allocations: 80.73 kB / 346.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.2558, allocations: 15.94 kB / 346.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00165/0.2574, allocations: 1.761 MB / 348.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2574, allocations: 0 / 348.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.2585, allocations: 0.6144 MB / 349.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.2587, allocations: 140.5 kB / 349.4 MB, free: 11.94 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/0.2587, allocations: 12 kB / 349.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002725/0.259, allocations: 32.05 kB / 349.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.2591, allocations: 35.89 kB / 349.5 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.968e-05/0.2591, allocations: 16.27 kB / 349.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002685/0.2594, allocations: 243.2 kB / 349.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2594, allocations: 0 / 349.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008488/0.2603, allocations: 207.3 kB / 349.9 MB, free: 11.41 MB / 286.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.0001479/0.2604, allocations: 118.9 kB / 350 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001418/0.2619, allocations: 0.8887 MB / 350.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2619, allocations: 0 / 350.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004428/0.2623, allocations: 302.4 kB / 351.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.2629, allocations: 81.5 kB / 351.3 MB, free: 9.957 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00166/0.2645, allocations: 0.947 MB / 352.2 MB, free: 8.973 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.265, allocations: 0.8234 MB / 353.1 MB, free: 8.121 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001897/0.2652, allocations: 47.2 kB / 353.1 MB, free: 8.078 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.239e-05/0.2652, allocations: 31.42 kB / 353.1 MB, free: 8.051 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2653, allocations: 0 / 353.1 MB, free: 8.051 MB / 286.1 MB Notification: Performance of Templates: time 0.01107/0.2763, allocations: 6.107 MB / 359.2 MB, free: 1.941 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (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)