Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001137/0.001137, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 227.2 MB / 245 MB, free: 5.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009669/0.0009669, allocations: 99.31 kB / 297.2 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002021/0.0002021, allocations: 4 kB / 358 MB, free: 9.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2062, allocations: 51.48 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0981/0.3044, allocations: 88.86 MB / 498.4 MB, free: 1.703 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.3047, allocations: 93.39 kB / 498.5 MB, free: 1.613 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03823/0.3429, allocations: 15.87 MB / 0.5023 GB, free: 1.645 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.343, allocations: 3.938 kB / 0.5023 GB, free: 1.641 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.584e-05/0.3431, allocations: 31.98 kB / 0.5023 GB, free: 1.609 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002475/0.3455, allocations: 1.163 MB / 0.5034 GB, free: 388 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3456, allocations: 8.031 kB / 0.5035 GB, free: 380 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003033/0.3459, allocations: 139.5 kB / 0.5036 GB, free: 232 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002843/0.3462, allocations: 118.9 kB / 0.5037 GB, free: 112 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.179/0.5253, allocations: 0.6328 MB / 0.5043 GB, free: 88.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.249e-05/0.5254, allocations: 68.89 kB / 0.5044 GB, free: 88.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001589/0.5256, allocations: 89.42 kB / 0.5045 GB, free: 88.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001996/0.5276, allocations: 0.9633 MB / 0.5054 GB, free: 87.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.823e-05/0.5276, allocations: 4.625 kB / 0.5054 GB, free: 87.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.713e-05/0.5277, allocations: 38.08 kB / 0.5055 GB, free: 87.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.5277, allocations: 22.91 kB / 0.5055 GB, free: 87.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.5292, allocations: 0.749 MB / 0.5062 GB, free: 87.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004541/0.5337, allocations: 3.764 MB / 0.5099 GB, free: 86.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/0.5351, allocations: 0.7928 MB / 0.5107 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.412e-05/0.5352, allocations: 11.41 kB / 0.5107 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007677/0.536, allocations: 462.7 kB / 0.5111 GB, free: 86.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.866e-06/0.536, allocations: 3.031 kB / 0.5111 GB, free: 86.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.004229/0.5402, allocations: 1.701 MB / 0.5128 GB, free: 85.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.5403, allocations: 123.3 kB / 0.5129 GB, free: 85.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006306/0.5409, allocations: 0.6098 MB / 0.5135 GB, free: 85.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.085e-05/0.541, allocations: 46.23 kB / 0.5135 GB, free: 85.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.5412, allocations: 368.6 kB / 0.5139 GB, free: 85.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.5413, allocations: 244.7 kB / 0.5141 GB, free: 84.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.202e-05/0.5414, allocations: 15.28 kB / 0.5141 GB, free: 84.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.858e-05/0.5414, allocations: 389.8 kB / 0.5145 GB, free: 84.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.5419, allocations: 267.4 kB / 0.5148 GB, free: 84.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004589/0.5423, allocations: 413.6 kB / 0.5152 GB, free: 84.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004234/0.5428, allocations: 309.1 kB / 0.5154 GB, free: 83.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.5428, allocations: 0 / 0.5154 GB, free: 83.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001285/0.5441, allocations: 0.9512 MB / 0.5164 GB, free: 83.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002074/0.5443, allocations: 1.342 MB / 0.5177 GB, free: 82.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.5443, allocations: 6.594 kB / 0.5177 GB, free: 82.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000719/0.545, allocations: 299.1 kB / 0.518 GB, free: 82.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.5454, allocations: 99.98 kB / 0.5181 GB, free: 82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003677/0.5491, allocations: 3.584 MB / 0.5216 GB, free: 79.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.5496, allocations: 103.4 kB / 0.5217 GB, free: 79.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.383e-05/0.5496, allocations: 24.28 kB / 0.5217 GB, free: 79.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.991e-06/0.5496, allocations: 3.812 kB / 0.5217 GB, free: 79.42 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001139/0.5508, allocations: 0.8428 MB / 0.5225 GB, free: 79.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.5508, allocations: 3.5 kB / 0.5225 GB, free: 79.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006269/0.5514, allocations: 299.8 kB / 0.5228 GB, free: 78.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.5518, allocations: 90.92 kB / 0.5229 GB, free: 78.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.5554, allocations: 3.573 MB / 0.5264 GB, free: 76.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004891/0.5559, allocations: 85.23 kB / 0.5265 GB, free: 76.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.5559, allocations: 25.28 kB / 0.5265 GB, free: 76.33 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.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.0004416/0.5564, allocations: 342.5 kB / 0.5268 GB, free: 76.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.5565, allocations: 86.03 kB / 0.5269 GB, free: 76.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001701/0.5566, allocations: 97.38 kB / 0.527 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.5567, allocations: 10.16 kB / 0.527 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5567, allocations: 0 / 0.527 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.5567, allocations: 10.47 kB / 0.527 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.5588, allocations: 1.94 MB / 0.5289 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5589, allocations: 3.5 kB / 0.5289 GB, free: 74.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.5591, allocations: 64.89 kB / 0.529 GB, free: 74.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006428/0.5598, allocations: 295.9 kB / 0.5293 GB, free: 74.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.399e-05/0.5598, allocations: 15.66 kB / 0.5293 GB, free: 74.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003528/0.5634, allocations: 3.57 MB / 0.5328 GB, free: 72.01 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5634, allocations: 3.953 kB / 0.5328 GB, free: 72.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.565, allocations: 1.322 MB / 0.534 GB, free: 70.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002606/0.5653, allocations: 257.9 kB / 0.5343 GB, free: 70.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.647e-05/0.5654, allocations: 22.05 kB / 0.5343 GB, free: 70.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003802/0.5658, allocations: 34.42 kB / 0.5343 GB, free: 70.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.5659, allocations: 93.94 kB / 0.5344 GB, free: 70.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.839e-05/0.566, allocations: 19.95 kB / 0.5345 GB, free: 70.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004623/0.5665, allocations: 488.4 kB / 0.5349 GB, free: 69.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5665, allocations: 0 / 0.5349 GB, free: 69.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001048/0.5675, allocations: 439.7 kB / 0.5353 GB, free: 69.54 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.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.001823/0.5693, allocations: 1.913 MB / 0.5372 GB, free: 67.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002234/0.5716, allocations: 1.798 MB / 0.539 GB, free: 65.98 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.5716, allocations: 0 / 0.539 GB, free: 65.98 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007943/0.5724, allocations: 0.6709 MB / 0.5396 GB, free: 65.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006247/0.573, allocations: 156.7 kB / 0.5398 GB, free: 65.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003466/0.5765, allocations: 4.564 MB / 0.5442 GB, free: 60.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.577, allocations: 1.017 MB / 0.5452 GB, free: 59.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003195/0.5773, allocations: 88.47 kB / 0.5453 GB, free: 59.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.5776, allocations: 303.9 kB / 0.5456 GB, free: 59.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5776, allocations: 0 / 0.5456 GB, free: 59.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03645/0.6141, allocations: 22.99 MB / 0.568 GB, free: 38.73 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/0.6142, allocations: 232.6 kB / 0.5683 GB, free: 38.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.469/3.083, allocations: 0 / 0.5683 GB, free: 38.48 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat