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.73/1.73, allocations: 194.9 MB / 211.7 MB, free: 2.969 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003821/0.0003822, allocations: 12 kB / 264 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08408/0.08449, allocations: 44.5 MB / 308.5 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3292/0.4137, allocations: 77.71 MB / 386.2 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.414, allocations: 87.8 kB / 386.3 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02357/0.4376, allocations: 6.609 MB / 392.9 MB, free: 17.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.819e-06/0.4377, allocations: 0 / 392.9 MB, free: 17.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.161e-05/0.4377, allocations: 15.94 kB / 392.9 MB, free: 17.98 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001177/0.4389, allocations: 0.7167 MB / 393.6 MB, free: 17.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.4389, allocations: 7.438 kB / 393.6 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.4391, allocations: 58.02 kB / 393.7 MB, free: 17.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005108/0.4396, allocations: 350.2 kB / 394 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.4397, allocations: 31.5 kB / 394 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.458e-05/0.4397, allocations: 41.97 kB / 394.1 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008926/0.4406, allocations: 440.4 kB / 394.5 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.4407, allocations: 4 kB / 394.5 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.727e-05/0.4408, allocations: 15.75 kB / 394.5 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.4408, allocations: 11.72 kB / 394.5 MB, free: 17.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008641/0.4417, allocations: 308.2 kB / 394.8 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002445/0.4441, allocations: 1.6 MB / 396.4 MB, free: 16.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007462/0.4449, allocations: 289.3 kB / 396.7 MB, free: 16.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.883e-05/0.4449, allocations: 3.812 kB / 396.7 MB, free: 16.25 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004698/0.4454, allocations: 238.4 kB / 397 MB, free: 16.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.655e-06/0.4454, allocations: 0 / 397 MB, free: 16.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001589/0.447, allocations: 0.5677 MB / 397.5 MB, free: 16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.12e-05/0.4471, allocations: 109.6 kB / 397.6 MB, free: 15.88 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/0.4476, allocations: 323.4 kB / 398 MB, free: 15.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.186e-05/0.4476, allocations: 32.8 kB / 398 MB, free: 15.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.4478, allocations: 261.1 kB / 398.2 MB, free: 15.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.858e-05/0.4479, allocations: 112.5 kB / 398.3 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.4479, allocations: 3.5 kB / 398.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.863e-05/0.448, allocations: 328.8 kB / 398.7 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.4483, allocations: 117.6 kB / 398.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004179/0.4488, allocations: 243.7 kB / 399 MB, free: 15.01 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.4492, allocations: 159.1 kB / 399.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.4492, allocations: 7.328 kB / 399.2 MB, free: 14.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001077/0.4503, allocations: 464.5 kB / 399.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002625/0.4506, allocations: 1.337 MB / 401 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.4506, allocations: 4.719 kB / 401 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003649/0.451, allocations: 73.81 kB / 401.1 MB, free: 13.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.4513, allocations: 68.97 kB / 401.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001967/0.4533, allocations: 1.779 MB / 402.9 MB, free: 12.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004957/0.4538, allocations: 61.39 kB / 403 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.4538, allocations: 19.06 kB / 403 MB, free: 12.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.4539, allocations: 12.08 kB / 403 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009109/0.4548, allocations: 399.4 kB / 403.4 MB, free: 11.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.359e-06/0.4548, allocations: 11.84 kB / 403.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002897/0.4551, allocations: 75.03 kB / 403.5 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.4554, allocations: 58.52 kB / 403.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.4573, allocations: 1.765 MB / 405.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.4576, allocations: 49.78 kB / 405.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.4577, allocations: 15.25 kB / 405.4 MB, free: 10.58 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 (40): * Single equations (assignments): 38 * 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.0003284/0.458, allocations: 260.6 kB / 405.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.999e-05/0.4581, allocations: 34.91 kB / 405.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.245e-05/0.4582, allocations: 40.44 kB / 405.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.571e-06/0.4583, allocations: 3.875 kB / 405.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.4583, allocations: 4 kB / 405.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.628e-06/0.4583, allocations: 3.75 kB / 405.7 MB, free: 10.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.4597, allocations: 0.8558 MB / 406.5 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.976e-06/0.4597, allocations: 0 / 406.5 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.4599, allocations: 34.98 kB / 406.6 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002868/0.4603, allocations: 76.58 kB / 406.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.4603, allocations: 6.625 kB / 406.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001861/0.4622, allocations: 1.783 MB / 408.4 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.19e-06/0.4622, allocations: 0 / 408.4 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.4635, allocations: 0.5708 MB / 409 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/0.4637, allocations: 151.5 kB / 409.2 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.931e-05/0.4638, allocations: 11.73 kB / 409.2 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003994/0.4642, allocations: 30.8 kB / 409.2 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.4643, allocations: 36.97 kB / 409.2 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.311e-05/0.4643, allocations: 19.27 kB / 409.3 MB, free: 8.324 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003787/0.4647, allocations: 249.6 kB / 409.5 MB, free: 8.246 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.49e-07/0.4648, allocations: 0 / 409.5 MB, free: 8.246 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001071/0.4658, allocations: 198.2 kB / 409.7 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: 2 (meanCurrent.x,meanVoltage.x) * 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 (26): * Single equations (assignments): 19 * 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.0001657/0.466, allocations: 125.6 kB / 409.8 MB, free: 8.125 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.4679, allocations: 0.8745 MB / 410.7 MB, free: 23.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.815e-06/0.4679, allocations: 0 / 410.7 MB, free: 23.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000553/0.4685, allocations: 288.4 kB / 411 MB, free: 23.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004571/0.469, allocations: 56.7 kB / 411 MB, free: 23.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.4707, allocations: 0.9162 MB / 411.9 MB, free: 23.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.4712, allocations: 0.8262 MB / 412.8 MB, free: 22.38 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.4713, allocations: 30.22 kB / 412.8 MB, free: 22.38 MB / 330.7 MB Notification: Performance of SimCode: time 1.938e-06/0.4713, allocations: 0 / 412.8 MB, free: 22.38 MB / 330.7 MB Notification: Performance of Templates: time 0.04115/0.5125, allocations: 6.491 MB / 419.3 MB, free: 20.06 MB / 330.7 MB