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.0009769/0.0009769, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.378/1.378, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007918/0.0007918, allocations: 97.17 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.668e-05/2.696e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09184/0.09189, allocations: 50.41 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.3964, allocations: 86.99 MB / 481.3 MB, free: 484 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.3966, allocations: 83.94 kB / 481.4 MB, free: 400 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03821/0.4348, allocations: 15.73 MB / 497.1 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.4349, allocations: 0 / 497.1 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.073e-05/0.435, allocations: 24 kB / 497.2 MB, free: 0.543 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001998/0.437, allocations: 1.078 MB / 498.2 MB, free: 15.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.437, allocations: 11.97 kB / 498.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001754/0.4372, allocations: 139.5 kB / 498.4 MB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000184/0.4374, allocations: 114.6 kB / 498.5 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009047/0.4383, allocations: 0.637 MB / 499.1 MB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.113e-05/0.4384, allocations: 73.78 kB / 499.2 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.4385, allocations: 92 kB / 499.3 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.4401, allocations: 0.9361 MB / 0.4885 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.4401, allocations: 4 kB / 0.4885 GB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-05/0.4402, allocations: 36 kB / 0.4886 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.4403, allocations: 20 kB / 0.4886 GB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001182/0.4414, allocations: 0.6951 MB / 0.4893 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004612/0.4461, allocations: 3.783 MB / 0.493 GB, free: 8.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.4473, allocations: 0.7793 MB / 0.4937 GB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007223/0.448, allocations: 464.7 kB / 0.4942 GB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.147e-05/0.4481, allocations: 8.781 kB / 0.4942 GB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007251/0.4488, allocations: 457.3 kB / 0.4946 GB, free: 6.938 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.655e-06/0.4488, allocations: 0 / 0.4946 GB, free: 6.938 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.001343/0.4502, allocations: 0.7939 MB / 0.4954 GB, free: 6.129 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.553e-05/0.4502, allocations: 119.6 kB / 0.4955 GB, free: 5.988 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007027/0.451, allocations: 0.5972 MB / 0.4961 GB, free: 5.387 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.822e-05/0.451, allocations: 41.7 kB / 0.4961 GB, free: 5.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.4513, allocations: 364.8 kB / 0.4965 GB, free: 4.973 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.4515, allocations: 244.5 kB / 0.4967 GB, free: 4.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.746e-05/0.4515, allocations: 20 kB / 0.4967 GB, free: 4.711 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4517, allocations: 382.8 kB / 0.4971 GB, free: 4.328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.4521, allocations: 249.7 kB / 0.4973 GB, free: 4.086 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/0.4526, allocations: 388.5 kB / 0.4977 GB, free: 3.652 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004456/0.453, allocations: 295.8 kB / 0.498 GB, free: 3.355 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.453, allocations: 0 / 0.498 GB, free: 3.355 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001414/0.4545, allocations: 0.9125 MB / 0.4989 GB, free: 2.422 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005073/0.455, allocations: 1.336 MB / 0.5002 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.455, allocations: 8 kB / 0.5002 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008023/0.4558, allocations: 290.1 kB / 0.5004 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004335/0.4563, allocations: 107.8 kB / 0.5006 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005094/0.4614, allocations: 4.57 MB / 0.505 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/0.462, allocations: 95.38 kB / 0.5051 GB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.693e-05/0.462, allocations: 28 kB / 0.5051 GB, free: 11.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.462, allocations: 7.953 kB / 0.5051 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001344/0.4634, allocations: 0.8297 MB / 0.5059 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.4634, allocations: 4 kB / 0.506 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006763/0.4641, allocations: 290.1 kB / 0.5062 GB, free: 10.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000376/0.4645, allocations: 99.83 kB / 0.5063 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004652/0.4691, allocations: 4.562 MB / 0.5108 GB, free: 5.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000516/0.4697, allocations: 79.48 kB / 0.5109 GB, free: 5.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.4697, allocations: 28 kB / 0.5109 GB, free: 5.453 MB / 394.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 () * 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.0002207/0.47, allocations: 179.2 kB / 0.5111 GB, free: 5.273 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.4701, allocations: 90.86 kB / 0.5111 GB, free: 5.184 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002545/0.4704, allocations: 96.39 kB / 0.5112 GB, free: 5.086 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.4704, allocations: 8 kB / 0.5112 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4704, allocations: 0 / 0.5112 GB, free: 5.078 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.4704, allocations: 3.984 kB / 0.5112 GB, free: 5.074 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002589/0.473, allocations: 1.938 MB / 0.5131 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.473, allocations: 0 / 0.5131 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003552/0.4734, allocations: 75.89 kB / 0.5132 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006884/0.4741, allocations: 293.4 kB / 0.5135 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.786e-05/0.4741, allocations: 16 kB / 0.5135 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004677/0.4788, allocations: 4.547 MB / 0.5179 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4788, allocations: 0 / 0.5179 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001907/0.4807, allocations: 1.304 MB / 0.5192 GB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.4811, allocations: 263.9 kB / 0.5195 GB, free: 12.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.257e-05/0.4812, allocations: 16 kB / 0.5195 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000428/0.4816, allocations: 43.95 kB / 0.5195 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.4818, allocations: 88.59 kB / 0.5196 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.11e-05/0.4819, allocations: 24 kB / 0.5196 GB, free: 12.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000608/0.4825, allocations: 455.2 kB / 0.5201 GB, free: 11.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4825, allocations: 0 / 0.5201 GB, free: 11.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001431/0.484, allocations: 447.1 kB / 0.5205 GB, free: 11.22 MB / 410.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) * 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.002224/0.4862, allocations: 1.903 MB / 0.5224 GB, free: 9.281 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.489, allocations: 1.932 MB / 0.5242 GB, free: 7.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.4891, allocations: 8.25 kB / 0.5242 GB, free: 7.262 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009786/0.4901, allocations: 0.7356 MB / 0.525 GB, free: 6.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006756/0.4907, allocations: 158.9 kB / 0.5251 GB, free: 6.348 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002871/0.4936, allocations: 1.392 MB / 0.5265 GB, free: 4.914 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005496/0.4942, allocations: 1.028 MB / 0.5275 GB, free: 3.859 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000454/0.4946, allocations: 110.6 kB / 0.5276 GB, free: 3.746 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.495, allocations: 299.3 kB / 0.5279 GB, free: 3.453 MB / 410.7 MB Notification: Performance of SimCode: time 6.11e-07/0.495, allocations: 0 / 0.5279 GB, free: 3.453 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2417/0.7368, allocations: 23.84 MB / 0.5512 GB, free: 126.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001454/0.7369, allocations: 208.8 kB / 0.5514 GB, free: 125.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.646/3.383, allocations: 0 / 0.5514 GB, free: 125.9 MB / 426.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