Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009879/0.0009879, allocations: 181.3 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008059/0.0008058, allocations: 102.2 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002497/0.0002497, allocations: 4 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2007/0.201, allocations: 47.57 MB / 375.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08755/0.2886, allocations: 85.99 MB / 461.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002503/0.2889, allocations: 87.89 kB / 462 MB, free: 10.55 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03528/0.3242, allocations: 15.49 MB / 477.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3242, allocations: 8 kB / 477.5 MB, free: 10.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.552e-05/0.3243, allocations: 23.94 kB / 477.5 MB, free: 10.93 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.001832/0.3261, allocations: 1.164 MB / 478.7 MB, free: 9.695 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3262, allocations: 8.031 kB / 478.7 MB, free: 9.688 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001531/0.3263, allocations: 139.5 kB / 478.8 MB, free: 9.543 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.3265, allocations: 114.6 kB / 478.9 MB, free: 9.43 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008702/0.3274, allocations: 0.6485 MB / 479.6 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.704e-05/0.3274, allocations: 66 kB / 479.7 MB, free: 8.676 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.3276, allocations: 95.94 kB / 479.7 MB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.329, allocations: 0.9592 MB / 480.7 MB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.329, allocations: 7.938 kB / 480.7 MB, free: 7.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/0.3291, allocations: 39.98 kB / 480.8 MB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.597e-05/0.3291, allocations: 20 kB / 480.8 MB, free: 7.512 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.3304, allocations: 0.7456 MB / 481.5 MB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004439/0.3349, allocations: 3.775 MB / 485.3 MB, free: 2.875 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.3362, allocations: 0.8078 MB / 486.1 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.383e-05/0.3362, allocations: 12.59 kB / 486.1 MB, free: 2.047 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007666/0.337, allocations: 476.3 kB / 486.6 MB, free: 1.562 MB / 362.7 MB Notification: Performance of pre-optimization done (n=83): time 2.124e-06/0.337, allocations: 0 / 486.6 MB, free: 1.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=83): time 0.00362/0.3407, allocations: 1.563 MB / 488.1 MB, free: 15.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.904e-05/0.3407, allocations: 123.8 kB / 488.3 MB, free: 15.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007444/0.3415, allocations: 0.605 MB / 488.9 MB, free: 15.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/0.3416, allocations: 45.7 kB / 488.9 MB, free: 15.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002447/0.3418, allocations: 364.5 kB / 489.3 MB, free: 14.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.342, allocations: 252.4 kB / 489.5 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.3421, allocations: 20 kB / 489.5 MB, free: 14.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3422, allocations: 390.7 kB / 489.9 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000486/0.3427, allocations: 265.9 kB / 490.2 MB, free: 13.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005587/0.3433, allocations: 421.1 kB / 490.6 MB, free: 13.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004982/0.3438, allocations: 308.9 kB / 490.9 MB, free: 13.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3438, allocations: 4 kB / 490.9 MB, free: 13.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001482/0.3453, allocations: 0.9605 MB / 491.9 MB, free: 12.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000398/0.3457, allocations: 1.347 MB / 493.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.3457, allocations: 0 / 493.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007512/0.3465, allocations: 285.5 kB / 493.5 MB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004028/0.3469, allocations: 103.8 kB / 493.6 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004614/0.3515, allocations: 4.668 MB / 498.3 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005699/0.3521, allocations: 107.4 kB / 498.4 MB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.032e-05/0.3522, allocations: 24 kB / 498.4 MB, free: 5.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.885e-06/0.3522, allocations: 4.938 kB / 498.4 MB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001323/0.3535, allocations: 0.8581 MB / 499.2 MB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.3535, allocations: 4 kB / 499.2 MB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006904/0.3542, allocations: 286.1 kB / 499.5 MB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003571/0.3546, allocations: 103.8 kB / 499.6 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1477/0.5023, allocations: 4.643 MB / 0.4925 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007654/0.5031, allocations: 79.19 kB / 0.4925 GB, free: 102.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.302e-05/0.5032, allocations: 31.92 kB / 0.4926 GB, free: 102.1 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,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 () * Number of clocked 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.0005198/0.5037, allocations: 351.9 kB / 0.4929 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.5039, allocations: 83.72 kB / 0.493 GB, free: 102 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001929/0.5041, allocations: 100.4 kB / 0.4931 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.5041, allocations: 10.38 kB / 0.4931 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.5041, allocations: 1.625 kB / 0.4931 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.5041, allocations: 8.078 kB / 0.4931 GB, free: 101.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00279/0.5069, allocations: 1.956 MB / 0.495 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.5069, allocations: 0 / 0.495 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.5073, allocations: 77.67 kB / 0.4951 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007329/0.508, allocations: 289.7 kB / 0.4953 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.238e-05/0.5081, allocations: 18.41 kB / 0.4954 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00466/0.5128, allocations: 4.654 MB / 0.4999 GB, free: 98.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5128, allocations: 0 / 0.4999 GB, free: 98.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002042/0.5149, allocations: 1.357 MB / 0.5012 GB, free: 98.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003322/0.5152, allocations: 252.6 kB / 0.5015 GB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.095e-05/0.5153, allocations: 16.03 kB / 0.5015 GB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004087/0.5157, allocations: 45.25 kB / 0.5015 GB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/0.5159, allocations: 79.94 kB / 0.5016 GB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.643e-05/0.516, allocations: 26.03 kB / 0.5016 GB, free: 98.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006055/0.5166, allocations: 481.6 kB / 0.5021 GB, free: 98.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5166, allocations: 1.469 kB / 0.5021 GB, free: 98.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001482/0.5181, allocations: 447.9 kB / 0.5025 GB, free: 98.45 MB / 378.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.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) * Number of clocked states: 0 () * 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.002095/0.5202, allocations: 1.934 MB / 0.5044 GB, free: 97.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002501/0.5227, allocations: 1.977 MB / 0.5063 GB, free: 96.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.5227, allocations: 3.391 kB / 0.5063 GB, free: 96.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008762/0.5236, allocations: 0.7634 MB / 0.5071 GB, free: 95.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006647/0.5243, allocations: 161.5 kB / 0.5072 GB, free: 95.55 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003486/0.5278, allocations: 4.619 MB / 0.5118 GB, free: 91.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/0.5282, allocations: 1.022 MB / 0.5128 GB, free: 91.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003269/0.5286, allocations: 89.94 kB / 0.5128 GB, free: 91.18 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.5289, allocations: 298.1 kB / 0.5131 GB, free: 90.95 MB / 378.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5289, allocations: 0 / 0.5131 GB, free: 90.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03589/0.5648, allocations: 22.85 MB / 0.5354 GB, free: 76.76 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001449/0.565, allocations: 229.7 kB / 0.5357 GB, free: 76.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.515/3.08, allocations: 0 / 0.5357 GB, free: 76.52 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_RL.fmu > Modelica_3.2.3_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_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat does not exist to compare? outputFormat=mat