Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadModel(Modelica): time 1.952/1.952, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003857/0.0003858, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09336/0.09377, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.4983, allocations: 77.71 MB / 386.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.4987, allocations: 90.97 kB / 386.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02601/0.5247, allocations: 6.604 MB / 393.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5248, allocations: 0 / 393.4 MB, free: 14.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.229e-05/0.5248, allocations: 19.78 kB / 393.4 MB, free: 14.04 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.001616/0.5264, allocations: 0.7127 MB / 394.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.5265, allocations: 7.25 kB / 394.1 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.5266, allocations: 61.7 kB / 394.2 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.5273, allocations: 345.9 kB / 394.5 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.913e-05/0.5273, allocations: 34.78 kB / 394.6 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.892e-05/0.5274, allocations: 42 kB / 394.6 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.5285, allocations: 446.2 kB / 395 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.5286, allocations: 0 / 395 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.35e-05/0.5286, allocations: 22.08 kB / 395.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.5287, allocations: 11.59 kB / 395.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009737/0.5297, allocations: 306.2 kB / 395.4 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/0.5329, allocations: 1.607 MB / 397 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.5339, allocations: 303.1 kB / 397.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.405e-05/0.534, allocations: 7.734 kB / 397.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006695/0.5347, allocations: 259.6 kB / 397.5 MB, free: 12.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 3.396e-06/0.5347, allocations: 0 / 397.5 MB, free: 12.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=35): time 0.002431/0.5371, allocations: 0.6149 MB / 398.1 MB, free: 12.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.5372, allocations: 114.5 kB / 398.3 MB, free: 11.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004929/0.5377, allocations: 332.7 kB / 398.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.216e-05/0.5378, allocations: 32.73 kB / 398.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.5379, allocations: 258.3 kB / 398.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.741e-05/0.5381, allocations: 108.7 kB / 399 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.5381, allocations: 7.5 kB / 399 MB, free: 11.54 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.784e-05/0.5382, allocations: 325.6 kB / 399.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000417/0.5386, allocations: 124.2 kB / 399.4 MB, free: 11.22 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004837/0.5391, allocations: 241.5 kB / 399.7 MB, free: 11.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004602/0.5396, allocations: 157.3 kB / 399.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.5396, allocations: 0 / 399.8 MB, free: 11.04 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001242/0.5408, allocations: 466.3 kB / 400.3 MB, free: 10.93 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.541, allocations: 210.8 kB / 400.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.541, allocations: 7.781 kB / 400.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004467/0.5415, allocations: 91.92 kB / 400.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.5419, allocations: 53.16 kB / 400.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002203/0.5441, allocations: 1.779 MB / 402.4 MB, free: 9.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005992/0.5447, allocations: 55.78 kB / 402.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.5448, allocations: 18.69 kB / 402.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.237e-06/0.5448, allocations: 3.875 kB / 402.5 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001027/0.5458, allocations: 404.9 kB / 402.9 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.5459, allocations: 3.781 kB / 402.9 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003296/0.5462, allocations: 77.7 kB / 403 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.5465, allocations: 53.48 kB / 403 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.5488, allocations: 1.781 MB / 404.8 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000473/0.5494, allocations: 38.02 kB / 404.8 MB, free: 7.805 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.5494, allocations: 15.44 kB / 404.8 MB, free: 7.805 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.0004656/0.5499, allocations: 257.7 kB / 405.1 MB, free: 7.605 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.55, allocations: 43.05 kB / 405.1 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.5502, allocations: 43.89 kB / 405.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.5502, allocations: 3.875 kB / 405.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.5502, allocations: 0 / 405.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5502, allocations: 0 / 405.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.5524, allocations: 0.9322 MB / 406.1 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.5524, allocations: 0 / 406.1 MB, free: 7.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.5528, allocations: 33.91 kB / 406.1 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003939/0.5532, allocations: 73.92 kB / 406.2 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.656e-05/0.5532, allocations: 13.31 kB / 406.2 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002206/0.5554, allocations: 1.768 MB / 408 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5555, allocations: 0 / 408 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001659/0.5572, allocations: 0.6319 MB / 408.6 MB, free: 5.664 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.5574, allocations: 149.3 kB / 408.8 MB, free: 5.543 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.462e-05/0.5575, allocations: 7.406 kB / 408.8 MB, free: 5.543 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004714/0.558, allocations: 31.94 kB / 408.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.5581, allocations: 41.22 kB / 408.9 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.5582, allocations: 12.19 kB / 408.9 MB, free: 5.535 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003633/0.5586, allocations: 231.6 kB / 409.1 MB, free: 5.457 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5586, allocations: 0 / 409.1 MB, free: 5.457 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001087/0.5597, allocations: 204.7 kB / 409.3 MB, free: 5.426 MB / 314.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.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 (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.0001868/0.5599, allocations: 131.8 kB / 409.4 MB, free: 5.324 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002017/0.5619, allocations: 0.8877 MB / 410.3 MB, free: 4.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.5619, allocations: 4.125 kB / 410.3 MB, free: 4.926 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006802/0.5626, allocations: 311.5 kB / 410.6 MB, free: 4.797 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006038/0.5632, allocations: 71.31 kB / 410.7 MB, free: 4.781 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.5655, allocations: 0.9256 MB / 411.6 MB, free: 4.273 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.566, allocations: 0.8234 MB / 412.4 MB, free: 19.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/0.5662, allocations: 26.91 kB / 412.5 MB, free: 19.56 MB / 330.7 MB Notification: Performance of SimCode: time 1.323e-06/0.5662, allocations: 3.875 kB / 412.5 MB, free: 19.56 MB / 330.7 MB Notification: Performance of Templates: time 0.01215/0.5784, allocations: 6.49 MB / 419 MB, free: 16.67 MB / 330.7 MB