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_RL.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_RL,fileNamePrefix="Modelica_3_2_3_cpp_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_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.002247/0.002247, allocations: 179.4 kB / 8.364 MB, free: 0.7148 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.151/2.151, 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.001163/0.001163, allocations: 89.34 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.789e-05/3.79e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4546/0.4547, allocations: 47.56 MB / 362.4 MB, free: 45.76 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1963/0.651, allocations: 85.25 MB / 447.7 MB, free: 0.9648 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004738/0.6515, allocations: 83.95 kB / 447.8 MB, free: 0.8828 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09/0.7416, allocations: 15.33 MB / 463.1 MB, free: 1.555 MB / 347.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.7416, allocations: 0 / 463.1 MB, free: 1.555 MB / 347.1 MB Notification: Performance of Transformations before backend: time 0.000169/0.7418, allocations: 24 kB / 463.1 MB, free: 1.531 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.005034/0.7469, allocations: 1.081 MB / 464.2 MB, free: 404 kB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.883e-05/0.747, allocations: 11.97 kB / 464.2 MB, free: 392 kB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007693/0.7478, allocations: 114.7 kB / 464.3 MB, free: 276 kB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.7507, allocations: 0.6486 MB / 465 MB, free: 15.57 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.7508, allocations: 28 kB / 465 MB, free: 15.55 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004118/0.7513, allocations: 59.98 kB / 465.1 MB, free: 15.49 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003556/0.7548, allocations: 0.621 MB / 465.7 MB, free: 14.87 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004167/0.7591, allocations: 0.8031 MB / 466.5 MB, free: 14.02 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.183e-05/0.7592, allocations: 4 kB / 466.5 MB, free: 14.02 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001774/0.7594, allocations: 3.984 kB / 466.5 MB, free: 14.01 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.898e-05/0.7595, allocations: 28 kB / 466.5 MB, free: 13.98 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01301/0.7725, allocations: 3.563 MB / 470.1 MB, free: 10.32 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003112/0.7757, allocations: 0.7369 MB / 470.8 MB, free: 9.57 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00204/0.7778, allocations: 447.1 kB / 471.3 MB, free: 9.133 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001456/0.778, allocations: 8.781 kB / 471.3 MB, free: 9.125 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001869/0.7799, allocations: 431.7 kB / 471.7 MB, free: 8.684 MB / 363.1 MB Notification: Performance of pre-optimization done (n=83): time 7.193e-06/0.7799, allocations: 0 / 471.7 MB, free: 8.684 MB / 363.1 MB Notification: Performance of matching and sorting (n=83): time 0.00354/0.7835, allocations: 0.7277 MB / 472.4 MB, free: 7.945 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001781/0.7837, allocations: 111.6 kB / 472.5 MB, free: 7.812 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001423/0.7852, allocations: 445.9 kB / 473 MB, free: 7.371 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002477/0.7855, allocations: 33.7 kB / 473 MB, free: 7.332 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006252/0.7861, allocations: 402.9 kB / 473.4 MB, free: 6.934 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006258/0.7868, allocations: 232.5 kB / 473.6 MB, free: 6.703 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.7869, allocations: 4 kB / 473.6 MB, free: 6.699 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0002672/0.7872, allocations: 338.8 kB / 473.9 MB, free: 6.359 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.7884, allocations: 230.1 kB / 474.2 MB, free: 6.133 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.79, allocations: 376.7 kB / 474.5 MB, free: 5.719 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.7913, allocations: 244.5 kB / 474.8 MB, free: 5.48 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-05/0.7914, allocations: 0 / 474.8 MB, free: 5.48 MB / 363.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003629/0.7951, allocations: 0.7669 MB / 475.5 MB, free: 4.699 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009655/0.7961, allocations: 1.346 MB / 476.9 MB, free: 3.246 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.098e-05/0.7962, allocations: 4 kB / 476.9 MB, free: 3.242 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/0.7983, allocations: 277.6 kB / 477.2 MB, free: 2.965 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.7995, allocations: 111.8 kB / 477.3 MB, free: 2.855 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01202/0.8116, allocations: 4.418 MB / 481.7 MB, free: 14.21 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.8132, allocations: 71.53 kB / 481.8 MB, free: 14.14 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.8135, allocations: 28 kB / 481.8 MB, free: 14.11 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.8135, allocations: 4 kB / 481.8 MB, free: 14.11 MB / 379.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003308/0.8169, allocations: 0.7074 MB / 482.5 MB, free: 13.39 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.044e-05/0.817, allocations: 7.953 kB / 482.5 MB, free: 13.38 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001655/0.8186, allocations: 281.5 kB / 482.8 MB, free: 13.11 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002846/0.8216, allocations: 107.9 kB / 482.9 MB, free: 13 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.8328, allocations: 4.381 MB / 487.3 MB, free: 8.391 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.834, allocations: 51.61 kB / 487.3 MB, free: 8.34 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/0.8342, allocations: 28 kB / 487.3 MB, free: 8.312 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 (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.0004584/0.8346, allocations: 138.7 kB / 487.5 MB, free: 8.172 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003126/0.8378, allocations: 0.7238 MB / 488.2 MB, free: 7.438 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004352/0.8383, allocations: 79.09 kB / 488.3 MB, free: 7.359 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004022/0.8387, allocations: 75.38 kB / 488.4 MB, free: 7.281 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/0.8388, allocations: 8 kB / 488.4 MB, free: 7.273 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.8388, allocations: 3.938 kB / 488.4 MB, free: 7.27 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.976e-05/0.8388, allocations: 3.984 kB / 488.4 MB, free: 7.266 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006344/0.8452, allocations: 1.747 MB / 490.1 MB, free: 5.465 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.8453, allocations: 0 / 490.1 MB, free: 5.465 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000984/0.8462, allocations: 71.91 kB / 490.2 MB, free: 5.395 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001795/0.8481, allocations: 281.5 kB / 490.5 MB, free: 5.113 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001888/0.8483, allocations: 0 / 490.5 MB, free: 5.113 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0111/0.8595, allocations: 4.419 MB / 494.9 MB, free: 480 kB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.8595, allocations: 0 / 494.9 MB, free: 480 kB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004737/0.8643, allocations: 1.218 MB / 496.1 MB, free: 15.23 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009658/0.8653, allocations: 240 kB / 496.3 MB, free: 14.98 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.8657, allocations: 4 kB / 496.3 MB, free: 14.97 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.8669, allocations: 31.97 kB / 496.4 MB, free: 14.94 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005201/0.8675, allocations: 84.66 kB / 496.5 MB, free: 14.86 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.8676, allocations: 23.92 kB / 496.5 MB, free: 14.84 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009553/0.8686, allocations: 323 kB / 496.8 MB, free: 14.52 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.8686, allocations: 0 / 496.8 MB, free: 14.52 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.003763/0.8724, allocations: 406.8 kB / 497.2 MB, free: 14.12 MB / 395.1 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.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 (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.005165/0.8776, allocations: 1.794 MB / 499 MB, free: 12.29 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0058/0.8835, allocations: 1.807 MB / 0.4891 GB, free: 10.41 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/0.8836, allocations: 0 / 0.4891 GB, free: 10.41 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002226/0.8858, allocations: 0.6904 MB / 0.4897 GB, free: 9.703 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.8874, allocations: 110.5 kB / 0.4898 GB, free: 9.598 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00704/0.8944, allocations: 1.355 MB / 0.4912 GB, free: 8.191 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001302/0.8958, allocations: 1.019 MB / 0.4922 GB, free: 7.141 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009416/0.8968, allocations: 295.3 kB / 0.4924 GB, free: 6.852 MB / 395.1 MB Notification: Performance of SimCode: time 1.142e-06/0.8968, allocations: 0 / 0.4924 GB, free: 6.852 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.372/4.269, allocations: 21.69 MB / 0.5136 GB, free: 114.3 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.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_RL_res.mat does not exist to compare? outputFormat=mat