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.001172/0.001172, allocations: 180.2 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.383/1.383, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.0008472/0.0008472, allocations: 94.47 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002376/0.0002376, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1937, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09514/0.2889, allocations: 86.72 MB / 488.3 MB, free: 9.723 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.2892, allocations: 87.94 kB / 488.4 MB, free: 9.637 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03523/0.3244, allocations: 15.4 MB / 0.492 GB, free: 10.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.507e-06/0.3245, allocations: 0 / 0.492 GB, free: 10.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.536e-05/0.3245, allocations: 23.94 kB / 0.492 GB, free: 10.1 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.001992/0.3265, allocations: 1.155 MB / 0.4931 GB, free: 8.879 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.3266, allocations: 8.031 kB / 0.4931 GB, free: 8.871 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/0.3268, allocations: 135.4 kB / 0.4933 GB, free: 8.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.3269, allocations: 118.7 kB / 0.4934 GB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009136/0.3279, allocations: 0.6292 MB / 0.494 GB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.368e-05/0.3279, allocations: 62 kB / 0.4941 GB, free: 7.883 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3281, allocations: 91.94 kB / 0.4941 GB, free: 7.793 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.3297, allocations: 0.9553 MB / 0.4951 GB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/0.3297, allocations: 4 kB / 0.4951 GB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.016e-05/0.3298, allocations: 39.98 kB / 0.4951 GB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.3299, allocations: 20 kB / 0.4951 GB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.3313, allocations: 0.7378 MB / 0.4959 GB, free: 5.988 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004944/0.3363, allocations: 3.72 MB / 0.4995 GB, free: 2.156 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.3377, allocations: 0.7988 MB / 0.5003 GB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.054e-05/0.3377, allocations: 8.656 kB / 0.5003 GB, free: 1.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007857/0.3385, allocations: 455.3 kB / 0.5007 GB, free: 0.875 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 3.437e-06/0.3385, allocations: 0 / 0.5007 GB, free: 0.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.2019/0.5405, allocations: 1.696 MB / 0.5024 GB, free: 93.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.644e-05/0.5406, allocations: 118.3 kB / 0.5025 GB, free: 93.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009559/0.5415, allocations: 0.6032 MB / 0.5031 GB, free: 93.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.758e-05/0.5416, allocations: 41.72 kB / 0.5031 GB, free: 93.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.5419, allocations: 360.9 kB / 0.5035 GB, free: 93.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.542, allocations: 246.1 kB / 0.5037 GB, free: 93.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.5421, allocations: 17.62 kB / 0.5037 GB, free: 93.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.5422, allocations: 387.5 kB / 0.5041 GB, free: 92.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000519/0.5427, allocations: 268.6 kB / 0.5043 GB, free: 92.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005426/0.5433, allocations: 413.5 kB / 0.5047 GB, free: 92.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005075/0.5438, allocations: 310.5 kB / 0.505 GB, free: 92.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.5438, allocations: 1.438 kB / 0.505 GB, free: 92.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001789/0.5456, allocations: 0.951 MB / 0.506 GB, free: 92.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002965/0.5459, allocations: 1.345 MB / 0.5073 GB, free: 91.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.5459, allocations: 4.031 kB / 0.5073 GB, free: 91.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009765/0.5469, allocations: 293.1 kB / 0.5076 GB, free: 91.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000454/0.5474, allocations: 105.1 kB / 0.5077 GB, free: 91.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003859/0.5513, allocations: 3.578 MB / 0.5111 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000558/0.5518, allocations: 93.08 kB / 0.5112 GB, free: 89.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.754e-05/0.5519, allocations: 27.69 kB / 0.5113 GB, free: 89.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.5519, allocations: 7.562 kB / 0.5113 GB, free: 89.7 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001191/0.5531, allocations: 0.8406 MB / 0.5121 GB, free: 89.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.5531, allocations: 3.688 kB / 0.5121 GB, free: 89.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006607/0.5538, allocations: 307 kB / 0.5124 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003206/0.5541, allocations: 86.58 kB / 0.5125 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003625/0.5577, allocations: 3.575 MB / 0.516 GB, free: 86.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.5582, allocations: 77.62 kB / 0.516 GB, free: 86.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.316e-05/0.5583, allocations: 29.84 kB / 0.5161 GB, free: 86.69 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 (64): * Single equations (assignments): 62 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0004438/0.5587, allocations: 348 kB / 0.5164 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.831e-05/0.5589, allocations: 79 kB / 0.5165 GB, free: 86.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000164/0.559, allocations: 95.19 kB / 0.5166 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.559, allocations: 12.31 kB / 0.5166 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.5591, allocations: 0 / 0.5166 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.5591, allocations: 3.797 kB / 0.5166 GB, free: 86.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.5612, allocations: 1.938 MB / 0.5185 GB, free: 85.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.5612, allocations: 0 / 0.5185 GB, free: 85.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.5615, allocations: 70.14 kB / 0.5185 GB, free: 85.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006384/0.5621, allocations: 294.4 kB / 0.5188 GB, free: 85.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.5622, allocations: 17.17 kB / 0.5188 GB, free: 85.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003482/0.5657, allocations: 3.566 MB / 0.5223 GB, free: 82.63 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.5657, allocations: 3.688 kB / 0.5223 GB, free: 82.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/0.5674, allocations: 1.324 MB / 0.5236 GB, free: 81.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002585/0.5676, allocations: 253.3 kB / 0.5239 GB, free: 81.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.794e-05/0.5677, allocations: 15.88 kB / 0.5239 GB, free: 81.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.5682, allocations: 41.89 kB / 0.5239 GB, free: 81.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/0.5683, allocations: 89.42 kB / 0.524 GB, free: 81.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.297e-05/0.5684, allocations: 20.66 kB / 0.524 GB, free: 81.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004952/0.5689, allocations: 475.8 kB / 0.5245 GB, free: 81.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.5689, allocations: 0 / 0.5245 GB, free: 81.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001078/0.57, allocations: 446.2 kB / 0.5249 GB, free: 81.39 MB / 378.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 43 * 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 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.001901/0.5719, allocations: 1.92 MB / 0.5268 GB, free: 80.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002362/0.5743, allocations: 1.8 MB / 0.5285 GB, free: 78.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.5743, allocations: 4 kB / 0.5285 GB, free: 78.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008198/0.5751, allocations: 0.6685 MB / 0.5292 GB, free: 78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000603/0.5757, allocations: 154.3 kB / 0.5293 GB, free: 77.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003254/0.579, allocations: 4.539 MB / 0.5338 GB, free: 73.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003888/0.5794, allocations: 1.011 MB / 0.5347 GB, free: 72.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003015/0.5797, allocations: 90.59 kB / 0.5348 GB, free: 72.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002911/0.58, allocations: 296.8 kB / 0.5351 GB, free: 72.22 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.58, allocations: 0 / 0.5351 GB, free: 72.22 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03759/0.6176, allocations: 22.77 MB / 0.5574 GB, free: 52.7 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/0.6178, allocations: 241.3 kB / 0.5576 GB, free: 52.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.586/3.203, allocations: 0 / 0.5576 GB, free: 52.45 MB / 378.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