Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_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.HBridge.HBridge_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_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.001212/0.001212, allocations: 180.4 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.329/1.329, allocations: 223.2 MB / 240.3 MB, free: 11.9 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.0008282/0.0008282, allocations: 90.36 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002433, allocations: 4 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2121, allocations: 50.42 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09577/0.3079, allocations: 87.05 MB / 488.6 MB, free: 9.375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.3082, allocations: 86.8 kB / 488.7 MB, free: 9.293 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03706/0.3453, allocations: 15.72 MB / 0.4926 GB, free: 9.457 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3453, allocations: 0 / 0.4926 GB, free: 9.457 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.366e-05/0.3454, allocations: 20 kB / 0.4927 GB, free: 9.438 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.00189/0.3473, allocations: 1.175 MB / 0.4938 GB, free: 8.195 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.3473, allocations: 8.031 kB / 0.4938 GB, free: 8.188 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001622/0.3475, allocations: 143.5 kB / 0.4939 GB, free: 8.039 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.3476, allocations: 114.6 kB / 0.4941 GB, free: 7.926 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008906/0.3485, allocations: 0.637 MB / 0.4947 GB, free: 7.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.966e-05/0.3486, allocations: 73.95 kB / 0.4947 GB, free: 7.176 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.3487, allocations: 88 kB / 0.4948 GB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.3503, allocations: 0.9748 MB / 0.4958 GB, free: 6.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.3503, allocations: 0 / 0.4958 GB, free: 6.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.184e-05/0.3504, allocations: 40 kB / 0.4958 GB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.3504, allocations: 20 kB / 0.4958 GB, free: 6.012 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.3518, allocations: 0.7534 MB / 0.4966 GB, free: 5.254 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004676/0.3565, allocations: 3.79 MB / 0.5003 GB, free: 1.352 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.3578, allocations: 0.8049 MB / 0.5011 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.916e-05/0.3579, allocations: 12.59 kB / 0.5011 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007893/0.3587, allocations: 468.4 kB / 0.5015 GB, free: 52 kB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.655e-06/0.3587, allocations: 0 / 0.5015 GB, free: 52 kB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.1956/0.5543, allocations: 1.562 MB / 0.503 GB, free: 93.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.5544, allocations: 125.4 kB / 0.5032 GB, free: 93.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009089/0.5553, allocations: 0.608 MB / 0.5038 GB, free: 93.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-05/0.5554, allocations: 44.22 kB / 0.5038 GB, free: 93.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003104/0.5557, allocations: 365.4 kB / 0.5041 GB, free: 92.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/0.5559, allocations: 248.1 kB / 0.5044 GB, free: 92.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.556, allocations: 13.88 kB / 0.5044 GB, free: 92.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5561, allocations: 394.4 kB / 0.5048 GB, free: 92.49 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005139/0.5566, allocations: 266.8 kB / 0.505 GB, free: 92.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007928/0.5574, allocations: 422 kB / 0.5054 GB, free: 92.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006495/0.5581, allocations: 309.1 kB / 0.5057 GB, free: 92.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.5581, allocations: 1.344 kB / 0.5057 GB, free: 92.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002041/0.5602, allocations: 0.9643 MB / 0.5067 GB, free: 92.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000278/0.5605, allocations: 1.346 MB / 0.508 GB, free: 90.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.5605, allocations: 3.531 kB / 0.508 GB, free: 90.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007919/0.5613, allocations: 293.2 kB / 0.5083 GB, free: 90.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.5617, allocations: 105.1 kB / 0.5084 GB, free: 90.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004316/0.566, allocations: 4.667 MB / 0.5129 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006903/0.5668, allocations: 95.69 kB / 0.513 GB, free: 87.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.763e-05/0.5668, allocations: 25.19 kB / 0.513 GB, free: 87.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.5668, allocations: 4.812 kB / 0.513 GB, free: 87.87 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001311/0.5681, allocations: 0.8664 MB / 0.5139 GB, free: 87.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.5682, allocations: 3.844 kB / 0.5139 GB, free: 87.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006673/0.5688, allocations: 283 kB / 0.5142 GB, free: 87.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003757/0.5692, allocations: 99.5 kB / 0.5143 GB, free: 87.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00409/0.5733, allocations: 4.665 MB / 0.5188 GB, free: 83.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006763/0.574, allocations: 81.42 kB / 0.5189 GB, free: 83.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.408e-05/0.5741, allocations: 27.38 kB / 0.5189 GB, free: 83.56 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: 32 ($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,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.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 (70): * Single equations (assignments): 67 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005253/0.5746, allocations: 349.7 kB / 0.5193 GB, free: 83.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.5748, allocations: 81.22 kB / 0.5193 GB, free: 83.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001908/0.575, allocations: 102.4 kB / 0.5194 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.575, allocations: 7.875 kB / 0.5194 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.575, allocations: 0 / 0.5194 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.575, allocations: 7.609 kB / 0.5194 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.5775, allocations: 1.965 MB / 0.5214 GB, free: 82.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.5775, allocations: 0 / 0.5214 GB, free: 82.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003295/0.5778, allocations: 80.48 kB / 0.5214 GB, free: 82.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006505/0.5785, allocations: 286.2 kB / 0.5217 GB, free: 81.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.5785, allocations: 19.83 kB / 0.5217 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00392/0.5825, allocations: 4.654 MB / 0.5263 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.5825, allocations: 0 / 0.5263 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.5842, allocations: 1.345 MB / 0.5276 GB, free: 77.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003062/0.5846, allocations: 257.9 kB / 0.5278 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.075e-05/0.5847, allocations: 19.22 kB / 0.5279 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004102/0.5851, allocations: 41.66 kB / 0.5279 GB, free: 77.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/0.5853, allocations: 95.02 kB / 0.528 GB, free: 77.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.246e-05/0.5853, allocations: 17.16 kB / 0.528 GB, free: 77.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005194/0.5859, allocations: 482 kB / 0.5285 GB, free: 77.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5859, allocations: 0 / 0.5285 GB, free: 77.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00128/0.5872, allocations: 453.5 kB / 0.5289 GB, free: 76.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * Number of discrete variables: 26 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hbridge.andCondition_p.y,hbridge.andCondition_n.y,hbridge.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_n.off,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_n.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 (55): * Single equations (assignments): 47 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00193/0.5891, allocations: 1.942 MB / 0.5308 GB, free: 75.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002482/0.5916, allocations: 1.972 MB / 0.5327 GB, free: 73.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5916, allocations: 0 / 0.5327 GB, free: 73.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008529/0.5925, allocations: 0.7662 MB / 0.5335 GB, free: 72.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006586/0.5931, allocations: 161.3 kB / 0.5336 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.5966, allocations: 4.624 MB / 0.5381 GB, free: 68.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.597, allocations: 1.017 MB / 0.5391 GB, free: 67.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003709/0.5974, allocations: 88.19 kB / 0.5392 GB, free: 67.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.5977, allocations: 301.4 kB / 0.5395 GB, free: 67 MB / 378.7 MB Notification: Performance of SimCode: time 9.01e-07/0.5977, allocations: 4 kB / 0.5395 GB, free: 67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03638/0.6341, allocations: 22.81 MB / 0.5618 GB, free: 47.5 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.6343, allocations: 238.6 kB / 0.562 GB, free: 47.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/3.204, allocations: 64 / 0.562 GB, free: 47.25 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat