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_R.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_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003505, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1046, allocations: 44.51 MB / 308.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004423/0.1091, allocations: 2.869 MB / 311.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.1109, allocations: 0.8894 MB / 312.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.1112, allocations: 11.94 kB / 312.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.1114, allocations: 47.61 kB / 312.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003304/0.1118, allocations: 135.6 kB / 312.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005765/0.1124, allocations: 135.7 kB / 312.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005843/0.113, allocations: 363.1 kB / 312.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003628/0.1133, allocations: 153.1 kB / 313 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002388/0.1136, allocations: 155.3 kB / 313.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002784/0.1139, allocations: 179.1 kB / 313.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.528e-05/0.114, allocations: 24 kB / 313.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.336e-05/0.1141, allocations: 20 kB / 313.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.1142, allocations: 67.69 kB / 313.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.1143, allocations: 113.4 kB / 313.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005744/0.1149, allocations: 431.1 kB / 313.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.534e-06/0.1149, allocations: 0 / 313.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.115, allocations: 7.938 kB / 313.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.091e-06/0.115, allocations: 0 / 313.9 MB, free: 11.4 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.001476/0.1165, allocations: 0.7051 MB / 314.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1165, allocations: 12.02 kB / 314.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.1167, allocations: 55.34 kB / 314.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000661/0.1173, allocations: 355.1 kB / 315.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.052e-05/0.1174, allocations: 44.98 kB / 315.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.564e-05/0.1175, allocations: 39.91 kB / 315.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.1186, allocations: 432.7 kB / 315.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.1186, allocations: 4 kB / 315.6 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.549e-05/0.1187, allocations: 19.98 kB / 315.6 MB, free: 9.637 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.1187, allocations: 15.94 kB / 315.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008666/0.1196, allocations: 291.9 kB / 315.9 MB, free: 9.336 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003076/0.1227, allocations: 1.589 MB / 317.5 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008587/0.1236, allocations: 298.7 kB / 317.8 MB, free: 7.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.466e-05/0.1236, allocations: 8 kB / 317.8 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006345/0.1243, allocations: 237 kB / 318 MB, free: 7.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 3.362e-06/0.1243, allocations: 4 kB / 318 MB, free: 7.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002085/0.1264, allocations: 0.6311 MB / 318.6 MB, free: 6.426 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.1265, allocations: 122.8 kB / 318.8 MB, free: 6.281 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005435/0.1271, allocations: 328.5 kB / 319.1 MB, free: 5.953 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.853e-05/0.1272, allocations: 37.7 kB / 319.1 MB, free: 5.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002241/0.1274, allocations: 259 kB / 319.4 MB, free: 5.656 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.1276, allocations: 106.5 kB / 319.5 MB, free: 5.551 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.1276, allocations: 8 kB / 319.5 MB, free: 5.543 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1278, allocations: 322.8 kB / 319.8 MB, free: 5.219 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003677/0.1282, allocations: 116.8 kB / 319.9 MB, free: 5.105 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000485/0.1287, allocations: 247.7 kB / 320.2 MB, free: 4.805 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.1291, allocations: 149.7 kB / 320.3 MB, free: 4.652 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.1291, allocations: 11.95 kB / 320.3 MB, free: 4.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001208/0.1303, allocations: 463.9 kB / 320.8 MB, free: 4.172 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002066/0.1306, allocations: 223.7 kB / 321 MB, free: 3.895 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.1306, allocations: 0 / 321 MB, free: 3.895 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004416/0.1311, allocations: 80.75 kB / 321.1 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/0.1314, allocations: 59.91 kB / 321.1 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/0.1341, allocations: 1.788 MB / 322.9 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004301/0.1345, allocations: 51.67 kB / 323 MB, free: 1.781 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-05/0.1346, allocations: 19.98 kB / 323 MB, free: 1.762 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.1346, allocations: 4 kB / 323 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009934/0.1356, allocations: 394.2 kB / 323.4 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.1357, allocations: 4.312 kB / 323.4 MB, free: 1.359 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003138/0.136, allocations: 81.41 kB / 323.5 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.1363, allocations: 63.84 kB / 323.5 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002529/0.1388, allocations: 1.78 MB / 325.3 MB, free: 15.3 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.1392, allocations: 43.77 kB / 325.3 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.1392, allocations: 19.94 kB / 325.4 MB, free: 15.23 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.0003942/0.1396, allocations: 251.3 kB / 325.6 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.741e-05/0.1397, allocations: 39.52 kB / 325.6 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.1398, allocations: 44.06 kB / 325.7 MB, free: 14.9 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.272e-06/0.1399, allocations: 4 kB / 325.7 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1399, allocations: 3.953 kB / 325.7 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.881e-06/0.1399, allocations: 0 / 325.7 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00195/0.1419, allocations: 0.9049 MB / 326.6 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.1419, allocations: 0 / 326.6 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002218/0.1421, allocations: 31.98 kB / 326.6 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003367/0.1425, allocations: 80.78 kB / 326.7 MB, free: 13.81 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.79e-05/0.1425, allocations: 11.94 kB / 326.7 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002566/0.1451, allocations: 1.784 MB / 328.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.502e-06/0.1451, allocations: 0 / 328.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.1466, allocations: 0.6176 MB / 329.1 MB, free: 11.25 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.1469, allocations: 140.5 kB / 329.3 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.604e-05/0.147, allocations: 11.98 kB / 329.3 MB, free: 11.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003607/0.1474, allocations: 31.98 kB / 329.3 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.1475, allocations: 27.95 kB / 329.3 MB, free: 11.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.1475, allocations: 15.98 kB / 329.3 MB, free: 11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003619/0.1479, allocations: 235.1 kB / 329.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.36e-07/0.1479, allocations: 0 / 329.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001092/0.149, allocations: 191.5 kB / 329.8 MB, free: 10.59 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (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 Backend phase and start with SimCode phase: time 0.0002005/0.1492, allocations: 122.9 kB / 329.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.1512, allocations: 0.8817 MB / 330.8 MB, free: 9.523 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.795e-06/0.1512, allocations: 0 / 330.8 MB, free: 9.523 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000664/0.1519, allocations: 307.4 kB / 331.1 MB, free: 9.211 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004776/0.1524, allocations: 49.41 kB / 331.1 MB, free: 9.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.1546, allocations: 0.9336 MB / 332 MB, free: 8.191 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005943/0.1552, allocations: 0.8235 MB / 332.9 MB, free: 7.34 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1553, allocations: 27.44 kB / 332.9 MB, free: 7.312 MB / 282.7 MB Notification: Performance of SimCode: time 1.695e-06/0.1553, allocations: 3.938 kB / 332.9 MB, free: 7.309 MB / 282.7 MB Notification: Performance of Templates: time 0.01199/0.1673, allocations: 6.449 MB / 339.3 MB, free: 0.8711 MB / 282.7 MB