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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2/2, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003442, allocations: 8 kB / 264.1 MB, free: 3.461 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.3996, allocations: 44.5 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1916/0.5912, allocations: 77.72 MB / 386.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/0.5916, allocations: 91.94 kB / 386.4 MB, free: 14.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0297/0.6213, allocations: 6.598 MB / 393 MB, free: 8.207 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.6214, allocations: 224 / 393 MB, free: 8.207 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.629e-05/0.6215, allocations: 15.94 kB / 393 MB, free: 8.191 MB / 330.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.002147/0.6236, allocations: 0.7178 MB / 393.7 MB, free: 7.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.36e-05/0.6237, allocations: 12.03 kB / 393.7 MB, free: 7.406 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002555/0.624, allocations: 78.52 kB / 393.8 MB, free: 7.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.6242, allocations: 55.3 kB / 393.9 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009906/0.6252, allocations: 359 kB / 394.2 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/0.6253, allocations: 32.98 kB / 394.3 MB, free: 6.836 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.6254, allocations: 44 kB / 394.3 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.6269, allocations: 432.7 kB / 394.7 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.6269, allocations: 4 kB / 394.7 MB, free: 6.348 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.26e-05/0.627, allocations: 16 kB / 394.7 MB, free: 6.332 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.627, allocations: 8 kB / 394.7 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.6282, allocations: 311.8 kB / 395.1 MB, free: 6.016 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004143/0.6324, allocations: 1.601 MB / 396.7 MB, free: 4.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.6335, allocations: 286.9 kB / 396.9 MB, free: 4.027 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.812e-05/0.6336, allocations: 4 kB / 396.9 MB, free: 4.023 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006754/0.6343, allocations: 227.4 kB / 397.2 MB, free: 3.781 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 5.701e-06/0.6343, allocations: 3.984 kB / 397.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.002375/0.6367, allocations: 0.5744 MB / 397.7 MB, free: 3.176 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.395e-05/0.6368, allocations: 110.8 kB / 397.8 MB, free: 3.043 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007074/0.6376, allocations: 320.8 kB / 398.2 MB, free: 2.723 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.667e-05/0.6377, allocations: 41.7 kB / 398.2 MB, free: 2.676 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002274/0.6379, allocations: 204.5 kB / 398.4 MB, free: 2.473 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.6381, allocations: 106.5 kB / 398.5 MB, free: 2.367 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.412e-05/0.6381, allocations: 8 kB / 398.5 MB, free: 2.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.6383, allocations: 350.8 kB / 398.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005343/0.6389, allocations: 116.8 kB / 399 MB, free: 1.895 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005886/0.6395, allocations: 249.7 kB / 399.2 MB, free: 1.598 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005336/0.64, allocations: 159.9 kB / 399.4 MB, free: 1.438 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.016e-06/0.64, allocations: 4 kB / 399.4 MB, free: 1.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001507/0.6416, allocations: 483.8 kB / 399.8 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006941/0.6423, allocations: 1.34 MB / 401.2 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.6423, allocations: 7.938 kB / 401.2 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005775/0.6429, allocations: 80.75 kB / 401.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/0.6434, allocations: 59.91 kB / 401.3 MB, free: 15.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002909/0.6464, allocations: 1.768 MB / 403.1 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007133/0.6472, allocations: 79.56 kB / 403.2 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/0.6472, allocations: 19.95 kB / 403.2 MB, free: 13.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.6473, allocations: 4 kB / 403.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001196/0.6485, allocations: 394.1 kB / 403.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.6485, allocations: 4 kB / 403.6 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003933/0.6489, allocations: 77.25 kB / 403.7 MB, free: 12.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.6493, allocations: 63.84 kB / 403.7 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002836/0.6521, allocations: 1.78 MB / 405.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006034/0.6528, allocations: 47.67 kB / 405.6 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.6529, allocations: 16 kB / 405.6 MB, free: 10.83 MB / 346.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.0004592/0.6533, allocations: 267.6 kB / 405.8 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.6535, allocations: 35.53 kB / 405.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.6536, allocations: 40.06 kB / 405.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.6536, allocations: 4 kB / 405.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6536, allocations: 3.938 kB / 405.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.6536, allocations: 0 / 405.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.6558, allocations: 0.867 MB / 406.8 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.6558, allocations: 0 / 406.8 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.6561, allocations: 23.98 kB / 406.8 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004133/0.6565, allocations: 76.75 kB / 406.9 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.996e-05/0.6566, allocations: 7.984 kB / 406.9 MB, free: 9.441 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002838/0.6595, allocations: 1.785 MB / 408.7 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.6595, allocations: 0 / 408.7 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.6611, allocations: 0.5625 MB / 409.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002794/0.6615, allocations: 148.5 kB / 409.4 MB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.6616, allocations: 20.06 kB / 409.4 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004822/0.6621, allocations: 27.98 kB / 409.4 MB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.6622, allocations: 35.94 kB / 409.5 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.6623, allocations: 12 kB / 409.5 MB, free: 6.684 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005194/0.6628, allocations: 255.2 kB / 409.7 MB, free: 6.438 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6628, allocations: 0 / 409.7 MB, free: 6.438 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001173/0.664, allocations: 203.6 kB / 409.9 MB, free: 6.238 MB / 346.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.002029/0.6661, allocations: 1.131 MB / 411 MB, free: 5.078 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002391/0.6685, allocations: 0.8849 MB / 411.9 MB, free: 4.145 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.6686, allocations: 0 / 411.9 MB, free: 4.145 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007373/0.6693, allocations: 287 kB / 412.2 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006337/0.67, allocations: 61.34 kB / 412.3 MB, free: 3.793 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.6742, allocations: 3.37 MB / 415.6 MB, free: 312 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2623/0.9366, allocations: 0.8158 MB / 416.5 MB, free: 95.09 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005316/0.9372, allocations: 41.22 kB / 416.5 MB, free: 95.08 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005457/0.9377, allocations: 129.8 kB / 416.6 MB, free: 95.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.482e-06/0.9377, allocations: 1.859 kB / 416.6 MB, free: 95.07 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1085/1.046, allocations: 9.203 MB / 425.8 MB, free: 93.57 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002983/1.047, allocations: 243.2 kB / 426.1 MB, free: 93.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.962/4.009, allocations: 0 / 426.1 MB, free: 93.27 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat