Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadModel(Modelica): time 1.908/1.908, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003628, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0947/0.09509, allocations: 44.49 MB / 309 MB, free: 1.055 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4173/0.5125, allocations: 78.02 MB / 387 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003482/0.5129, allocations: 92.64 kB / 387.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02825/0.5411, allocations: 6.935 MB / 394 MB, free: 14.01 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.125e-06/0.5412, allocations: 0 / 394 MB, free: 14.01 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.889e-05/0.5413, allocations: 11.59 kB / 394 MB, free: 14 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001777/0.543, allocations: 0.7391 MB / 394.8 MB, free: 13.47 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.5431, allocations: 7.719 kB / 394.8 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.5433, allocations: 54.36 kB / 394.8 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000632/0.5439, allocations: 362.2 kB / 395.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.866e-05/0.544, allocations: 34.44 kB / 395.2 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.485e-05/0.5441, allocations: 45.03 kB / 395.3 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.5453, allocations: 462.9 kB / 395.7 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/0.5454, allocations: 7.859 kB / 395.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.618e-05/0.5454, allocations: 14.88 kB / 395.7 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.5455, allocations: 7.469 kB / 395.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.5465, allocations: 331.6 kB / 396.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003406/0.5499, allocations: 1.678 MB / 397.8 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.5511, allocations: 318 kB / 398.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.584e-05/0.5512, allocations: 7.469 kB / 398.1 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006799/0.5519, allocations: 260.3 kB / 398.3 MB, free: 12.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.865e-06/0.5519, allocations: 0 / 398.3 MB, free: 12.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.002328/0.5542, allocations: 0.6244 MB / 398.9 MB, free: 11.97 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.636e-05/0.5543, allocations: 114.2 kB / 399.1 MB, free: 11.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005042/0.5548, allocations: 341.2 kB / 399.4 MB, free: 11.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.224e-05/0.5549, allocations: 37.3 kB / 399.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.5551, allocations: 264.1 kB / 399.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.5552, allocations: 115.7 kB / 399.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.5552, allocations: 7.375 kB / 399.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.693e-05/0.5553, allocations: 328.7 kB / 400.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/0.5558, allocations: 121 kB / 400.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004964/0.5563, allocations: 246.6 kB / 400.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004761/0.5568, allocations: 178.4 kB / 400.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.5568, allocations: 0 / 400.7 MB, free: 10.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001296/0.5581, allocations: 464.6 kB / 401.1 MB, free: 10.82 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.5582, allocations: 227.4 kB / 401.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.5583, allocations: 3.844 kB / 401.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004147/0.5587, allocations: 69.94 kB / 401.4 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004648/0.5592, allocations: 68.39 kB / 401.5 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002092/0.5613, allocations: 1.717 MB / 403.2 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006109/0.5619, allocations: 59.03 kB / 403.3 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.727e-05/0.562, allocations: 16.97 kB / 403.3 MB, free: 9.168 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.562, allocations: 4.062 kB / 403.3 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001072/0.5631, allocations: 409.8 kB / 403.7 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.5631, allocations: 3.875 kB / 403.7 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003154/0.5635, allocations: 84.28 kB / 403.8 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003888/0.5639, allocations: 62.72 kB / 403.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.5658, allocations: 1.7 MB / 405.5 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004389/0.5663, allocations: 38.33 kB / 405.6 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.695e-05/0.5664, allocations: 19.31 kB / 405.6 MB, free: 7.715 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004098/0.5668, allocations: 260.2 kB / 405.8 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.5669, allocations: 38.53 kB / 405.9 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.567, allocations: 43.5 kB / 405.9 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.567, allocations: 3.812 kB / 405.9 MB, free: 7.484 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.5671, allocations: 4 kB / 405.9 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.5671, allocations: 0 / 405.9 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.5692, allocations: 0.9362 MB / 406.9 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.5693, allocations: 0 / 406.9 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003944/0.5697, allocations: 46.28 kB / 406.9 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003326/0.57, allocations: 76.19 kB / 407 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.259e-05/0.5701, allocations: 10.61 kB / 407 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00193/0.572, allocations: 1.708 MB / 408.7 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.572, allocations: 3.875 kB / 408.7 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.5738, allocations: 0.6331 MB / 409.3 MB, free: 5.578 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.574, allocations: 142.4 kB / 409.5 MB, free: 5.465 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.967e-05/0.5741, allocations: 18.75 kB / 409.5 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004775/0.5746, allocations: 30.72 kB / 409.5 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/0.5748, allocations: 43.22 kB / 409.6 MB, free: 5.449 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.5748, allocations: 14.17 kB / 409.6 MB, free: 5.449 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003693/0.5752, allocations: 236.4 kB / 409.8 MB, free: 5.371 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5752, allocations: 4 kB / 409.8 MB, free: 5.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001115/0.5764, allocations: 209.1 kB / 410 MB, free: 5.336 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001995/0.5766, allocations: 126.5 kB / 410.1 MB, free: 5.242 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002087/0.5787, allocations: 0.8973 MB / 411 MB, free: 4.844 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.5787, allocations: 0 / 411 MB, free: 4.844 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007045/0.5794, allocations: 314.9 kB / 411.3 MB, free: 4.715 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006292/0.5801, allocations: 70.73 kB / 411.4 MB, free: 4.691 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.5826, allocations: 1.058 MB / 412.5 MB, free: 4.094 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.5832, allocations: 0.8354 MB / 413.3 MB, free: 19.39 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.5834, allocations: 26.81 kB / 413.3 MB, free: 19.38 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.5834, allocations: 0 / 413.3 MB, free: 19.38 MB / 330.7 MB Notification: Performance of Templates: time 0.01321/0.5966, allocations: 6.72 MB / 420 MB, free: 16.18 MB / 330.7 MB