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.001062/0.001062, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008365/0.0008365, allocations: 99.48 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.735e-05/2.745e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3273/0.4356, allocations: 88.13 MB / 483.4 MB, free: 5.059 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.4359, allocations: 88.19 kB / 483.5 MB, free: 5.008 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03609/0.472, allocations: 15.7 MB / 499.2 MB, free: 8.164 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.472, allocations: 3.188 kB / 499.2 MB, free: 8.164 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.079e-05/0.4721, allocations: 27.98 kB / 499.2 MB, free: 8.137 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001927/0.474, allocations: 1.069 MB / 0.4886 GB, free: 7.074 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.4741, allocations: 8.031 kB / 0.4886 GB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.4743, allocations: 115.5 kB / 0.4887 GB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009021/0.4752, allocations: 0.6508 MB / 0.4893 GB, free: 6.422 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.4752, allocations: 28 kB / 0.4893 GB, free: 6.395 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.4754, allocations: 52 kB / 0.4894 GB, free: 6.344 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001078/0.4764, allocations: 0.6271 MB / 0.49 GB, free: 5.984 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.4778, allocations: 0.8051 MB / 0.4908 GB, free: 5.375 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.629e-05/0.4778, allocations: 7.844 kB / 0.4908 GB, free: 5.367 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-05/0.4779, allocations: 7.984 kB / 0.4908 GB, free: 5.359 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/0.4779, allocations: 20 kB / 0.4908 GB, free: 5.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00433/0.4822, allocations: 3.565 MB / 0.4943 GB, free: 2.566 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.4833, allocations: 0.7185 MB / 0.495 GB, free: 2.176 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006021/0.4839, allocations: 414.8 kB / 0.4954 GB, free: 1.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.617e-05/0.484, allocations: 12.77 kB / 0.4954 GB, free: 1.902 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006718/0.4847, allocations: 429.3 kB / 0.4958 GB, free: 1.598 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 2.825e-06/0.4847, allocations: 0 / 0.4958 GB, free: 1.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.001445/0.4861, allocations: 0.7704 MB / 0.4966 GB, free: 0.9023 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.4862, allocations: 119.6 kB / 0.4967 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005798/0.4868, allocations: 446 kB / 0.4971 GB, free: 328 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.482e-05/0.4869, allocations: 29.69 kB / 0.4971 GB, free: 292 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003138/0.4872, allocations: 376.4 kB / 0.4975 GB, free: 15.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.4874, allocations: 236.6 kB / 0.4977 GB, free: 15.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.405e-05/0.4875, allocations: 0 / 0.4977 GB, free: 15.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4877, allocations: 378.7 kB / 0.4981 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003577/0.488, allocations: 221.6 kB / 0.4983 GB, free: 15.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004463/0.4885, allocations: 369.5 kB / 0.4987 GB, free: 14.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.4889, allocations: 232.5 kB / 0.4989 GB, free: 14.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4889, allocations: 0 / 0.4989 GB, free: 14.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001277/0.4901, allocations: 0.7978 MB / 0.4997 GB, free: 13.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004509/0.4906, allocations: 1.347 MB / 0.501 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.4906, allocations: 4 kB / 0.501 GB, free: 12.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00084/0.4915, allocations: 310.3 kB / 0.5013 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.4919, allocations: 95.83 kB / 0.5014 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004453/0.4963, allocations: 3.513 MB / 0.5048 GB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.4969, allocations: 75.48 kB / 0.5049 GB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.497, allocations: 31.94 kB / 0.5049 GB, free: 8.047 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.497, allocations: 3.984 kB / 0.5049 GB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00115/0.4981, allocations: 0.7106 MB / 0.5056 GB, free: 7.332 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.4981, allocations: 4 kB / 0.5056 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007029/0.4989, allocations: 304.7 kB / 0.5059 GB, free: 7.027 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003111/0.4992, allocations: 92.02 kB / 0.506 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.5035, allocations: 3.518 MB / 0.5094 GB, free: 3.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005311/0.5041, allocations: 55.5 kB / 0.5095 GB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.112e-05/0.5042, allocations: 28 kB / 0.5095 GB, free: 3.219 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 () * 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.0002483/0.5044, allocations: 139.1 kB / 0.5096 GB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001317/0.5057, allocations: 0.7775 MB / 0.5104 GB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.5059, allocations: 71.14 kB / 0.5105 GB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002205/0.5061, allocations: 75.38 kB / 0.5105 GB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.5061, allocations: 9.969 kB / 0.5105 GB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.5061, allocations: 3.984 kB / 0.5105 GB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5061, allocations: 11.94 kB / 0.5105 GB, free: 2.117 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/0.5085, allocations: 1.724 MB / 0.5122 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.5086, allocations: 0 / 0.5122 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002917/0.5089, allocations: 67.91 kB / 0.5123 GB, free: 288 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007382/0.5096, allocations: 305 kB / 0.5126 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.961e-05/0.5097, allocations: 3.938 kB / 0.5126 GB, free: 15.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004194/0.5139, allocations: 3.525 MB / 0.516 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.5139, allocations: 0 / 0.516 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00184/0.5157, allocations: 1.225 MB / 0.5172 GB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/0.5161, allocations: 232.1 kB / 0.5175 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.5162, allocations: 4 kB / 0.5175 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004281/0.5167, allocations: 36.03 kB / 0.5175 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.5169, allocations: 80.66 kB / 0.5176 GB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.962e-05/0.517, allocations: 23.98 kB / 0.5176 GB, free: 10.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004681/0.5174, allocations: 319 kB / 0.5179 GB, free: 10.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5174, allocations: 4 kB / 0.5179 GB, free: 10.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001629/0.5191, allocations: 402.9 kB / 0.5183 GB, free: 9.988 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.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 (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.002348/0.5214, allocations: 1.794 MB / 0.52 GB, free: 8.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002902/0.5244, allocations: 1.67 MB / 0.5217 GB, free: 6.449 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.5244, allocations: 1.781 kB / 0.5217 GB, free: 6.449 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.5254, allocations: 0.6136 MB / 0.5223 GB, free: 5.824 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008476/0.5263, allocations: 118.5 kB / 0.5224 GB, free: 5.715 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.5297, allocations: 1.266 MB / 0.5236 GB, free: 4.41 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007246/0.5304, allocations: 1.02 MB / 0.5246 GB, free: 3.355 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004553/0.5309, allocations: 85.03 kB / 0.5247 GB, free: 3.273 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/0.5312, allocations: 291.3 kB / 0.525 GB, free: 2.992 MB / 394.7 MB Notification: Performance of SimCode: time 7.41e-07/0.5312, allocations: 0 / 0.525 GB, free: 2.992 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05337/0.5846, allocations: 21.04 MB / 0.5455 GB, free: 14.13 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.5849, allocations: 163.2 kB / 0.5457 GB, free: 13.94 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.551/3.136, allocations: 3.938 kB / 0.5457 GB, free: 13.93 MB / 426.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