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_R.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_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R",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.001893/0.001892, allocations: 175.5 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.392/1.392, allocations: 221.3 MB / 235.5 MB, free: 2.922 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.0009183/0.0009185, allocations: 93.88 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.412e-05/2.415e-05, allocations: 4 kB / 343.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09382/0.09385, allocations: 50.42 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3222/0.416, allocations: 86.66 MB / 481 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.4163, allocations: 83.94 kB / 481.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03655/0.4529, allocations: 15.39 MB / 496.5 MB, free: 1.211 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4529, allocations: 4 kB / 496.5 MB, free: 1.207 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.012e-05/0.453, allocations: 20 kB / 496.5 MB, free: 1.188 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.001763/0.4548, allocations: 1.066 MB / 497.6 MB, free: 60 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.4548, allocations: 12.03 kB / 497.6 MB, free: 48 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001719/0.455, allocations: 135.5 kB / 497.7 MB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.4552, allocations: 114.7 kB / 497.8 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009/0.4561, allocations: 0.6252 MB / 498.5 MB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.082e-05/0.4562, allocations: 66 kB / 498.5 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.4563, allocations: 87.95 kB / 498.6 MB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.4577, allocations: 0.9242 MB / 499.5 MB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.353e-05/0.4578, allocations: 3.906 kB / 499.5 MB, free: 14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.359e-05/0.4578, allocations: 32 kB / 499.6 MB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.4579, allocations: 28 kB / 499.6 MB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.459, allocations: 0.6755 MB / 0.4885 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004816/0.4638, allocations: 3.721 MB / 0.4922 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.4652, allocations: 0.7719 MB / 0.4929 GB, free: 8.641 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006875/0.4659, allocations: 431.6 kB / 0.4933 GB, free: 8.215 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.922e-05/0.4659, allocations: 8.781 kB / 0.4933 GB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006823/0.4666, allocations: 457.4 kB / 0.4938 GB, free: 7.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.785e-06/0.4666, allocations: 0 / 0.4938 GB, free: 7.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.001518/0.4682, allocations: 0.8484 MB / 0.4946 GB, free: 6.879 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.4682, allocations: 115.5 kB / 0.4947 GB, free: 6.742 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007153/0.469, allocations: 0.5816 MB / 0.4953 GB, free: 6.156 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.857e-05/0.469, allocations: 53.69 kB / 0.4953 GB, free: 6.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000248/0.4693, allocations: 352.6 kB / 0.4957 GB, free: 5.746 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.4695, allocations: 244.6 kB / 0.4959 GB, free: 5.504 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.626e-05/0.4695, allocations: 16 kB / 0.4959 GB, free: 5.488 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4697, allocations: 386.8 kB / 0.4963 GB, free: 5.102 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003978/0.4701, allocations: 241.6 kB / 0.4965 GB, free: 4.863 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004726/0.4705, allocations: 391.1 kB / 0.4969 GB, free: 4.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004185/0.471, allocations: 279.8 kB / 0.4972 GB, free: 4.152 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.471, allocations: 0 / 0.4972 GB, free: 4.152 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001356/0.4723, allocations: 0.9212 MB / 0.4981 GB, free: 3.215 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004351/0.4728, allocations: 1.334 MB / 0.4994 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.4728, allocations: 4 kB / 0.4994 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008163/0.4736, allocations: 320.6 kB / 0.4997 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.474, allocations: 95.78 kB / 0.4998 GB, free: 1.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004632/0.4787, allocations: 3.631 MB / 0.5033 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007165/0.4794, allocations: 95.25 kB / 0.5034 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.155e-05/0.4795, allocations: 35.92 kB / 0.5034 GB, free: 13.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.4795, allocations: 4 kB / 0.5034 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001379/0.4809, allocations: 0.825 MB / 0.5042 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.4809, allocations: 0 / 0.5042 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007515/0.4817, allocations: 321.9 kB / 0.5046 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000323/0.482, allocations: 87.83 kB / 0.5046 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004502/0.4865, allocations: 3.608 MB / 0.5082 GB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006025/0.4871, allocations: 87.31 kB / 0.5082 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.954e-05/0.4872, allocations: 27.98 kB / 0.5083 GB, free: 8.359 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 (62): * Single equations (assignments): 60 * 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 {8 26} Notification: Performance of prepare postOptimizeDAE: time 0.0002201/0.4874, allocations: 164.8 kB / 0.5084 GB, free: 8.191 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.4876, allocations: 82.97 kB / 0.5085 GB, free: 8.109 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002409/0.4878, allocations: 96.27 kB / 0.5086 GB, free: 8.012 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.4878, allocations: 8 kB / 0.5086 GB, free: 8.004 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.4878, allocations: 0 / 0.5086 GB, free: 8.004 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4878, allocations: 3.984 kB / 0.5086 GB, free: 8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.4905, allocations: 1.923 MB / 0.5105 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4905, allocations: 0 / 0.5105 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.4908, allocations: 59.91 kB / 0.5105 GB, free: 5.957 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007476/0.4916, allocations: 308.7 kB / 0.5108 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5e-05/0.4916, allocations: 15.98 kB / 0.5109 GB, free: 5.637 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004546/0.4962, allocations: 3.631 MB / 0.5144 GB, free: 1.863 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4962, allocations: 4 kB / 0.5144 GB, free: 1.859 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.4981, allocations: 1.303 MB / 0.5157 GB, free: 0.5352 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003234/0.4984, allocations: 255.9 kB / 0.5159 GB, free: 272 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.118e-05/0.4985, allocations: 19.94 kB / 0.5159 GB, free: 252 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004082/0.4989, allocations: 40.03 kB / 0.516 GB, free: 212 kB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.4991, allocations: 84.66 kB / 0.5161 GB, free: 128 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.792e-05/0.4992, allocations: 24 kB / 0.5161 GB, free: 104 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005403/0.4997, allocations: 455.2 kB / 0.5165 GB, free: 15.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4997, allocations: 0 / 0.5165 GB, free: 15.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001162/0.5009, allocations: 443.2 kB / 0.5169 GB, free: 15.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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 (48): * Single equations (assignments): 41 * 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 {8 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.002055/0.503, allocations: 1.886 MB / 0.5188 GB, free: 13.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002575/0.5055, allocations: 1.77 MB / 0.5205 GB, free: 11.49 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.5056, allocations: 4.25 kB / 0.5205 GB, free: 11.49 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000893/0.5065, allocations: 0.6394 MB / 0.5211 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.5071, allocations: 161.8 kB / 0.5213 GB, free: 10.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.5097, allocations: 1.344 MB / 0.5226 GB, free: 9.297 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.5103, allocations: 1.016 MB / 0.5236 GB, free: 8.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004248/0.5107, allocations: 114.6 kB / 0.5237 GB, free: 8.133 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003246/0.511, allocations: 287.3 kB / 0.524 GB, free: 7.852 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.511, allocations: 0 / 0.524 GB, free: 7.852 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2394/0.7504, allocations: 24.17 MB / 0.5476 GB, free: 127.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001417/0.7506, allocations: 200.1 kB / 0.5478 GB, free: 127.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.657/3.408, allocations: 0 / 0.5478 GB, free: 127.6 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.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_R_res.mat does not exist to compare? outputFormat=mat