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.001324/0.001324, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 221.5 MB / 230.3 MB, free: 7.602 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.0008795/0.0008795, allocations: 92.89 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.874e-05/1.876e-05, allocations: 4 kB / 337.2 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0939/0.09394, allocations: 50.43 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3256/0.4196, allocations: 85.98 MB / 473.6 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.4198, allocations: 91.94 kB / 473.6 MB, free: 8.633 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03652/0.4564, allocations: 15.22 MB / 488.9 MB, free: 9.312 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4565, allocations: 0 / 488.9 MB, free: 9.312 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.825e-05/0.4565, allocations: 31.94 kB / 488.9 MB, free: 9.281 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.001917/0.4585, allocations: 1.058 MB / 490 MB, free: 8.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.4585, allocations: 16.03 kB / 490 MB, free: 8.148 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.4587, allocations: 110.7 kB / 490.1 MB, free: 8.039 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009218/0.4596, allocations: 0.637 MB / 490.7 MB, free: 7.355 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.595e-05/0.4597, allocations: 28 kB / 490.7 MB, free: 7.328 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.4598, allocations: 55.95 kB / 490.8 MB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001121/0.4609, allocations: 0.6171 MB / 491.4 MB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.4622, allocations: 0.7876 MB / 492.2 MB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.4623, allocations: 7.844 kB / 492.2 MB, free: 5.816 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.569e-05/0.4623, allocations: 3.984 kB / 492.2 MB, free: 5.812 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.383e-05/0.4624, allocations: 24 kB / 492.2 MB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004337/0.4667, allocations: 3.539 MB / 495.8 MB, free: 2.152 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.4679, allocations: 0.7342 MB / 496.5 MB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006281/0.4686, allocations: 412.7 kB / 496.9 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.102e-05/0.4686, allocations: 8.781 kB / 496.9 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006698/0.4693, allocations: 415.8 kB / 497.3 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 2.625e-06/0.4693, allocations: 0 / 497.3 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.001429/0.4708, allocations: 0.7743 MB / 498.1 MB, free: 15.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/0.4709, allocations: 115.6 kB / 498.2 MB, free: 15.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005675/0.4714, allocations: 438 kB / 498.6 MB, free: 15.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.841e-05/0.4715, allocations: 29.69 kB / 498.7 MB, free: 15.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.4718, allocations: 376.2 kB / 499 MB, free: 14.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.472, allocations: 232.6 kB / 499.3 MB, free: 14.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.472, allocations: 0 / 499.3 MB, free: 14.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4722, allocations: 370.8 kB / 499.6 MB, free: 14.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003724/0.4726, allocations: 229.5 kB / 499.9 MB, free: 13.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004781/0.4731, allocations: 361.6 kB / 0.4885 GB, free: 13.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.4735, allocations: 236.5 kB / 0.4887 GB, free: 13.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.4735, allocations: 4 kB / 0.4887 GB, free: 13.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00123/0.4747, allocations: 0.7913 MB / 0.4895 GB, free: 12.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006427/0.4754, allocations: 1.344 MB / 0.4908 GB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.4754, allocations: 4 kB / 0.4908 GB, free: 11.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008747/0.4763, allocations: 304.6 kB / 0.4911 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.4767, allocations: 91.83 kB / 0.4912 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004513/0.4812, allocations: 3.532 MB / 0.4946 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000611/0.4818, allocations: 71.41 kB / 0.4947 GB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.4819, allocations: 31.94 kB / 0.4947 GB, free: 6.922 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.4819, allocations: 4 kB / 0.4947 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001191/0.4831, allocations: 0.7067 MB / 0.4954 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.4831, allocations: 7.938 kB / 0.4954 GB, free: 6.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007148/0.4838, allocations: 305 kB / 0.4957 GB, free: 5.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003139/0.4842, allocations: 87.84 kB / 0.4958 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004212/0.4884, allocations: 3.537 MB / 0.4993 GB, free: 2.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005297/0.4889, allocations: 51.52 kB / 0.4993 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.638e-05/0.489, allocations: 24 kB / 0.4993 GB, free: 2.082 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 () * 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.0002365/0.4892, allocations: 138 kB / 0.4995 GB, free: 1.945 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001267/0.4905, allocations: 0.7697 MB / 0.5002 GB, free: 1.168 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.104e-05/0.4906, allocations: 75.11 kB / 0.5003 GB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002098/0.4908, allocations: 75.23 kB / 0.5004 GB, free: 1.016 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.4909, allocations: 8 kB / 0.5004 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.4909, allocations: 0 / 0.5004 GB, free: 1.008 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.4909, allocations: 7.984 kB / 0.5004 GB, free: 1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002271/0.4932, allocations: 1.728 MB / 0.5021 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4932, allocations: 0 / 0.5021 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.4935, allocations: 59.91 kB / 0.5021 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007122/0.4942, allocations: 308.9 kB / 0.5024 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.4942, allocations: 4 kB / 0.5024 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004189/0.4984, allocations: 3.525 MB / 0.5059 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.4985, allocations: 3.953 kB / 0.5059 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001747/0.5002, allocations: 1.21 MB / 0.507 GB, free: 9.977 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003226/0.5006, allocations: 232.1 kB / 0.5073 GB, free: 9.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.668e-05/0.5006, allocations: 7.984 kB / 0.5073 GB, free: 9.723 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003913/0.501, allocations: 28.03 kB / 0.5073 GB, free: 9.695 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.5012, allocations: 92.55 kB / 0.5074 GB, free: 9.605 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.264e-05/0.5013, allocations: 20 kB / 0.5074 GB, free: 9.586 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003511/0.5016, allocations: 315 kB / 0.5077 GB, free: 9.277 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5016, allocations: 4 kB / 0.5077 GB, free: 9.273 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0014/0.5031, allocations: 410.8 kB / 0.5081 GB, free: 8.871 MB / 394.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.002042/0.5051, allocations: 1.781 MB / 0.5098 GB, free: 7.059 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002515/0.5076, allocations: 1.666 MB / 0.5115 GB, free: 5.352 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5077, allocations: 0 / 0.5115 GB, free: 5.352 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008525/0.5085, allocations: 0.6213 MB / 0.5121 GB, free: 4.719 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000628/0.5092, allocations: 118.3 kB / 0.5122 GB, free: 4.602 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002795/0.512, allocations: 1.248 MB / 0.5134 GB, free: 3.316 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.5125, allocations: 1.019 MB / 0.5144 GB, free: 2.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003617/0.5129, allocations: 85.56 kB / 0.5145 GB, free: 2.184 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000314/0.5132, allocations: 279.3 kB / 0.5147 GB, free: 1.91 MB / 394.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5132, allocations: 0 / 0.5147 GB, free: 1.91 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04478/0.558, allocations: 20.81 MB / 0.5351 GB, free: 13.26 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.5582, allocations: 171.4 kB / 0.5352 GB, free: 13.05 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.441/2.999, allocations: 0 / 0.5352 GB, free: 13.05 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