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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.857/1.857, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003597, allocations: 12 kB / 264.1 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.09276, allocations: 44.5 MB / 308.6 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4455/0.5383, allocations: 77.71 MB / 386.3 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004778/0.5389, allocations: 90.7 kB / 386.4 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02687/0.5658, allocations: 6.61 MB / 393 MB, free: 13.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.5658, allocations: 0 / 393 MB, free: 13.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.551e-05/0.5658, allocations: 19.23 kB / 393 MB, free: 13.55 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.00166/0.5675, allocations: 0.7045 MB / 393.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.5676, allocations: 7.75 kB / 393.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.5677, allocations: 82.89 kB / 393.8 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.5679, allocations: 54.55 kB / 393.8 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005919/0.5685, allocations: 357.5 kB / 394.2 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.5685, allocations: 35.53 kB / 394.2 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.119e-05/0.5686, allocations: 44.59 kB / 394.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.5697, allocations: 431 kB / 394.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.5697, allocations: 0 / 394.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-05/0.5698, allocations: 26.89 kB / 394.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.5698, allocations: 7.688 kB / 394.7 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009482/0.5708, allocations: 306.7 kB / 395 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003075/0.5739, allocations: 1.603 MB / 396.6 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009035/0.5748, allocations: 286.6 kB / 396.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.5749, allocations: 0 / 396.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005516/0.5755, allocations: 244.4 kB / 397.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 2.224e-06/0.5755, allocations: 3.938 kB / 397.1 MB, free: 11.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.002042/0.5775, allocations: 0.5588 MB / 397.7 MB, free: 11.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.5776, allocations: 113.8 kB / 397.8 MB, free: 11.4 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005451/0.5782, allocations: 326.3 kB / 398.1 MB, free: 11.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.03e-05/0.5782, allocations: 36.61 kB / 398.2 MB, free: 11.26 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.5784, allocations: 256.6 kB / 398.4 MB, free: 11.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.765e-05/0.5785, allocations: 104 kB / 398.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.5785, allocations: 7.312 kB / 398.5 MB, free: 11.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.924e-05/0.5786, allocations: 329.4 kB / 398.8 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.579, allocations: 122.4 kB / 399 MB, free: 10.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004687/0.5795, allocations: 244.2 kB / 399.2 MB, free: 10.54 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004441/0.58, allocations: 157.9 kB / 399.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.58, allocations: 0 / 399.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.00122/0.5812, allocations: 469.6 kB / 399.8 MB, free: 10.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002721/0.5815, allocations: 1.336 MB / 401.1 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.5815, allocations: 3.75 kB / 401.2 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/0.582, allocations: 83.84 kB / 401.2 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.5824, allocations: 59.97 kB / 401.3 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00212/0.5845, allocations: 1.78 MB / 403.1 MB, free: 7.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006532/0.5852, allocations: 70.73 kB / 403.1 MB, free: 7.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.5853, allocations: 18.67 kB / 403.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.5853, allocations: 4.562 kB / 403.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009886/0.5863, allocations: 402.7 kB / 403.6 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.5863, allocations: 4.156 kB / 403.6 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000316/0.5866, allocations: 86.34 kB / 403.6 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003159/0.587, allocations: 56.83 kB / 403.7 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/0.589, allocations: 1.762 MB / 405.5 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004692/0.5895, allocations: 48.36 kB / 405.5 MB, free: 6.105 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.539e-05/0.5895, allocations: 14.84 kB / 405.5 MB, free: 6.105 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.0003782/0.5899, allocations: 261.1 kB / 405.8 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.5901, allocations: 35.12 kB / 405.8 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.5902, allocations: 42.33 kB / 405.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.5902, allocations: 3.656 kB / 405.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5902, allocations: 0 / 405.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.5902, allocations: 3.469 kB / 405.9 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001635/0.5919, allocations: 0.8587 MB / 406.7 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5919, allocations: 0 / 406.7 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.5922, allocations: 23.95 kB / 406.7 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000371/0.5926, allocations: 83.78 kB / 406.8 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.5926, allocations: 13.83 kB / 406.8 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/0.5949, allocations: 1.776 MB / 408.6 MB, free: 20.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5949, allocations: 7.656 kB / 408.6 MB, free: 20.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.5963, allocations: 0.5687 MB / 409.2 MB, free: 19.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002415/0.5966, allocations: 146.9 kB / 409.3 MB, free: 19.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.958e-05/0.5967, allocations: 15.08 kB / 409.3 MB, free: 19.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.5972, allocations: 26.45 kB / 409.4 MB, free: 19.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.5973, allocations: 32.58 kB / 409.4 MB, free: 19.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.683e-05/0.5974, allocations: 14.55 kB / 409.4 MB, free: 19.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004651/0.5978, allocations: 255.8 kB / 409.7 MB, free: 19.78 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5979, allocations: 0 / 409.7 MB, free: 19.78 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001106/0.599, allocations: 199.7 kB / 409.9 MB, free: 19.75 MB / 330.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.001693/0.6007, allocations: 1.127 MB / 411 MB, free: 19.05 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001998/0.6027, allocations: 0.8836 MB / 411.9 MB, free: 18.65 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.6027, allocations: 4.062 kB / 411.9 MB, free: 18.64 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006268/0.6034, allocations: 286.8 kB / 412.2 MB, free: 18.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005913/0.604, allocations: 68.12 kB / 412.2 MB, free: 18.51 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003448/0.6075, allocations: 3.4 MB / 415.6 MB, free: 15.55 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.608, allocations: 0.8221 MB / 416.4 MB, free: 14.85 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003058/0.6083, allocations: 129.8 kB / 416.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6083, allocations: 3.938 kB / 416.6 MB, free: 14.84 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.964/3.572, allocations: 8.125 MB / 424.7 MB, free: 11.09 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat