Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.753/1.753, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003701/0.0003702, allocations: 8 kB / 264 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07828/0.07867, allocations: 44.5 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.4198, allocations: 78.02 MB / 386.5 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/0.4201, allocations: 89.75 kB / 386.6 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02494/0.445, allocations: 6.947 MB / 393.5 MB, free: 18.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.288e-06/0.4451, allocations: 3.938 kB / 393.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.121e-05/0.4451, allocations: 11.59 kB / 393.5 MB, free: 18.02 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.001304/0.4464, allocations: 0.7293 MB / 394.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.4465, allocations: 11.53 kB / 394.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.4466, allocations: 57.36 kB / 394.3 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005568/0.4472, allocations: 358.6 kB / 394.7 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.4472, allocations: 34.25 kB / 394.7 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.377e-05/0.4473, allocations: 45.75 kB / 394.8 MB, free: 17.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009495/0.4483, allocations: 459.2 kB / 395.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.4483, allocations: 0 / 395.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.4484, allocations: 18.28 kB / 395.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.4484, allocations: 11.66 kB / 395.2 MB, free: 17.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008557/0.4493, allocations: 325.5 kB / 395.6 MB, free: 17.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002832/0.4522, allocations: 1.673 MB / 397.2 MB, free: 16.28 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008287/0.453, allocations: 307.1 kB / 397.5 MB, free: 16.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/0.4531, allocations: 3.875 kB / 397.5 MB, free: 16.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.4536, allocations: 239.4 kB / 397.8 MB, free: 16.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 3.164e-06/0.4536, allocations: 0 / 397.8 MB, free: 16.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.001623/0.4552, allocations: 0.5793 MB / 398.3 MB, free: 16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.4553, allocations: 106.7 kB / 398.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004676/0.4558, allocations: 323 kB / 398.8 MB, free: 15.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.528e-05/0.4558, allocations: 36.48 kB / 398.8 MB, free: 15.74 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001485/0.456, allocations: 275.9 kB / 399.1 MB, free: 15.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.037e-05/0.4561, allocations: 106.2 kB / 399.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.4561, allocations: 7.438 kB / 399.2 MB, free: 15.47 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.164e-05/0.4562, allocations: 327.6 kB / 399.5 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003405/0.4566, allocations: 120.9 kB / 399.6 MB, free: 15.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/0.457, allocations: 248 kB / 399.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003734/0.4574, allocations: 176.6 kB / 400 MB, free: 14.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.967e-06/0.4574, allocations: 0 / 400 MB, free: 14.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001095/0.4585, allocations: 468.5 kB / 400.5 MB, free: 14.85 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002745/0.4588, allocations: 1.336 MB / 401.8 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.4588, allocations: 3.781 kB / 401.8 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003485/0.4592, allocations: 85.27 kB / 401.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003348/0.4595, allocations: 68.41 kB / 402 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.4614, allocations: 1.709 MB / 403.7 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005588/0.462, allocations: 75.11 kB / 403.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.49e-05/0.462, allocations: 17.31 kB / 403.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.4621, allocations: 3 kB / 403.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009251/0.463, allocations: 423.3 kB / 404.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.007e-06/0.463, allocations: 3.906 kB / 404.2 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002562/0.4633, allocations: 69.36 kB / 404.3 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.4636, allocations: 57.36 kB / 404.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.4653, allocations: 1.709 MB / 406 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003763/0.4657, allocations: 54.38 kB / 406.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.4657, allocations: 14.44 kB / 406.1 MB, free: 10.57 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.0003637/0.4661, allocations: 257.8 kB / 406.3 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.825e-05/0.4662, allocations: 38.53 kB / 406.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.388e-05/0.4663, allocations: 44.92 kB / 406.4 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.246e-06/0.4664, allocations: 11.75 kB / 406.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.036e-06/0.4664, allocations: 0 / 406.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.4664, allocations: 7.891 kB / 406.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001527/0.4679, allocations: 0.8773 MB / 407.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.283e-06/0.468, allocations: 0 / 407.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.4682, allocations: 33.89 kB / 407.4 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003067/0.4686, allocations: 72.75 kB / 407.4 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.4686, allocations: 10.38 kB / 407.4 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001815/0.4705, allocations: 1.7 MB / 409.1 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.467e-06/0.4705, allocations: 0 / 409.1 MB, free: 8.645 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.4716, allocations: 0.5838 MB / 409.7 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/0.4719, allocations: 146.6 kB / 409.9 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.687e-05/0.472, allocations: 7.719 kB / 409.9 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003738/0.4723, allocations: 30.86 kB / 409.9 MB, free: 8.348 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.4725, allocations: 45.55 kB / 409.9 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.4725, allocations: 15.44 kB / 410 MB, free: 8.336 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003817/0.4729, allocations: 254.6 kB / 410.2 MB, free: 8.258 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.609e-06/0.4729, allocations: 0 / 410.2 MB, free: 8.258 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001086/0.474, allocations: 220.6 kB / 410.4 MB, free: 8.223 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (29): * Single equations (assignments): 22 * 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.000176/0.4742, allocations: 113.8 kB / 410.5 MB, free: 8.129 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.4764, allocations: 0.8756 MB / 411.4 MB, free: 23.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.4764, allocations: 3.562 kB / 411.4 MB, free: 23.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005652/0.477, allocations: 290.9 kB / 411.7 MB, free: 23.61 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005766/0.4776, allocations: 69.42 kB / 411.8 MB, free: 23.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.4797, allocations: 1.025 MB / 412.8 MB, free: 23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.4802, allocations: 0.8253 MB / 413.6 MB, free: 22.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.4804, allocations: 30.44 kB / 413.6 MB, free: 22.29 MB / 330.7 MB Notification: Performance of SimCode: time 1.626e-06/0.4804, allocations: 7.906 kB / 413.7 MB, free: 22.29 MB / 330.7 MB Notification: Performance of Templates: time 0.01021/0.4906, allocations: 6.715 MB / 420.4 MB, free: 19.66 MB / 330.7 MB