Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.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_RL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.00158/0.00158, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001251/0.001251, allocations: 86.25 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.069e-05/3.072e-05, allocations: 0 / 350.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1167, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3656/0.4824, allocations: 89.12 MB / 491.3 MB, free: 392 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.4827, allocations: 92.66 kB / 491.4 MB, free: 340 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04011/0.5228, allocations: 16.19 MB / 0.4957 GB, free: 1.734 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.5229, allocations: 0 / 0.4957 GB, free: 1.734 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.137e-05/0.523, allocations: 31.94 kB / 0.4957 GB, free: 1.703 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.002041/0.525, allocations: 1.088 MB / 0.4967 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.5251, allocations: 8.031 kB / 0.4968 GB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001744/0.5252, allocations: 143.6 kB / 0.4969 GB, free: 416 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.5254, allocations: 114.3 kB / 0.497 GB, free: 304 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.5264, allocations: 0.6525 MB / 0.4976 GB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.983e-05/0.5265, allocations: 70 kB / 0.4977 GB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.5267, allocations: 88 kB / 0.4978 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.5283, allocations: 0.9437 MB / 0.4987 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.5283, allocations: 9.312 kB / 0.4987 GB, free: 14.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.252e-05/0.5284, allocations: 36 kB / 0.4988 GB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.5284, allocations: 27.98 kB / 0.4988 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.5297, allocations: 0.6954 MB / 0.4995 GB, free: 13.69 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004994/0.5347, allocations: 3.825 MB / 0.5032 GB, free: 9.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.5359, allocations: 0.7688 MB / 0.5039 GB, free: 8.973 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007428/0.5367, allocations: 471.1 kB / 0.5044 GB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.334e-05/0.5368, allocations: 8.781 kB / 0.5044 GB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007332/0.5375, allocations: 445.4 kB / 0.5048 GB, free: 8.051 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 2.574e-06/0.5375, allocations: 0 / 0.5048 GB, free: 8.051 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.001402/0.5389, allocations: 0.7979 MB / 0.5056 GB, free: 7.238 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.539, allocations: 119.5 kB / 0.5057 GB, free: 7.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007456/0.5398, allocations: 0.6021 MB / 0.5063 GB, free: 6.492 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.084e-05/0.5398, allocations: 45.7 kB / 0.5064 GB, free: 6.441 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/0.5401, allocations: 372.5 kB / 0.5067 GB, free: 6.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.5403, allocations: 248.5 kB / 0.5069 GB, free: 5.824 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.824e-05/0.5403, allocations: 16 kB / 0.507 GB, free: 5.809 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.5405, allocations: 390.7 kB / 0.5073 GB, free: 5.418 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004136/0.5409, allocations: 245.8 kB / 0.5076 GB, free: 5.172 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005024/0.5414, allocations: 392.5 kB / 0.5079 GB, free: 4.738 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004535/0.5419, allocations: 295.7 kB / 0.5082 GB, free: 4.441 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5419, allocations: 2.344 kB / 0.5082 GB, free: 4.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001402/0.5433, allocations: 0.9164 MB / 0.5091 GB, free: 3.508 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004826/0.5438, allocations: 1.338 MB / 0.5104 GB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.5438, allocations: 11.95 kB / 0.5104 GB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008168/0.5447, allocations: 290.9 kB / 0.5107 GB, free: 1.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.5451, allocations: 107.8 kB / 0.5108 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004994/0.5501, allocations: 4.567 MB / 0.5153 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006957/0.5508, allocations: 91.31 kB / 0.5154 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.5509, allocations: 28 kB / 0.5154 GB, free: 12.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.5509, allocations: 4 kB / 0.5154 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001354/0.5523, allocations: 0.8375 MB / 0.5162 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.5523, allocations: 2.812 kB / 0.5162 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006883/0.553, allocations: 287.6 kB / 0.5165 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003723/0.5534, allocations: 107.8 kB / 0.5166 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004613/0.558, allocations: 4.57 MB / 0.5211 GB, free: 6.629 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005634/0.5586, allocations: 91.48 kB / 0.5211 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.905e-05/0.5586, allocations: 28 kB / 0.5212 GB, free: 6.512 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.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 () * 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.0002299/0.5589, allocations: 161 kB / 0.5213 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.559, allocations: 86.95 kB / 0.5214 GB, free: 6.262 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002568/0.5593, allocations: 100.5 kB / 0.5215 GB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.5593, allocations: 8 kB / 0.5215 GB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.5593, allocations: 0 / 0.5215 GB, free: 6.152 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.5593, allocations: 11.94 kB / 0.5215 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002585/0.5619, allocations: 1.946 MB / 0.5234 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-06/0.5619, allocations: 0 / 0.5234 GB, free: 4.133 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.5623, allocations: 77.62 kB / 0.5235 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006931/0.563, allocations: 281.6 kB / 0.5238 GB, free: 3.777 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.5631, allocations: 19.98 kB / 0.5238 GB, free: 3.758 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004501/0.5676, allocations: 4.556 MB / 0.5282 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.5676, allocations: 3.938 kB / 0.5282 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.5695, allocations: 1.304 MB / 0.5295 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003417/0.5698, allocations: 264 kB / 0.5298 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.08e-05/0.5699, allocations: 16.09 kB / 0.5298 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004106/0.5704, allocations: 39.92 kB / 0.5298 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.5706, allocations: 88.64 kB / 0.5299 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-05/0.5706, allocations: 27.98 kB / 0.5299 GB, free: 13.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006149/0.5712, allocations: 463.2 kB / 0.5304 GB, free: 12.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5712, allocations: 4 kB / 0.5304 GB, free: 12.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001408/0.5727, allocations: 455.1 kB / 0.5308 GB, free: 12.26 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.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) * 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.002207/0.5749, allocations: 1.891 MB / 0.5327 GB, free: 10.33 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002822/0.5777, allocations: 1.939 MB / 0.5345 GB, free: 8.316 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5777, allocations: 0 / 0.5345 GB, free: 8.316 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009561/0.5787, allocations: 0.7365 MB / 0.5353 GB, free: 7.559 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.5794, allocations: 162 kB / 0.5354 GB, free: 7.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.5824, allocations: 1.425 MB / 0.5368 GB, free: 5.941 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006736/0.5831, allocations: 1.036 MB / 0.5378 GB, free: 4.875 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004911/0.5836, allocations: 118.6 kB / 0.5379 GB, free: 4.754 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000381/0.584, allocations: 299.3 kB / 0.5382 GB, free: 4.461 MB / 410.7 MB Notification: Performance of SimCode: time 9.32e-07/0.584, allocations: 0 / 0.5382 GB, free: 4.461 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04719/0.6312, allocations: 24.1 MB / 0.5618 GB, free: 12.75 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002395/0.6315, allocations: 198.7 kB / 0.5619 GB, free: 12.53 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.747/3.378, allocations: 0 / 0.5619 GB, free: 12.53 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat