Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001191/0.001191, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.009633/0.009632, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.407/1.407, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004368/0.0004369, allocations: 12 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.22, allocations: 47.59 MB / 327.1 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.003597/0.2237, allocations: 3.154 MB / 330.2 MB, free: 14.91 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.2255, allocations: 0.9352 MB / 331.1 MB, free: 14.15 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.2257, allocations: 10.91 kB / 331.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.2259, allocations: 53.02 kB / 331.2 MB, free: 14.1 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.2262, allocations: 99.12 kB / 331.3 MB, free: 14.01 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004751/0.2267, allocations: 181.2 kB / 331.5 MB, free: 13.86 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005462/0.2272, allocations: 0.5265 MB / 332 MB, free: 13.55 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003909/0.2276, allocations: 203.4 kB / 332.2 MB, free: 13.42 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002182/0.2278, allocations: 167.5 kB / 332.4 MB, free: 13.32 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.2281, allocations: 195.1 kB / 332.6 MB, free: 13.19 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.276e-05/0.2282, allocations: 20.16 kB / 332.6 MB, free: 13.19 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.768e-05/0.2282, allocations: 21.31 kB / 332.6 MB, free: 13.19 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.2283, allocations: 74.44 kB / 332.7 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.2286, allocations: 241.3 kB / 332.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.2291, allocations: 0.5398 MB / 333.4 MB, free: 12.54 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.2291, allocations: 4 kB / 333.4 MB, free: 12.53 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2291, allocations: 0 / 333.4 MB, free: 12.53 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.2291, allocations: 0 / 333.4 MB, free: 12.53 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.001318/0.2305, allocations: 0.7129 MB / 334.2 MB, free: 11.92 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.2305, allocations: 13.08 kB / 334.2 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.2306, allocations: 52.03 kB / 334.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005172/0.2312, allocations: 384.6 kB / 334.6 MB, free: 11.54 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.804e-05/0.2312, allocations: 34.47 kB / 334.6 MB, free: 11.52 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.4e-05/0.2313, allocations: 39.97 kB / 334.7 MB, free: 11.51 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008156/0.2321, allocations: 452.8 kB / 335.1 MB, free: 11.14 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.2322, allocations: 0 / 335.1 MB, free: 11.14 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.408e-05/0.2322, allocations: 16 kB / 335.1 MB, free: 11.12 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.2322, allocations: 12 kB / 335.1 MB, free: 11.11 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006078/0.2329, allocations: 307.8 kB / 335.4 MB, free: 10.82 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.235, allocations: 1.597 MB / 337 MB, free: 9.125 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000627/0.2357, allocations: 302.7 kB / 337.3 MB, free: 8.82 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003656/0.236, allocations: 168.7 kB / 337.5 MB, free: 8.652 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.2361, allocations: 4 kB / 337.5 MB, free: 8.648 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000477/0.2366, allocations: 255 kB / 337.8 MB, free: 8.379 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.934e-06/0.2366, allocations: 0 / 337.8 MB, free: 8.379 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.00158/0.2382, allocations: 0.6469 MB / 338.4 MB, free: 7.707 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/0.2383, allocations: 136.5 kB / 338.5 MB, free: 7.543 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003945/0.2387, allocations: 345.7 kB / 338.9 MB, free: 7.199 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.2387, allocations: 37.7 kB / 338.9 MB, free: 7.156 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.2389, allocations: 224.4 kB / 339.1 MB, free: 6.934 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.62e-05/0.2389, allocations: 98.55 kB / 339.2 MB, free: 6.836 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/0.239, allocations: 49.69 kB / 339.3 MB, free: 6.781 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.2391, allocations: 354.7 kB / 339.6 MB, free: 6.426 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002453/0.2394, allocations: 112.8 kB / 339.7 MB, free: 6.312 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.2398, allocations: 248.8 kB / 340 MB, free: 6.012 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005776/0.2403, allocations: 372.6 kB / 340.3 MB, free: 5.59 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.2404, allocations: 11.92 kB / 340.3 MB, free: 5.578 MB / 270.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008124/0.2412, allocations: 472.5 kB / 340.8 MB, free: 5.102 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001618/0.2414, allocations: 233.3 kB / 341 MB, free: 4.812 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.2414, allocations: 4 kB / 341 MB, free: 4.809 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003246/0.2417, allocations: 80.81 kB / 341.1 MB, free: 4.727 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.2419, allocations: 63.84 kB / 341.2 MB, free: 4.664 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/0.2437, allocations: 1.772 MB / 343 MB, free: 2.754 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.244, allocations: 51.73 kB / 343 MB, free: 2.703 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.265e-05/0.2441, allocations: 20 kB / 343 MB, free: 2.684 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.492e-06/0.2441, allocations: 4 kB / 343 MB, free: 2.68 MB / 270.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006527/0.2448, allocations: 402.5 kB / 343.4 MB, free: 2.277 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2448, allocations: 4 kB / 343.4 MB, free: 2.273 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002135/0.245, allocations: 80.69 kB / 343.5 MB, free: 2.191 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.2452, allocations: 59.84 kB / 343.6 MB, free: 2.133 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.2468, allocations: 1.772 MB / 345.3 MB, free: 236 kB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.2471, allocations: 43.69 kB / 345.4 MB, free: 192 kB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.89e-05/0.2471, allocations: 23.98 kB / 345.4 MB, free: 168 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.0003216/0.2474, allocations: 251.2 kB / 345.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.335e-05/0.2475, allocations: 39.53 kB / 345.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-05/0.2476, allocations: 48.11 kB / 345.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.2476, allocations: 4 kB / 345.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2476, allocations: 3.984 kB / 345.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.2477, allocations: 0 / 345.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/0.2491, allocations: 0.9994 MB / 346.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.2492, allocations: 4 kB / 346.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000147/0.2493, allocations: 31.92 kB / 346.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002165/0.2495, allocations: 85.08 kB / 346.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.2496, allocations: 11.94 kB / 346.9 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001661/0.2512, allocations: 1.753 MB / 348.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2512, allocations: 0 / 348.6 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.2523, allocations: 0.6146 MB / 349.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.2525, allocations: 144.6 kB / 349.4 MB, free: 11.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.955e-05/0.2525, allocations: 8 kB / 349.4 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.2528, allocations: 31.97 kB / 349.4 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.2529, allocations: 39.89 kB / 349.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.831e-05/0.2529, allocations: 8 kB / 349.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002569/0.2532, allocations: 247.2 kB / 349.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2532, allocations: 0 / 349.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008136/0.254, allocations: 207.4 kB / 349.9 MB, free: 11.4 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.000152/0.2542, allocations: 118.9 kB / 350 MB, free: 11.28 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.2557, allocations: 0.8878 MB / 350.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2557, allocations: 0 / 350.9 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004574/0.2562, allocations: 311.5 kB / 351.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/0.2568, allocations: 65.41 kB / 351.3 MB, free: 9.961 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.2584, allocations: 0.9587 MB / 352.2 MB, free: 8.965 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.2589, allocations: 0.8234 MB / 353.1 MB, free: 8.113 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.259, allocations: 47.25 kB / 353.1 MB, free: 8.07 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.901e-05/0.2591, allocations: 27.44 kB / 353.1 MB, free: 8.047 MB / 286.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2591, allocations: 4 kB / 353.1 MB, free: 8.043 MB / 286.1 MB Notification: Performance of Templates: time 0.01145/0.2706, allocations: 6.104 MB / 359.2 MB, free: 1.938 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1)