Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,fileNamePrefix="Modelica_3_2_3_cpp_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_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002165/0.002164, allocations: 181.5 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.127/2.127, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001145, allocations: 85.02 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.662e-05/2.679e-05, allocations: 0 / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3445/0.3446, allocations: 47.55 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4858, allocations: 84.95 MB / 447.4 MB, free: 1.266 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003477/0.4862, allocations: 87.94 kB / 447.5 MB, free: 1.18 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06225/0.5485, allocations: 15.01 MB / 462.5 MB, free: 2.164 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5485, allocations: 0 / 462.5 MB, free: 2.164 MB / 347.1 MB Notification: Performance of Transformations before backend: time 0.0001278/0.5487, allocations: 24 kB / 462.5 MB, free: 2.141 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.003255/0.5519, allocations: 1.059 MB / 463.6 MB, free: 1.023 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.552, allocations: 8.031 kB / 463.6 MB, free: 1.016 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004124/0.5524, allocations: 110.7 kB / 463.7 MB, free: 0.9062 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.5542, allocations: 0.6448 MB / 464.3 MB, free: 220 kB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/0.5543, allocations: 28 kB / 464.4 MB, free: 192 kB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001957/0.5545, allocations: 52 kB / 464.4 MB, free: 140 kB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002036/0.5566, allocations: 0.6171 MB / 465 MB, free: 15.52 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.5588, allocations: 0.791 MB / 465.8 MB, free: 14.69 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/0.5589, allocations: 0 / 465.8 MB, free: 14.69 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001155/0.559, allocations: 4 kB / 465.8 MB, free: 14.68 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.335e-05/0.5591, allocations: 20 kB / 465.8 MB, free: 14.66 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008249/0.5673, allocations: 3.524 MB / 469.4 MB, free: 11.04 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002073/0.5695, allocations: 0.7225 MB / 470.1 MB, free: 10.3 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00113/0.5706, allocations: 419.6 kB / 470.5 MB, free: 9.883 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.704e-05/0.5707, allocations: 12.78 kB / 470.5 MB, free: 9.871 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001099/0.5718, allocations: 415.7 kB / 470.9 MB, free: 9.445 MB / 363.1 MB Notification: Performance of pre-optimization done (n=81): time 3.667e-06/0.5719, allocations: 0 / 470.9 MB, free: 9.445 MB / 363.1 MB Notification: Performance of matching and sorting (n=81): time 0.002548/0.5744, allocations: 0.7782 MB / 471.7 MB, free: 8.66 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.5746, allocations: 119.6 kB / 471.8 MB, free: 8.52 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009445/0.5755, allocations: 433.9 kB / 472.2 MB, free: 8.09 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.5757, allocations: 33.69 kB / 472.3 MB, free: 8.051 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/0.5762, allocations: 402.8 kB / 472.7 MB, free: 7.652 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003607/0.5765, allocations: 232.6 kB / 472.9 MB, free: 7.422 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.5766, allocations: 0 / 472.9 MB, free: 7.422 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.5768, allocations: 342.8 kB / 473.2 MB, free: 7.078 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006678/0.5775, allocations: 225.6 kB / 473.4 MB, free: 6.855 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007873/0.5783, allocations: 361.6 kB / 473.8 MB, free: 6.449 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006556/0.579, allocations: 236.5 kB / 474 MB, free: 6.219 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.579, allocations: 3.953 kB / 474 MB, free: 6.215 MB / 363.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002147/0.5811, allocations: 0.7607 MB / 474.8 MB, free: 5.449 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008108/0.582, allocations: 1.348 MB / 476.1 MB, free: 3.992 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.582, allocations: 7.984 kB / 476.1 MB, free: 3.984 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001475/0.5835, allocations: 308.6 kB / 476.4 MB, free: 3.68 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007423/0.5843, allocations: 99.81 kB / 476.5 MB, free: 3.582 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008166/0.5924, allocations: 3.521 MB / 480.1 MB, free: 15.94 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.5935, allocations: 63.5 kB / 480.1 MB, free: 15.88 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.692e-05/0.5937, allocations: 28 kB / 480.2 MB, free: 15.85 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.5937, allocations: 6.5 kB / 480.2 MB, free: 15.84 MB / 379.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002073/0.5958, allocations: 0.7103 MB / 480.9 MB, free: 15.13 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.5958, allocations: 11.89 kB / 480.9 MB, free: 15.12 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.5971, allocations: 301.1 kB / 481.2 MB, free: 14.82 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006705/0.5978, allocations: 83.89 kB / 481.3 MB, free: 14.74 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009706/0.6075, allocations: 3.475 MB / 484.7 MB, free: 11.15 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.6089, allocations: 56.17 kB / 484.8 MB, free: 11.09 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/0.6091, allocations: 32 kB / 484.8 MB, free: 11.06 MB / 379.1 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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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.0004791/0.6096, allocations: 143 kB / 485 MB, free: 10.92 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003968/0.6136, allocations: 0.7774 MB / 485.7 MB, free: 10.14 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004602/0.6141, allocations: 71.16 kB / 485.8 MB, free: 10.07 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004193/0.6146, allocations: 71.3 kB / 485.9 MB, free: 9.992 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.6146, allocations: 11.98 kB / 485.9 MB, free: 9.98 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.6147, allocations: 3.938 kB / 485.9 MB, free: 9.977 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.131e-05/0.6147, allocations: 3.984 kB / 485.9 MB, free: 9.973 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007044/0.6217, allocations: 1.732 MB / 487.6 MB, free: 8.191 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.416e-05/0.6219, allocations: 4 kB / 487.6 MB, free: 8.188 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009187/0.6228, allocations: 55.91 kB / 487.7 MB, free: 8.133 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00237/0.6252, allocations: 296.9 kB / 488 MB, free: 7.84 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000177/0.6254, allocations: 11.98 kB / 488 MB, free: 7.828 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/0.6375, allocations: 3.521 MB / 491.5 MB, free: 4.188 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.6375, allocations: 4 kB / 491.5 MB, free: 4.184 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004782/0.6423, allocations: 1.221 MB / 492.7 MB, free: 2.941 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008797/0.6433, allocations: 224.2 kB / 493 MB, free: 2.703 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/0.6436, allocations: 15.94 kB / 493 MB, free: 2.688 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.6448, allocations: 24.05 kB / 493 MB, free: 2.664 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004759/0.6453, allocations: 84.66 kB / 493.1 MB, free: 2.582 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.6454, allocations: 23.98 kB / 493.1 MB, free: 2.559 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0009415/0.6464, allocations: 319 kB / 493.4 MB, free: 2.246 MB / 379.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.6464, allocations: 0 / 493.4 MB, free: 2.246 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.003259/0.6497, allocations: 398.8 kB / 493.8 MB, free: 1.855 MB / 379.1 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,meanVoltage.y) * 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.005845/0.6556, allocations: 1.781 MB / 495.6 MB, free: 44 kB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.006975/0.6626, allocations: 1.647 MB / 497.2 MB, free: 14.35 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.6627, allocations: 4 kB / 497.2 MB, free: 14.35 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002541/0.6653, allocations: 0.6066 MB / 497.8 MB, free: 13.73 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.6671, allocations: 115.6 kB / 498 MB, free: 13.62 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008256/0.6754, allocations: 1.289 MB / 499.2 MB, free: 12.29 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.6769, allocations: 1.007 MB / 0.4885 GB, free: 11.25 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009829/0.678, allocations: 291.8 kB / 0.4888 GB, free: 10.97 MB / 395.1 MB Notification: Performance of SimCode: time 1.603e-06/0.678, allocations: 4 kB / 0.4888 GB, free: 10.96 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.19/3.868, allocations: 17.59 MB / 0.506 GB, free: 116.4 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat