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_R.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_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",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.00102/0.00102, allocations: 180.6 kB / 16.38 MB, free: 5.766 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.433/1.433, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009905/0.0009905, allocations: 102.5 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002551/0.0002551, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2179, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1034/0.3214, allocations: 85.85 MB / 487.4 MB, free: 10.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.3217, allocations: 95.92 kB / 487.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02899/0.3507, allocations: 9.785 MB / 497.3 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3507, allocations: 0 / 497.3 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.687e-05/0.3508, allocations: 16 kB / 497.3 MB, free: 0.6641 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001863/0.3527, allocations: 0.8145 MB / 498.2 MB, free: 15.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.3527, allocations: 11.97 kB / 498.2 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001718/0.3529, allocations: 86.52 kB / 498.3 MB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.3531, allocations: 63.25 kB / 498.3 MB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000748/0.3538, allocations: 403.5 kB / 498.7 MB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.3539, allocations: 40.98 kB / 498.7 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.192e-05/0.354, allocations: 44 kB / 498.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.3551, allocations: 0.5123 MB / 499.3 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.3551, allocations: 0 / 499.3 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.036e-05/0.3552, allocations: 20 kB / 499.3 MB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.3552, allocations: 12 kB / 499.3 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.3561, allocations: 391.7 kB / 499.7 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003005/0.3592, allocations: 1.792 MB / 0.4898 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.3604, allocations: 457.7 kB / 0.4902 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.3605, allocations: 7.938 kB / 0.4902 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006426/0.3611, allocations: 304.6 kB / 0.4905 GB, free: 11.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.3611, allocations: 0 / 0.4905 GB, free: 11.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001885/0.363, allocations: 0.7169 MB / 0.4912 GB, free: 10.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.249e-05/0.3631, allocations: 118.7 kB / 0.4913 GB, free: 10.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.3636, allocations: 332.8 kB / 0.4916 GB, free: 10.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.254e-05/0.3636, allocations: 37.7 kB / 0.4917 GB, free: 10.24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.3638, allocations: 240.4 kB / 0.4919 GB, free: 10 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.364, allocations: 126.2 kB / 0.492 GB, free: 9.879 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-05/0.364, allocations: 8 kB / 0.492 GB, free: 9.871 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3642, allocations: 354.8 kB / 0.4924 GB, free: 9.516 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003888/0.3646, allocations: 153 kB / 0.4925 GB, free: 9.367 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004748/0.365, allocations: 280 kB / 0.4928 GB, free: 9.043 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004339/0.3655, allocations: 197.6 kB / 0.493 GB, free: 8.844 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.3655, allocations: 4 kB / 0.493 GB, free: 8.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001175/0.3667, allocations: 0.555 MB / 0.4935 GB, free: 8.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007496/0.3674, allocations: 1.343 MB / 0.4948 GB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/0.3675, allocations: 4 kB / 0.4948 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003092/0.3678, allocations: 72.81 kB / 0.4949 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003854/0.3682, allocations: 91.89 kB / 0.495 GB, free: 6.652 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.3702, allocations: 1.71 MB / 0.4966 GB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/0.3706, allocations: 67.56 kB / 0.4967 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.3707, allocations: 19.98 kB / 0.4967 GB, free: 4.723 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.3707, allocations: 10.88 kB / 0.4967 GB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009748/0.3717, allocations: 486 kB / 0.4972 GB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3717, allocations: 4 kB / 0.4972 GB, free: 4.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002123/0.3719, allocations: 68.81 kB / 0.4973 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.3723, allocations: 83.83 kB / 0.4973 GB, free: 4.074 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001781/0.3741, allocations: 1.722 MB / 0.499 GB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003897/0.3745, allocations: 51.67 kB / 0.4991 GB, free: 2.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/0.3745, allocations: 19.98 kB / 0.4991 GB, free: 2.148 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 (50): * Single equations (assignments): 48 * 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.0003571/0.3749, allocations: 255.6 kB / 0.4993 GB, free: 1.887 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.375, allocations: 47.5 kB / 0.4994 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.3761, allocations: 490.8 kB / 0.4999 GB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3761, allocations: 11.94 kB / 0.4999 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3761, allocations: 7.922 kB / 0.4999 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-06/0.3761, allocations: 0 / 0.4999 GB, free: 1.328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.378, allocations: 1.049 MB / 0.5009 GB, free: 224 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.378, allocations: 4 kB / 0.5009 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.3784, allocations: 79.83 kB / 0.501 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000228/0.3786, allocations: 68.84 kB / 0.501 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.937e-05/0.3787, allocations: 11.98 kB / 0.5011 GB, free: 56 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1819/0.5606, allocations: 1.7 MB / 0.5027 GB, free: 96.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5606, allocations: 4.688 kB / 0.5027 GB, free: 96.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.5623, allocations: 0.7545 MB / 0.5035 GB, free: 96.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002863/0.5626, allocations: 154.6 kB / 0.5036 GB, free: 96.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001095/0.5627, allocations: 13.83 kB / 0.5036 GB, free: 96.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.5631, allocations: 42.44 kB / 0.5037 GB, free: 96.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.5633, allocations: 45.42 kB / 0.5037 GB, free: 96.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.565e-05/0.5634, allocations: 14.75 kB / 0.5037 GB, free: 96.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004035/0.5638, allocations: 262 kB / 0.504 GB, free: 96.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5638, allocations: 0 / 0.504 GB, free: 96.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001084/0.5649, allocations: 236.8 kB / 0.5042 GB, free: 96.33 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * 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 (37): * Single equations (assignments): 30 * 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.001725/0.5666, allocations: 1.325 MB / 0.5055 GB, free: 95.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.5686, allocations: 1.005 MB / 0.5065 GB, free: 95.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5686, allocations: 0.8438 kB / 0.5065 GB, free: 95.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000624/0.5693, allocations: 354 kB / 0.5068 GB, free: 95.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004641/0.5697, allocations: 79.72 kB / 0.5069 GB, free: 95.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.5724, allocations: 3.739 MB / 0.5105 GB, free: 92.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002523/0.5727, allocations: 0.8544 MB / 0.5114 GB, free: 91.43 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002254/0.5729, allocations: 50.06 kB / 0.5114 GB, free: 91.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001933/0.5731, allocations: 174.5 kB / 0.5116 GB, free: 91.4 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5731, allocations: 0 / 0.5116 GB, free: 91.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02437/0.5975, allocations: 10.5 MB / 0.5218 GB, free: 88.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001564/0.5977, allocations: 245.6 kB / 0.5221 GB, free: 88.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.351/2.949, allocations: 3.172 kB / 0.5221 GB, free: 88.27 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.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_R_res.mat does not exist to compare? outputFormat=mat