Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001655/0.001656, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009665/0.0009664, allocations: 91.75 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003175/0.0003176, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2403, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09988/0.3402, allocations: 86.05 MB / 487.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.3405, allocations: 92.47 kB / 487.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02867/0.3692, allocations: 10.12 MB / 497.9 MB, free: 148 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3692, allocations: 0 / 497.9 MB, free: 148 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.173e-05/0.3693, allocations: 12 kB / 497.9 MB, free: 136 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001708/0.371, allocations: 0.8444 MB / 498.7 MB, free: 15.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.453e-05/0.3711, allocations: 8.031 kB / 498.7 MB, free: 15.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001412/0.3712, allocations: 86.52 kB / 498.8 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.3714, allocations: 67.25 kB / 498.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006458/0.372, allocations: 403.4 kB / 499.3 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.3721, allocations: 40.98 kB / 499.3 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.254e-05/0.3722, allocations: 48 kB / 499.4 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.3732, allocations: 0.528 MB / 499.9 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.3733, allocations: 4 kB / 499.9 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.924e-05/0.3733, allocations: 16 kB / 499.9 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.3733, allocations: 16 kB / 499.9 MB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008882/0.3742, allocations: 407.7 kB / 0.4886 GB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002916/0.3772, allocations: 1.881 MB / 0.4904 GB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.3783, allocations: 451.5 kB / 0.4909 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.3784, allocations: 4.328 kB / 0.4909 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006654/0.3791, allocations: 297.2 kB / 0.4911 GB, free: 10.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.003e-06/0.3791, allocations: 4 kB / 0.4911 GB, free: 10.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001827/0.3809, allocations: 0.7291 MB / 0.4919 GB, free: 10.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.738e-05/0.381, allocations: 114.8 kB / 0.492 GB, free: 9.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.3814, allocations: 340.7 kB / 0.4923 GB, free: 9.578 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.356e-05/0.3815, allocations: 37.7 kB / 0.4923 GB, free: 9.535 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001906/0.3817, allocations: 249 kB / 0.4926 GB, free: 9.285 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3818, allocations: 138.1 kB / 0.4927 GB, free: 9.148 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.3819, allocations: 12 kB / 0.4927 GB, free: 9.137 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.382, allocations: 358.8 kB / 0.4931 GB, free: 8.777 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003635/0.3824, allocations: 153 kB / 0.4932 GB, free: 8.629 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004611/0.3829, allocations: 296.4 kB / 0.4935 GB, free: 8.289 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004375/0.3833, allocations: 195.3 kB / 0.4937 GB, free: 8.094 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3833, allocations: 4 kB / 0.4937 GB, free: 8.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001102/0.3844, allocations: 0.5781 MB / 0.4942 GB, free: 7.496 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005871/0.385, allocations: 1.335 MB / 0.4955 GB, free: 6.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3851, allocations: 4 kB / 0.4955 GB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002783/0.3853, allocations: 76.77 kB / 0.4956 GB, free: 5.973 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003888/0.3857, allocations: 95.83 kB / 0.4957 GB, free: 5.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.3875, allocations: 1.711 MB / 0.4974 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003999/0.388, allocations: 71.62 kB / 0.4974 GB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.762e-05/0.388, allocations: 23.98 kB / 0.4975 GB, free: 3.941 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.898e-06/0.388, allocations: 6.812 kB / 0.4975 GB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001039/0.3891, allocations: 490.1 kB / 0.4979 GB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.3891, allocations: 4 kB / 0.4979 GB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002055/0.3893, allocations: 72.81 kB / 0.498 GB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003279/0.3896, allocations: 88.2 kB / 0.4981 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.3913, allocations: 1.718 MB / 0.4998 GB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003722/0.3917, allocations: 63.59 kB / 0.4998 GB, free: 1.371 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.3917, allocations: 16.31 kB / 0.4999 GB, free: 1.355 MB / 378.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_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (53): * Single equations (assignments): 51 * 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.0004039/0.3921, allocations: 268.2 kB / 0.5001 GB, free: 1.082 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.95e-05/0.3922, allocations: 51.39 kB / 0.5002 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.3933, allocations: 498.3 kB / 0.5006 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3933, allocations: 11.94 kB / 0.5006 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.3933, allocations: 3.938 kB / 0.5007 GB, free: 0.5156 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3934, allocations: 3.984 kB / 0.5007 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1954/0.5888, allocations: 1.077 MB / 0.5017 GB, free: 97.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.5888, allocations: 2.578 kB / 0.5017 GB, free: 97.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000413/0.5892, allocations: 74.09 kB / 0.5018 GB, free: 97.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000249/0.5895, allocations: 72.98 kB / 0.5018 GB, free: 97.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.423e-05/0.5895, allocations: 9.281 kB / 0.5019 GB, free: 97.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001367/0.5909, allocations: 1.707 MB / 0.5035 GB, free: 96.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.5909, allocations: 0 / 0.5035 GB, free: 96.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.5923, allocations: 0.7807 MB / 0.5043 GB, free: 96.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.5925, allocations: 158.7 kB / 0.5044 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.198e-05/0.5926, allocations: 11.75 kB / 0.5044 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/0.5929, allocations: 40.73 kB / 0.5045 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.5931, allocations: 42.22 kB / 0.5045 GB, free: 95.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.5931, allocations: 24.19 kB / 0.5046 GB, free: 95.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002939/0.5934, allocations: 261.4 kB / 0.5048 GB, free: 95.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5934, allocations: 0 / 0.5048 GB, free: 95.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009425/0.5944, allocations: 243.7 kB / 0.505 GB, free: 95.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v,loadInductor.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_last,meanVoltage.y_last) * 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 (39): * Single equations (assignments): 32 * 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.001701/0.5961, allocations: 1.347 MB / 0.5063 GB, free: 95.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.5978, allocations: 1.034 MB / 0.5074 GB, free: 94.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5978, allocations: 0 / 0.5074 GB, free: 94.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004651/0.5983, allocations: 368.3 kB / 0.5077 GB, free: 94.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.5987, allocations: 72.11 kB / 0.5078 GB, free: 94.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.601, allocations: 3.857 MB / 0.5115 GB, free: 91.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.6012, allocations: 0.86 MB / 0.5124 GB, free: 90.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.6014, allocations: 58.08 kB / 0.5124 GB, free: 90.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001904/0.6016, allocations: 191 kB / 0.5126 GB, free: 90.84 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6016, allocations: 0 / 0.5126 GB, free: 90.84 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.6235, allocations: 10.7 MB / 0.5231 GB, free: 87.42 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001509/0.6237, allocations: 248.9 kB / 0.5233 GB, free: 87.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.143/2.767, allocations: 4 kB / 0.5233 GB, free: 87.08 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat