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_RL.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_RL,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.862/1.862, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005393/0.0005392, allocations: 12 kB / 264.1 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1042, allocations: 44.5 MB / 308.6 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4293/0.5335, allocations: 78.02 MB / 386.6 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.5339, allocations: 90.52 kB / 386.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02687/0.5608, allocations: 6.945 MB / 393.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.5608, allocations: 0 / 393.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.585e-05/0.5609, allocations: 7.781 kB / 393.6 MB, free: 13.7 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001666/0.5626, allocations: 0.7408 MB / 394.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.5626, allocations: 7.781 kB / 394.4 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001218/0.5628, allocations: 80.31 kB / 394.4 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.5629, allocations: 62.58 kB / 394.5 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006374/0.5635, allocations: 360.2 kB / 394.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.5636, allocations: 40.62 kB / 394.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.629e-05/0.5637, allocations: 44.67 kB / 394.9 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.5648, allocations: 455.2 kB / 395.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.5649, allocations: 3.875 kB / 395.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.416e-05/0.5649, allocations: 17.06 kB / 395.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.5649, allocations: 7.75 kB / 395.4 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009946/0.566, allocations: 330.7 kB / 395.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003139/0.5691, allocations: 1.662 MB / 397.4 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009825/0.5701, allocations: 314.5 kB / 397.7 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.5702, allocations: 3.969 kB / 397.7 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005584/0.5707, allocations: 239.4 kB / 397.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.775e-06/0.5708, allocations: 4 kB / 397.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002036/0.5728, allocations: 0.5685 MB / 398.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.5729, allocations: 110.1 kB / 398.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005505/0.5734, allocations: 323.5 kB / 398.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.571e-05/0.5735, allocations: 39.47 kB / 399 MB, free: 11.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.5737, allocations: 273.2 kB / 399.2 MB, free: 11.17 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/0.5738, allocations: 102.8 kB / 399.3 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.057e-05/0.5739, allocations: 7.188 kB / 399.3 MB, free: 11.11 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.11e-05/0.5739, allocations: 332.3 kB / 399.7 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000418/0.5744, allocations: 124.6 kB / 399.8 MB, free: 10.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.5749, allocations: 245.9 kB / 400 MB, free: 10.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005011/0.5754, allocations: 177.4 kB / 400.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.5754, allocations: 0 / 400.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00122/0.5766, allocations: 467.2 kB / 400.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002957/0.5769, allocations: 1.339 MB / 402 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.577, allocations: 0 / 402 MB, free: 9.078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004064/0.5774, allocations: 80.25 kB / 402.1 MB, free: 9.066 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004465/0.5778, allocations: 67.84 kB / 402.1 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001977/0.5798, allocations: 1.718 MB / 403.9 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006463/0.5805, allocations: 69.41 kB / 403.9 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.5806, allocations: 18.62 kB / 404 MB, free: 7.668 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.5806, allocations: 3.812 kB / 404 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001028/0.5816, allocations: 418.4 kB / 404.4 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5817, allocations: 7.844 kB / 404.4 MB, free: 7.594 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002991/0.582, allocations: 70.75 kB / 404.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.5824, allocations: 61 kB / 404.5 MB, free: 7.582 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001929/0.5843, allocations: 1.703 MB / 406.2 MB, free: 6.219 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005032/0.5848, allocations: 48.09 kB / 406.3 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.5849, allocations: 17.66 kB / 406.3 MB, free: 6.207 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 (44): * Single equations (assignments): 42 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004024/0.5853, allocations: 255 kB / 406.5 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.5854, allocations: 46.78 kB / 406.6 MB, free: 5.984 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.5856, allocations: 40.92 kB / 406.6 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.5856, allocations: 3.969 kB / 406.6 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.5856, allocations: 3.953 kB / 406.6 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.5856, allocations: 8.641 kB / 406.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/0.5873, allocations: 0.8793 MB / 407.5 MB, free: 5.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.5874, allocations: 3.984 kB / 407.5 MB, free: 5.645 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.5877, allocations: 40.75 kB / 407.5 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003164/0.5881, allocations: 63.81 kB / 407.6 MB, free: 5.633 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.5881, allocations: 18.53 kB / 407.6 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002032/0.5902, allocations: 1.7 MB / 409.3 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5902, allocations: 3.938 kB / 409.3 MB, free: 20.27 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.5917, allocations: 0.5781 MB / 409.9 MB, free: 20.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/0.5919, allocations: 154.2 kB / 410.1 MB, free: 19.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.744e-05/0.592, allocations: 10.48 kB / 410.1 MB, free: 19.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004746/0.5925, allocations: 31.7 kB / 410.1 MB, free: 19.97 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.5927, allocations: 37.28 kB / 410.1 MB, free: 19.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.328e-05/0.5927, allocations: 10.16 kB / 410.1 MB, free: 19.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004602/0.5932, allocations: 259.9 kB / 410.4 MB, free: 19.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5932, allocations: 0 / 410.4 MB, free: 19.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001132/0.5944, allocations: 210.8 kB / 410.6 MB, free: 19.86 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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 (29): * Single equations (assignments): 22 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00185/0.5962, allocations: 1.149 MB / 411.8 MB, free: 19.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.5982, allocations: 0.8764 MB / 412.6 MB, free: 18.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.5983, allocations: 448 / 412.6 MB, free: 18.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006091/0.5989, allocations: 291.2 kB / 412.9 MB, free: 18.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000634/0.5995, allocations: 56.12 kB / 413 MB, free: 18.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003773/0.6033, allocations: 3.518 MB / 416.5 MB, free: 15.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.6039, allocations: 0.8295 MB / 417.3 MB, free: 14.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003136/0.6043, allocations: 140.9 kB / 417.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6043, allocations: 0 / 417.5 MB, free: 14.87 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.755/3.359, allocations: 8.419 MB / 425.9 MB, free: 10.75 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_RL_res.mat does not exist to compare? outputFormat=mat