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.087/2.087, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003892/0.0003893, allocations: 12 kB / 264.6 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09856, allocations: 44.5 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4263/0.525, allocations: 77.71 MB / 386.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/0.5253, allocations: 90.95 kB / 386.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02574/0.5511, allocations: 6.607 MB / 393.5 MB, free: 14.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5511, allocations: 0 / 393.5 MB, free: 14.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.13e-05/0.5512, allocations: 11.97 kB / 393.5 MB, free: 14.68 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.001644/0.5528, allocations: 0.7225 MB / 394.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.5529, allocations: 11.66 kB / 394.2 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.5531, allocations: 54.7 kB / 394.3 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.5537, allocations: 342.8 kB / 394.6 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.5538, allocations: 34.42 kB / 394.6 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.51e-05/0.5539, allocations: 44.97 kB / 394.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.555, allocations: 440.7 kB / 395.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.5551, allocations: 0 / 395.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/0.5552, allocations: 18.75 kB / 395.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.5552, allocations: 7.594 kB / 395.1 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009846/0.5562, allocations: 312.6 kB / 395.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003289/0.5595, allocations: 1.609 MB / 397.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.5606, allocations: 312.1 kB / 397.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.117e-05/0.5606, allocations: 4.438 kB / 397.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007008/0.5613, allocations: 249.9 kB / 397.6 MB, free: 12.87 MB / 314.7 MB Notification: Performance of pre-optimization done (n=35): time 3.076e-06/0.5614, allocations: 0 / 397.6 MB, free: 12.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=35): time 0.00239/0.5638, allocations: 0.6252 MB / 398.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.601e-05/0.5639, allocations: 109.9 kB / 398.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004637/0.5643, allocations: 332.5 kB / 398.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.966e-05/0.5644, allocations: 39.48 kB / 398.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.5646, allocations: 205.1 kB / 398.9 MB, free: 12.31 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.947e-05/0.5647, allocations: 103.1 kB / 399 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.898e-05/0.5647, allocations: 6.812 kB / 399 MB, free: 12.25 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.724e-05/0.5648, allocations: 354.9 kB / 399.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000427/0.5653, allocations: 116.2 kB / 399.5 MB, free: 11.93 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004721/0.5657, allocations: 240.2 kB / 399.7 MB, free: 11.78 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000458/0.5662, allocations: 160.3 kB / 399.9 MB, free: 11.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.5662, allocations: 0 / 399.9 MB, free: 11.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001291/0.5675, allocations: 490 kB / 400.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/0.5677, allocations: 211.4 kB / 400.5 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.5677, allocations: 7.359 kB / 400.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004477/0.5682, allocations: 75.5 kB / 400.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/0.5686, allocations: 58.12 kB / 400.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002286/0.5709, allocations: 1.795 MB / 402.5 MB, free: 9.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005663/0.5715, allocations: 46.11 kB / 402.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.934e-05/0.5715, allocations: 14.84 kB / 402.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.328e-06/0.5716, allocations: 3.75 kB / 402.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001077/0.5726, allocations: 412 kB / 402.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.5727, allocations: 3.812 kB / 402.9 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003973/0.5731, allocations: 77.73 kB / 403 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003639/0.5735, allocations: 57.88 kB / 403.1 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002144/0.5756, allocations: 1.781 MB / 404.9 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000513/0.5762, allocations: 46.2 kB / 404.9 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/0.5762, allocations: 17.91 kB / 404.9 MB, free: 8.488 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.0003767/0.5766, allocations: 256.3 kB / 405.2 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.093e-05/0.5767, allocations: 38.7 kB / 405.2 MB, free: 8.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.5768, allocations: 39.64 kB / 405.3 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5769, allocations: 3.781 kB / 405.3 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5769, allocations: 0 / 405.3 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.5769, allocations: 3.188 kB / 405.3 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.5788, allocations: 0.9381 MB / 406.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-06/0.5788, allocations: 0 / 406.2 MB, free: 7.906 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/0.5791, allocations: 37.11 kB / 406.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003456/0.5795, allocations: 81.95 kB / 406.3 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.595e-05/0.5795, allocations: 3.5 kB / 406.3 MB, free: 7.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002104/0.5817, allocations: 1.765 MB / 408.1 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5817, allocations: 0 / 408.1 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.5833, allocations: 0.642 MB / 408.7 MB, free: 6.336 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002123/0.5836, allocations: 148.9 kB / 408.9 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.443e-05/0.5837, allocations: 12.12 kB / 408.9 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/0.5842, allocations: 28.33 kB / 408.9 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.5843, allocations: 37.7 kB / 408.9 MB, free: 6.215 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.385e-05/0.5844, allocations: 14.11 kB / 409 MB, free: 6.215 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000323/0.5847, allocations: 225.8 kB / 409.2 MB, free: 6.133 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5847, allocations: 3.875 kB / 409.2 MB, free: 6.133 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001122/0.5858, allocations: 202.3 kB / 409.4 MB, free: 6.105 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.0002109/0.5861, allocations: 132.5 kB / 409.5 MB, free: 6.004 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.5882, allocations: 0.8893 MB / 410.4 MB, free: 5.609 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5882, allocations: 0 / 410.4 MB, free: 5.609 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007279/0.589, allocations: 313.3 kB / 410.7 MB, free: 5.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006115/0.5896, allocations: 62 kB / 410.8 MB, free: 5.473 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.5917, allocations: 0.9052 MB / 411.7 MB, free: 4.988 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.5921, allocations: 0.8195 MB / 412.5 MB, free: 4.285 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003097/0.5924, allocations: 47.12 kB / 412.5 MB, free: 4.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.5925, allocations: 26.81 kB / 412.6 MB, free: 4.262 MB / 314.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5925, allocations: 0 / 412.6 MB, free: 4.262 MB / 314.7 MB Notification: Performance of Templates: time 0.01718/0.6097, allocations: 5.956 MB / 418.5 MB, free: 1.359 MB / 314.7 MB