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.812/1.812, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003547, allocations: 12 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07775/0.07813, allocations: 44.51 MB / 308.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.004456/0.08262, allocations: 2.962 MB / 311.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.08457, allocations: 0.9166 MB / 312.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002266/0.08482, allocations: 11.94 kB / 312.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.08501, allocations: 55.55 kB / 312.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.08535, allocations: 135.6 kB / 312.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005234/0.08589, allocations: 135.7 kB / 312.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005655/0.08648, allocations: 383.1 kB / 313 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003681/0.08686, allocations: 165.4 kB / 313.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.08712, allocations: 163.3 kB / 313.3 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002868/0.08742, allocations: 187.1 kB / 313.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.448e-05/0.08752, allocations: 24 kB / 313.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.988e-05/0.08761, allocations: 20 kB / 313.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.08774, allocations: 83.66 kB / 313.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.0879, allocations: 109.5 kB / 313.7 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006013/0.08851, allocations: 451 kB / 314.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.034e-06/0.08854, allocations: 0 / 314.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.367e-06/0.08856, allocations: 0 / 314.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.525e-06/0.08858, allocations: 0 / 314.1 MB, free: 11.2 MB / 266.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.001524/0.09011, allocations: 0.7376 MB / 314.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.09016, allocations: 11.97 kB / 314.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.09031, allocations: 55.34 kB / 314.9 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.09101, allocations: 359.1 kB / 315.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.679e-05/0.09111, allocations: 33 kB / 315.3 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.572e-05/0.09122, allocations: 47.98 kB / 315.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.09233, allocations: 452.7 kB / 315.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.09238, allocations: 7.844 kB / 315.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-05/0.09245, allocations: 20 kB / 315.8 MB, free: 9.379 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.09248, allocations: 8 kB / 315.8 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009188/0.09341, allocations: 315.8 kB / 316.1 MB, free: 9.059 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003316/0.09674, allocations: 1.663 MB / 317.8 MB, free: 7.297 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009323/0.09771, allocations: 311.6 kB / 318.1 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.09776, allocations: 4.281 kB / 318.1 MB, free: 6.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006554/0.09843, allocations: 261.1 kB / 318.4 MB, free: 6.707 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 3.383e-06/0.09845, allocations: 0 / 318.4 MB, free: 6.707 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.002036/0.1005, allocations: 0.6309 MB / 319 MB, free: 6.047 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.1006, allocations: 114.8 kB / 319.1 MB, free: 5.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005443/0.1012, allocations: 337.6 kB / 319.4 MB, free: 5.574 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.998e-05/0.1013, allocations: 41.7 kB / 319.5 MB, free: 5.527 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.1015, allocations: 270.8 kB / 319.8 MB, free: 5.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.1017, allocations: 110.5 kB / 319.9 MB, free: 5.152 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-05/0.1017, allocations: 8 kB / 319.9 MB, free: 5.145 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1019, allocations: 326.8 kB / 320.2 MB, free: 4.816 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000372/0.1023, allocations: 116.8 kB / 320.3 MB, free: 4.703 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.1028, allocations: 255.6 kB / 320.6 MB, free: 4.395 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004357/0.1032, allocations: 170.7 kB / 320.7 MB, free: 4.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.723e-06/0.1033, allocations: 7.938 kB / 320.7 MB, free: 4.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001224/0.1045, allocations: 476.3 kB / 321.2 MB, free: 3.734 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002002/0.1047, allocations: 215.6 kB / 321.4 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.1047, allocations: 8 kB / 321.4 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003711/0.1051, allocations: 72.81 kB / 321.5 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003367/0.1055, allocations: 63.91 kB / 321.5 MB, free: 3.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/0.108, allocations: 1.733 MB / 323.3 MB, free: 1.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.1084, allocations: 55.72 kB / 323.3 MB, free: 1.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.945e-05/0.1085, allocations: 20 kB / 323.3 MB, free: 1.379 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.092e-06/0.1085, allocations: 0.9375 kB / 323.3 MB, free: 1.379 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001027/0.1095, allocations: 410.3 kB / 323.8 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.499e-06/0.1096, allocations: 4 kB / 323.8 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.1099, allocations: 68.83 kB / 323.8 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.1102, allocations: 63.91 kB / 323.9 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002359/0.1125, allocations: 1.714 MB / 325.6 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.1129, allocations: 47.8 kB / 325.6 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.982e-05/0.113, allocations: 12 kB / 325.7 MB, free: 14.93 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,$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 (45): * Single equations (assignments): 43 * 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.000411/0.1134, allocations: 259.2 kB / 325.9 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.1135, allocations: 39.53 kB / 325.9 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.1136, allocations: 44.06 kB / 326 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.107e-06/0.1136, allocations: 8 kB / 326 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1137, allocations: 3.953 kB / 326 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.433e-06/0.1137, allocations: 0 / 326 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.1157, allocations: 0.9213 MB / 326.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.372e-06/0.1157, allocations: 0 / 326.9 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.116, allocations: 43.91 kB / 327 MB, free: 13.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003116/0.1164, allocations: 72.77 kB / 327 MB, free: 13.47 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.934e-05/0.1164, allocations: 8 kB / 327 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/0.1189, allocations: 1.71 MB / 328.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1189, allocations: 3.938 kB / 328.8 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001547/0.1205, allocations: 0.6349 MB / 329.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002648/0.1208, allocations: 144.7 kB / 329.5 MB, free: 10.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.849e-05/0.1209, allocations: 12 kB / 329.5 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.1213, allocations: 31.97 kB / 329.6 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.1214, allocations: 31.95 kB / 329.6 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-05/0.1215, allocations: 12 kB / 329.6 MB, free: 10.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003676/0.1218, allocations: 239.1 kB / 329.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.1219, allocations: 0 / 329.9 MB, free: 10.48 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001113/0.123, allocations: 203.4 kB / 330.1 MB, free: 10.28 MB / 282.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.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 (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.0002195/0.1232, allocations: 131 kB / 330.2 MB, free: 10.14 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00201/0.1252, allocations: 0.8849 MB / 331.1 MB, free: 9.211 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.337e-06/0.1253, allocations: 0 / 331.1 MB, free: 9.211 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006842/0.126, allocations: 310.9 kB / 331.4 MB, free: 8.895 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.1265, allocations: 57.3 kB / 331.4 MB, free: 8.836 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.1289, allocations: 1.06 MB / 332.5 MB, free: 7.734 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006022/0.1296, allocations: 0.8312 MB / 333.3 MB, free: 6.875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.1297, allocations: 27.44 kB / 333.3 MB, free: 6.848 MB / 282.7 MB Notification: Performance of SimCode: time 2.082e-06/0.1297, allocations: 0 / 333.3 MB, free: 6.848 MB / 282.7 MB Notification: Performance of Templates: time 0.01291/0.1427, allocations: 6.684 MB / 340 MB, free: 180 kB / 282.7 MB