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.001058/0.001058, allocations: 197.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 227.2 MB / 245 MB, free: 7.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009992/0.0009991, allocations: 101.1 kB / 297.3 MB, free: 6.168 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002389/0.0002389, allocations: 8 kB / 358 MB, free: 9.406 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2083, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09998/0.3084, allocations: 88.03 MB / 497.5 MB, free: 2.559 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.3087, allocations: 91.95 kB / 497.6 MB, free: 2.469 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02754/0.3362, allocations: 10.62 MB / 0.4963 GB, free: 7.801 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.335e-06/0.3363, allocations: 0 / 0.4963 GB, free: 7.801 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.3363, allocations: 12 kB / 0.4964 GB, free: 7.789 MB / 378.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.001415/0.3377, allocations: 0.8532 MB / 0.4972 GB, free: 6.879 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3378, allocations: 8.031 kB / 0.4972 GB, free: 6.871 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.3379, allocations: 98.45 kB / 0.4973 GB, free: 6.766 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.338, allocations: 67.25 kB / 0.4974 GB, free: 6.699 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005435/0.3386, allocations: 397.9 kB / 0.4977 GB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/0.3386, allocations: 40.98 kB / 0.4978 GB, free: 6.227 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.764e-05/0.3387, allocations: 52 kB / 0.4978 GB, free: 6.176 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008994/0.3396, allocations: 0.5318 MB / 0.4983 GB, free: 5.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3396, allocations: 0 / 0.4983 GB, free: 5.621 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.953e-05/0.3397, allocations: 27.92 kB / 0.4984 GB, free: 5.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.3397, allocations: 19.95 kB / 0.4984 GB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008151/0.3405, allocations: 399.7 kB / 0.4988 GB, free: 5.184 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.3431, allocations: 1.877 MB / 0.5006 GB, free: 3.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.3442, allocations: 437.8 kB / 0.501 GB, free: 2.766 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.29e-05/0.3442, allocations: 4.328 kB / 0.501 GB, free: 2.762 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005522/0.3448, allocations: 317 kB / 0.5013 GB, free: 2.434 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 1.733e-06/0.3448, allocations: 4 kB / 0.5013 GB, free: 2.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001584/0.3464, allocations: 0.7302 MB / 0.502 GB, free: 1.672 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.767e-05/0.3465, allocations: 110.8 kB / 0.5021 GB, free: 1.539 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.3468, allocations: 344.8 kB / 0.5025 GB, free: 1.199 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.3469, allocations: 41.69 kB / 0.5025 GB, free: 1.152 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.3471, allocations: 253 kB / 0.5028 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.3472, allocations: 142.1 kB / 0.5029 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.3472, allocations: 8 kB / 0.5029 GB, free: 0.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3473, allocations: 358.8 kB / 0.5032 GB, free: 400 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000345/0.3477, allocations: 157 kB / 0.5034 GB, free: 244 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1713/0.519, allocations: 278.8 kB / 0.5037 GB, free: 92.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006208/0.5196, allocations: 212.8 kB / 0.5039 GB, free: 92.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.5196, allocations: 4.781 kB / 0.5039 GB, free: 92.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001257/0.5209, allocations: 0.5735 MB / 0.5044 GB, free: 92.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002371/0.5212, allocations: 1.341 MB / 0.5057 GB, free: 91.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.5212, allocations: 3.906 kB / 0.5057 GB, free: 91.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002932/0.5215, allocations: 74.39 kB / 0.5058 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.5219, allocations: 94.34 kB / 0.5059 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/0.5233, allocations: 1.705 MB / 0.5076 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003942/0.5237, allocations: 71.95 kB / 0.5076 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/0.5237, allocations: 22.91 kB / 0.5077 GB, free: 89.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.794e-06/0.5238, allocations: 4.438 kB / 0.5077 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008492/0.5246, allocations: 0.4924 MB / 0.5081 GB, free: 89.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.5246, allocations: 3.781 kB / 0.5081 GB, free: 89.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001893/0.5248, allocations: 72.31 kB / 0.5082 GB, free: 89.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000329/0.5252, allocations: 89.41 kB / 0.5083 GB, free: 89.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.5264, allocations: 1.715 MB / 0.51 GB, free: 88.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.5268, allocations: 62.64 kB / 0.51 GB, free: 88.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.5268, allocations: 20.56 kB / 0.5101 GB, free: 88.35 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.0002739/0.5271, allocations: 273.5 kB / 0.5103 GB, free: 88.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.901e-05/0.5271, allocations: 47.06 kB / 0.5104 GB, free: 88.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009601/0.5281, allocations: 0.4962 MB / 0.5108 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.5281, allocations: 4.312 kB / 0.5108 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.5281, allocations: 1.922 kB / 0.5108 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.5282, allocations: 1.781 kB / 0.5108 GB, free: 88.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001662/0.5298, allocations: 1.087 MB / 0.5119 GB, free: 87.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.5298, allocations: 4.516 kB / 0.5119 GB, free: 87.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.5302, allocations: 75.55 kB / 0.512 GB, free: 87.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000215/0.5304, allocations: 70.55 kB / 0.5121 GB, free: 87.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.532e-05/0.5305, allocations: 11.59 kB / 0.5121 GB, free: 87.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.5318, allocations: 1.705 MB / 0.5137 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.5318, allocations: 0 / 0.5137 GB, free: 86.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001263/0.5331, allocations: 0.7875 MB / 0.5145 GB, free: 86.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001378/0.5333, allocations: 158.5 kB / 0.5147 GB, free: 85.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.561e-05/0.5333, allocations: 7.219 kB / 0.5147 GB, free: 85.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.5336, allocations: 47.64 kB / 0.5147 GB, free: 85.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.5337, allocations: 47.36 kB / 0.5147 GB, free: 85.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.5338, allocations: 9.75 kB / 0.5148 GB, free: 85.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000216/0.534, allocations: 269.5 kB / 0.515 GB, free: 85.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.534, allocations: 1.203 kB / 0.515 GB, free: 85.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007652/0.5348, allocations: 250.1 kB / 0.5153 GB, free: 85.66 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.001325/0.5361, allocations: 1.352 MB / 0.5166 GB, free: 84.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.5374, allocations: 1.023 MB / 0.5176 GB, free: 84.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5375, allocations: 0 / 0.5176 GB, free: 84.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004344/0.5379, allocations: 367.2 kB / 0.5179 GB, free: 83.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004042/0.5383, allocations: 78.33 kB / 0.518 GB, free: 83.95 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002208/0.5405, allocations: 3.87 MB / 0.5218 GB, free: 80.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.5408, allocations: 0.8707 MB / 0.5226 GB, free: 79.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.541, allocations: 57.33 kB / 0.5227 GB, free: 79.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.5412, allocations: 185.7 kB / 0.5229 GB, free: 79.77 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5412, allocations: 3.844 kB / 0.5229 GB, free: 79.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02092/0.5621, allocations: 10.86 MB / 0.5335 GB, free: 74.9 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001567/0.5623, allocations: 257.1 kB / 0.5337 GB, free: 74.56 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.15/2.712, allocations: 0 / 0.5337 GB, free: 74.56 MB / 378.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