Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.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_RL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001114/0.001114, allocations: 196.7 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.315/1.315, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000837/0.0008371, allocations: 88.83 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.949e-05/2.96e-05, allocations: 4 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.334/0.4402, allocations: 87.98 MB / 490.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.4404, allocations: 85.2 kB / 490.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02767/0.4681, allocations: 10.58 MB / 0.489 GB, free: 8.496 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4682, allocations: 0 / 0.489 GB, free: 8.496 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.819e-05/0.4682, allocations: 12 kB / 0.4891 GB, free: 8.484 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001439/0.4697, allocations: 0.7941 MB / 0.4898 GB, free: 7.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.4697, allocations: 8.031 kB / 0.4898 GB, free: 7.641 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.4698, allocations: 90.52 kB / 0.4899 GB, free: 7.543 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.47, allocations: 71.23 kB / 0.49 GB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006083/0.4706, allocations: 396.4 kB / 0.4904 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.669e-05/0.4706, allocations: 45 kB / 0.4904 GB, free: 7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.656e-05/0.4707, allocations: 48 kB / 0.4905 GB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008274/0.4716, allocations: 497.4 kB / 0.4909 GB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.4716, allocations: 0 / 0.4909 GB, free: 6.445 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-05/0.4716, allocations: 20 kB / 0.491 GB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.115e-05/0.4717, allocations: 19.95 kB / 0.491 GB, free: 6.406 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005797/0.4723, allocations: 319.9 kB / 0.4913 GB, free: 6.094 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002833/0.4751, allocations: 1.876 MB / 0.4931 GB, free: 4.117 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008641/0.476, allocations: 381 kB / 0.4935 GB, free: 3.734 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004159/0.4764, allocations: 222.8 kB / 0.4937 GB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.589e-05/0.4765, allocations: 8.312 kB / 0.4937 GB, free: 3.508 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004469/0.4769, allocations: 267 kB / 0.4939 GB, free: 3.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 1.743e-06/0.4769, allocations: 0 / 0.4939 GB, free: 3.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0007066/0.4776, allocations: 377.8 kB / 0.4943 GB, free: 2.852 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.644e-05/0.4777, allocations: 118.8 kB / 0.4944 GB, free: 2.711 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004004/0.4781, allocations: 342.8 kB / 0.4948 GB, free: 2.371 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.4782, allocations: 37.7 kB / 0.4948 GB, free: 2.328 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.4784, allocations: 253 kB / 0.495 GB, free: 2.074 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.4785, allocations: 138.1 kB / 0.4952 GB, free: 1.938 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.4785, allocations: 16 kB / 0.4952 GB, free: 1.922 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4787, allocations: 354.8 kB / 0.4955 GB, free: 1.566 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000225/0.4789, allocations: 113.1 kB / 0.4956 GB, free: 1.457 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/0.4792, allocations: 252.9 kB / 0.4959 GB, free: 1.156 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.4795, allocations: 155.3 kB / 0.496 GB, free: 1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4795, allocations: 0 / 0.496 GB, free: 1 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007541/0.4802, allocations: 0.4914 MB / 0.4965 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005574/0.4808, allocations: 1.345 MB / 0.4978 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.4808, allocations: 4 kB / 0.4978 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.4811, allocations: 66.88 kB / 0.4979 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003599/0.4815, allocations: 103.8 kB / 0.498 GB, free: 14.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/0.4831, allocations: 1.693 MB / 0.4996 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.4835, allocations: 71.58 kB / 0.4997 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.4835, allocations: 13.78 kB / 0.4997 GB, free: 12.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.4835, allocations: 8.062 kB / 0.4997 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006961/0.4842, allocations: 438 kB / 0.5001 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.4843, allocations: 4 kB / 0.5001 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.4845, allocations: 81.16 kB / 0.5002 GB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003578/0.4848, allocations: 87.95 kB / 0.5003 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.4866, allocations: 1.691 MB / 0.5019 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000331/0.487, allocations: 63.59 kB / 0.502 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/0.487, allocations: 28.02 kB / 0.502 GB, free: 10.43 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 (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.0001392/0.4872, allocations: 138 kB / 0.5022 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.804e-05/0.4872, allocations: 55.42 kB / 0.5022 GB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007174/0.488, allocations: 414.4 kB / 0.5026 GB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.488, allocations: 4 kB / 0.5026 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.488, allocations: 4 kB / 0.5026 GB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.488, allocations: 4 kB / 0.5026 GB, free: 9.809 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.4894, allocations: 1.028 MB / 0.5036 GB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4894, allocations: 0 / 0.5036 GB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.4898, allocations: 80.78 kB / 0.5037 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.49, allocations: 69.84 kB / 0.5038 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.49, allocations: 8 kB / 0.5038 GB, free: 8.559 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.4915, allocations: 1.697 MB / 0.5054 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4915, allocations: 0 / 0.5054 GB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009258/0.4924, allocations: 0.6917 MB / 0.5061 GB, free: 6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.4926, allocations: 156.5 kB / 0.5063 GB, free: 5.828 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.258e-05/0.4927, allocations: 17.77 kB / 0.5063 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003495/0.4931, allocations: 39.97 kB / 0.5063 GB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.4932, allocations: 47.89 kB / 0.5064 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.4932, allocations: 19.98 kB / 0.5064 GB, free: 5.707 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000286/0.4935, allocations: 265.2 kB / 0.5066 GB, free: 5.445 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4935, allocations: 0 / 0.5066 GB, free: 5.445 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000797/0.4943, allocations: 247.3 kB / 0.5069 GB, free: 5.203 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * 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.001343/0.4957, allocations: 1.382 MB / 0.5082 GB, free: 3.777 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.497, allocations: 0.9296 MB / 0.5091 GB, free: 2.801 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.497, allocations: 8.062 kB / 0.5091 GB, free: 2.793 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000423/0.4975, allocations: 318.6 kB / 0.5094 GB, free: 2.469 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.4979, allocations: 91.11 kB / 0.5095 GB, free: 2.387 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001804/0.4997, allocations: 0.9461 MB / 0.5104 GB, free: 1.398 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.5002, allocations: 0.8682 MB / 0.5113 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003072/0.5005, allocations: 74.56 kB / 0.5114 GB, free: 440 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.5008, allocations: 179.4 kB / 0.5115 GB, free: 260 kB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5008, allocations: 4 kB / 0.5115 GB, free: 256 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.5271, allocations: 11.51 MB / 0.5228 GB, free: 5.133 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/0.5274, allocations: 215.3 kB / 0.523 GB, free: 4.914 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.284/2.812, allocations: 1.688 kB / 0.523 GB, free: 4.914 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat