Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001271/0.001271, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.00105, allocations: 95.64 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.68e-05/3.703e-05, allocations: 4 kB / 350.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3216/0.4321, allocations: 87.77 MB / 489.9 MB, free: 1.727 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.4324, allocations: 85.36 kB / 490 MB, free: 1.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02857/0.461, allocations: 10.25 MB / 0.4885 GB, free: 9.031 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.461, allocations: 0 / 0.4885 GB, free: 9.031 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.49e-05/0.4611, allocations: 8 kB / 0.4885 GB, free: 9.023 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.001722/0.4628, allocations: 0.7776 MB / 0.4893 GB, free: 8.207 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.4629, allocations: 12.02 kB / 0.4893 GB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001667/0.463, allocations: 86.14 kB / 0.4894 GB, free: 8.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.4632, allocations: 71.23 kB / 0.4895 GB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007382/0.464, allocations: 392.5 kB / 0.4898 GB, free: 7.613 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.028e-05/0.464, allocations: 37 kB / 0.4899 GB, free: 7.574 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.424e-05/0.4641, allocations: 51.91 kB / 0.4899 GB, free: 7.523 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009185/0.4651, allocations: 472.8 kB / 0.4904 GB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.4651, allocations: 0 / 0.4904 GB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.4652, allocations: 28.61 kB / 0.4904 GB, free: 7.012 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.4652, allocations: 16 kB / 0.4904 GB, free: 6.996 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006359/0.4658, allocations: 305.3 kB / 0.4907 GB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002982/0.4688, allocations: 1.799 MB / 0.4925 GB, free: 4.809 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009258/0.4698, allocations: 387.4 kB / 0.4928 GB, free: 4.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004421/0.4702, allocations: 205.5 kB / 0.493 GB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.174e-05/0.4703, allocations: 8 kB / 0.493 GB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000483/0.4708, allocations: 259.9 kB / 0.4933 GB, free: 3.949 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 3.186e-06/0.4708, allocations: 0 / 0.4933 GB, free: 3.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007446/0.4715, allocations: 365.4 kB / 0.4936 GB, free: 3.582 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.4716, allocations: 110.8 kB / 0.4937 GB, free: 3.449 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004297/0.4721, allocations: 334.8 kB / 0.4941 GB, free: 3.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.208e-05/0.4721, allocations: 41.7 kB / 0.4941 GB, free: 3.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/0.4724, allocations: 260.2 kB / 0.4943 GB, free: 2.809 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.4725, allocations: 126.2 kB / 0.4945 GB, free: 2.684 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.4725, allocations: 5.219 kB / 0.4945 GB, free: 2.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.4727, allocations: 362.7 kB / 0.4948 GB, free: 2.316 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.4729, allocations: 109.1 kB / 0.4949 GB, free: 2.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/0.4732, allocations: 244.1 kB / 0.4951 GB, free: 1.918 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.4735, allocations: 153.4 kB / 0.4953 GB, free: 1.762 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.4735, allocations: 4 kB / 0.4953 GB, free: 1.758 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008304/0.4744, allocations: 478.5 kB / 0.4958 GB, free: 1.277 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006176/0.475, allocations: 1.343 MB / 0.4971 GB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.475, allocations: 4 kB / 0.4971 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003068/0.4753, allocations: 72.81 kB / 0.4971 GB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.4757, allocations: 91.83 kB / 0.4972 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001741/0.4775, allocations: 1.684 MB / 0.4989 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/0.4779, allocations: 75.56 kB / 0.4989 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.24e-05/0.478, allocations: 16.05 kB / 0.499 GB, free: 13.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.478, allocations: 7.938 kB / 0.499 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00074/0.4787, allocations: 433.9 kB / 0.4994 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4788, allocations: 8.812 kB / 0.4994 GB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002071/0.479, allocations: 68.89 kB / 0.4995 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.4793, allocations: 89.47 kB / 0.4995 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.4809, allocations: 1.69 MB / 0.5012 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004103/0.4814, allocations: 63.72 kB / 0.5012 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.964e-05/0.4814, allocations: 16 kB / 0.5013 GB, free: 11.25 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 () * 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.0002159/0.4816, allocations: 143.9 kB / 0.5014 GB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.4818, allocations: 47.44 kB / 0.5014 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007674/0.4825, allocations: 411.5 kB / 0.5018 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.85e-06/0.4825, allocations: 4 kB / 0.5018 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.4826, allocations: 0 / 0.5018 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.4826, allocations: 3.984 kB / 0.5018 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.4842, allocations: 1.004 MB / 0.5028 GB, free: 9.566 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.4842, allocations: 7.984 kB / 0.5028 GB, free: 9.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003264/0.4845, allocations: 72.02 kB / 0.5029 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002105/0.4847, allocations: 64.77 kB / 0.503 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.4848, allocations: 12 kB / 0.503 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001645/0.4864, allocations: 1.69 MB / 0.5046 GB, free: 7.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4865, allocations: 4.031 kB / 0.5046 GB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.4875, allocations: 0.6622 MB / 0.5053 GB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002287/0.4877, allocations: 152.4 kB / 0.5054 GB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.596e-05/0.4878, allocations: 17.75 kB / 0.5054 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003383/0.4882, allocations: 47.95 kB / 0.5055 GB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.4883, allocations: 43.88 kB / 0.5055 GB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.453e-05/0.4883, allocations: 16 kB / 0.5055 GB, free: 6.602 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003468/0.4887, allocations: 261.2 kB / 0.5058 GB, free: 6.348 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4887, allocations: 4 kB / 0.5058 GB, free: 6.344 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000955/0.4897, allocations: 235.4 kB / 0.506 GB, free: 6.113 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * 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.001463/0.4912, allocations: 1.375 MB / 0.5074 GB, free: 4.691 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.4926, allocations: 0.9016 MB / 0.5082 GB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4926, allocations: 0 / 0.5082 GB, free: 3.738 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000429/0.4931, allocations: 314.3 kB / 0.5085 GB, free: 3.418 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.4936, allocations: 81.89 kB / 0.5086 GB, free: 3.344 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00202/0.4956, allocations: 0.8505 MB / 0.5095 GB, free: 2.445 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.4961, allocations: 0.8603 MB / 0.5103 GB, free: 1.555 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000335/0.4964, allocations: 69.62 kB / 0.5104 GB, free: 1.488 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.4967, allocations: 175.3 kB / 0.5105 GB, free: 1.32 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4967, allocations: 0 / 0.5105 GB, free: 1.32 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02931/0.526, allocations: 11.28 MB / 0.5215 GB, free: 6.434 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002828/0.5263, allocations: 215.5 kB / 0.5217 GB, free: 6.211 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.326/2.852, allocations: 4 kB / 0.5217 GB, free: 6.207 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat