Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadModel(Modelica): time 2.072/2.072, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003369/0.0003369, allocations: 11.94 kB / 264.6 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08699/0.08735, allocations: 44.5 MB / 309.1 MB, free: 344 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004815/0.09221, allocations: 2.873 MB / 311.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.0942, allocations: 0.8894 MB / 312.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002094/0.09443, allocations: 15.88 kB / 312.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.09461, allocations: 47.61 kB / 312.9 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003571/0.09498, allocations: 143.5 kB / 313 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005521/0.09555, allocations: 123.8 kB / 313.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005857/0.09615, allocations: 363.1 kB / 313.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003773/0.09654, allocations: 153.1 kB / 313.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.09678, allocations: 155.3 kB / 313.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002908/0.09708, allocations: 179.1 kB / 314 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.027e-05/0.09717, allocations: 20 kB / 314 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.369e-05/0.09728, allocations: 20 kB / 314 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000112/0.0974, allocations: 75.73 kB / 314.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.09754, allocations: 105.4 kB / 314.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005736/0.09812, allocations: 439.1 kB / 314.6 MB, free: 10.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.09814, allocations: 3.938 kB / 314.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.09815, allocations: 0 / 314.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.493e-06/0.09817, allocations: 0 / 314.6 MB, free: 10.72 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.00169/0.09986, allocations: 0.705 MB / 315.3 MB, free: 9.965 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.09992, allocations: 12.02 kB / 315.4 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.1001, allocations: 55.34 kB / 315.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006749/0.1008, allocations: 355.1 kB / 315.8 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.437e-05/0.1009, allocations: 36.98 kB / 315.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.101, allocations: 43.91 kB / 315.8 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001161/0.1022, allocations: 436.7 kB / 316.3 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.1022, allocations: 4 kB / 316.3 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.818e-05/0.1023, allocations: 19.98 kB / 316.3 MB, free: 8.961 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.1023, allocations: 12 kB / 316.3 MB, free: 8.949 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009885/0.1033, allocations: 295.8 kB / 316.6 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.1065, allocations: 1.589 MB / 318.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009486/0.1075, allocations: 300.9 kB / 318.5 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.1075, allocations: 4 kB / 318.5 MB, free: 6.668 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006831/0.1082, allocations: 244.9 kB / 318.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 3.016e-06/0.1082, allocations: 0 / 318.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002495/0.1107, allocations: 0.6351 MB / 319.3 MB, free: 5.746 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.1108, allocations: 106.8 kB / 319.5 MB, free: 5.617 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004906/0.1113, allocations: 328.5 kB / 319.8 MB, free: 5.289 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.397e-05/0.1114, allocations: 37.7 kB / 319.8 MB, free: 5.246 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001974/0.1116, allocations: 220.5 kB / 320 MB, free: 5.027 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.1117, allocations: 106.5 kB / 320.1 MB, free: 4.922 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.1118, allocations: 8 kB / 320.1 MB, free: 4.914 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1119, allocations: 346.8 kB / 320.5 MB, free: 4.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004051/0.1123, allocations: 112.8 kB / 320.6 MB, free: 4.457 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005276/0.1129, allocations: 239.7 kB / 320.8 MB, free: 4.164 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004773/0.1134, allocations: 161.6 kB / 321 MB, free: 4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.1134, allocations: 4 kB / 321 MB, free: 3.996 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001298/0.1147, allocations: 483.6 kB / 321.5 MB, free: 3.508 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.1149, allocations: 225.6 kB / 321.7 MB, free: 3.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.1149, allocations: 4 kB / 321.7 MB, free: 3.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004265/0.1153, allocations: 76.81 kB / 321.8 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003842/0.1157, allocations: 63.91 kB / 321.8 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002535/0.1183, allocations: 1.78 MB / 323.6 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/0.1187, allocations: 55.66 kB / 323.7 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.1188, allocations: 16 kB / 323.7 MB, free: 1.102 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/0.1188, allocations: 4 kB / 323.7 MB, free: 1.098 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001042/0.1199, allocations: 402.1 kB / 324.1 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1199, allocations: 0 / 324.1 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003437/0.1202, allocations: 81.28 kB / 324.1 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.1206, allocations: 56.05 kB / 324.2 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.1232, allocations: 1.792 MB / 326 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004144/0.1237, allocations: 55.5 kB / 326 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.965e-05/0.1237, allocations: 16 kB / 326.1 MB, free: 14.56 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 (41): * Single equations (assignments): 39 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003597/0.1241, allocations: 259.3 kB / 326.3 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.618e-05/0.1242, allocations: 39.53 kB / 326.4 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.1243, allocations: 40.06 kB / 326.4 MB, free: 14.22 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.1243, allocations: 3.984 kB / 326.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.1243, allocations: 0 / 326.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002173/0.1246, allocations: 144.6 kB / 326.5 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.938e-05/0.1247, allocations: 4 kB / 326.5 MB, free: 14.05 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003967/0.1251, allocations: 31.98 kB / 326.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.1252, allocations: 31.95 kB / 326.6 MB, free: 13.99 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001716/0.1269, allocations: 489.1 kB / 327.1 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001527/0.1285, allocations: 0.6321 MB / 327.7 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004335/0.1289, allocations: 135.8 kB / 327.8 MB, free: 12.72 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003882/0.1293, allocations: 227.1 kB / 328.1 MB, free: 12.5 MB / 282.7 MB Notification: Performance of Backend: time 2.755e-06/0.1293, allocations: 96 / 328.1 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002067/0.1314, allocations: 0.8483 MB / 328.9 MB, free: 11.6 MB / 282.7 MB Notification: Performance of SimCode: time 0.002032/0.1335, allocations: 1.333 MB / 330.2 MB, free: 10.22 MB / 282.7 MB Notification: Performance of Templates: time 0.01795/0.1515, allocations: 6.102 MB / 336.3 MB, free: 4.152 MB / 282.7 MB "" Variables in the reference:time,meanCurrent.x,meanVoltage.x,meanCurrent.y,meanVoltage.y,chopperStepDown.vDC1,chopperStepDown.iDC1,chopperStepDown.vDC2,chopperStepDown.iDC2 Variables in the result:R,chopperStepDown.GoffDiode,chopperStepDown.GoffTransistor,chopperStepDown.RonDiode,chopperStepDown.RonTransistor,chopperStepDown.T,chopperStepDown.VkneeDiode,chopperStepDown.VkneeTransistor,chopperStepDown.andCondition_p.u2,chopperStepDown.constantEnable,chopperStepDown.dc_p1.v,chopperStepDown.diode.Goff,chopperStepDown.diode.Ron,chopperStepDown.diode.T,chopperStepDown.diode.T_heatPort,chopperStepDown.diode.Vknee,chopperStepDown.enableLogic.booleanReplicator.nout,chopperStepDown.enableLogic.booleanReplicator.u,chopperStepDown.enableLogic.booleanReplicator.y[1],chopperStepDown.enableLogic.constantEnable,chopperStepDown.enableLogic.enableConstantSource.k,chopperStepDown.enableLogic.enableConstantSource.y,chopperStepDown.enableLogic.internalEnable[1],chopperStepDown.enableLogic.m,chopperStepDown.enableLogic.useConstantEnable,chopperStepDown.iDC1,chopperStepDown.iDC2,chopperStepDown.m,chopperStepDown.transistor.Goff,chopperStepDown.transistor.Ron,chopperStepDown.transistor.T,chopperStepDown.transistor.T_heatPort,chopperStepDown.transistor.Vknee,chopperStepDown.transistor.p.v,chopperStepDown.useConstantEnable,chopperStepDown.vDC1,chopperStepDown.vDC2,constantVoltage.V,constantVoltage.p.v,constantVoltage.v,f,meanCurrent.f,meanCurrent.t0,meanCurrent.x,meanCurrent.x0,meanCurrent.y,meanCurrent.yGreaterOrEqualZero,meanVoltage.f,meanVoltage.t0,meanVoltage.x,meanVoltage.x0,meanVoltage.y,meanVoltage.yGreaterOrEqualZero,resistor.R,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.v,signalPWM.const.k,signalPWM.const.y,signalPWM.constantDutyCycle,signalPWM.f,signalPWM.limiter.limitsAtInit,signalPWM.limiter.strict,signalPWM.limiter.u,signalPWM.limiter.uMax,signalPWM.limiter.uMin,signalPWM.sawtooth.amplitude,signalPWM.sawtooth.nperiod,signalPWM.sawtooth.offset,signalPWM.sawtooth.period,signalPWM.sawtooth.startTime,signalPWM.startTime,signalPWM.useConstantDutyCycle,signalPWM.zeroOrderHold.samplePeriod,signalPWM.zeroOrderHold.startTime,time