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_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_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_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.001034/0.001034, allocations: 180.1 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.512/1.512, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008638/0.0008638, allocations: 92.11 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.0002402, allocations: 4 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2346, allocations: 47.58 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0844/0.3191, allocations: 85.7 MB / 461.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/0.3194, allocations: 87.95 kB / 461.7 MB, free: 10.86 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03334/0.3527, allocations: 15.16 MB / 476.9 MB, free: 11.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3527, allocations: 4 kB / 476.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.026e-05/0.3528, allocations: 24.16 kB / 476.9 MB, free: 11.57 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.001744/0.3546, allocations: 1.143 MB / 478 MB, free: 10.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3546, allocations: 8.031 kB / 478 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001543/0.3548, allocations: 135.3 kB / 478.2 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.3549, allocations: 118.6 kB / 478.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008441/0.3558, allocations: 0.6487 MB / 478.9 MB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.699e-05/0.3558, allocations: 66 kB / 479 MB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.3559, allocations: 84 kB / 479.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001412/0.3574, allocations: 0.9397 MB / 480 MB, free: 8.273 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.3574, allocations: 4 kB / 480 MB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.721e-05/0.3575, allocations: 39.92 kB / 480.1 MB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.3575, allocations: 20 kB / 480.1 MB, free: 8.211 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.3587, allocations: 0.7417 MB / 480.8 MB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004191/0.363, allocations: 3.713 MB / 484.5 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.3642, allocations: 0.7952 MB / 485.3 MB, free: 2.836 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.3642, allocations: 8.656 kB / 485.3 MB, free: 2.828 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007199/0.365, allocations: 463.2 kB / 485.8 MB, free: 2.355 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 2.565e-06/0.365, allocations: 0 / 485.8 MB, free: 2.355 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.004471/0.3695, allocations: 1.705 MB / 487.5 MB, free: 0.625 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.3695, allocations: 123.4 kB / 487.6 MB, free: 488 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007279/0.3703, allocations: 0.6089 MB / 488.2 MB, free: 15.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.3703, allocations: 41.7 kB / 488.3 MB, free: 15.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000278/0.3706, allocations: 356.7 kB / 488.6 MB, free: 15.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.3708, allocations: 240.5 kB / 488.9 MB, free: 15.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.3709, allocations: 19.94 kB / 488.9 MB, free: 15.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.3711, allocations: 382.8 kB / 489.3 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.3715, allocations: 269.8 kB / 489.5 MB, free: 14.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005427/0.3721, allocations: 413.1 kB / 489.9 MB, free: 14.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004881/0.3726, allocations: 304.9 kB / 490.2 MB, free: 13.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.3726, allocations: 4 kB / 490.2 MB, free: 13.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001486/0.3741, allocations: 0.9559 MB / 491.2 MB, free: 12.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004189/0.3745, allocations: 1.339 MB / 492.5 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3745, allocations: 7.984 kB / 492.5 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007723/0.3753, allocations: 292.6 kB / 492.8 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.3757, allocations: 99.88 kB / 492.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004241/0.3799, allocations: 3.58 MB / 496.5 MB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.3804, allocations: 95.33 kB / 496.6 MB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-05/0.3805, allocations: 24 kB / 496.6 MB, free: 7.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.3805, allocations: 4 kB / 496.6 MB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001311/0.3818, allocations: 0.8455 MB / 497.5 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3819, allocations: 4 kB / 497.5 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006812/0.3825, allocations: 309.9 kB / 497.8 MB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.3829, allocations: 87.83 kB / 497.8 MB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004106/0.387, allocations: 3.575 MB / 0.4897 GB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/0.3875, allocations: 79.34 kB / 0.4897 GB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.436e-05/0.3875, allocations: 24 kB / 0.4898 GB, free: 2.078 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 (64): * Single equations (assignments): 62 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0004464/0.388, allocations: 341 kB / 0.4901 GB, free: 1.734 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.3881, allocations: 87 kB / 0.4902 GB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/0.3883, allocations: 92.39 kB / 0.4903 GB, free: 1.547 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3883, allocations: 8 kB / 0.4903 GB, free: 1.539 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3883, allocations: 4 kB / 0.4903 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.3883, allocations: 3.984 kB / 0.4903 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1456/0.5339, allocations: 1.933 MB / 0.4922 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.534, allocations: 1.344 kB / 0.4922 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004032/0.5344, allocations: 63.48 kB / 0.4922 GB, free: 104 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009832/0.5354, allocations: 304.1 kB / 0.4925 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.366e-05/0.5355, allocations: 13.59 kB / 0.4925 GB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004654/0.5401, allocations: 3.561 MB / 0.496 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.5402, allocations: 1.094 kB / 0.496 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.5423, allocations: 1.33 MB / 0.4973 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003716/0.5427, allocations: 251.6 kB / 0.4975 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.152e-05/0.5428, allocations: 16.42 kB / 0.4976 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004204/0.5432, allocations: 43.62 kB / 0.4976 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001861/0.5434, allocations: 85.67 kB / 0.4977 GB, free: 102.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.941e-05/0.5435, allocations: 24.3 kB / 0.4977 GB, free: 102.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006321/0.5441, allocations: 479.9 kB / 0.4982 GB, free: 102.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5441, allocations: 0 / 0.4982 GB, free: 102.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001335/0.5455, allocations: 442 kB / 0.4986 GB, free: 102.2 MB / 378.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.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 (50): * Single equations (assignments): 43 * 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 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.002125/0.5476, allocations: 1.903 MB / 0.5004 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.5502, allocations: 1.799 MB / 0.5022 GB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5502, allocations: 0 / 0.5022 GB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008358/0.551, allocations: 0.6807 MB / 0.5029 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006631/0.5517, allocations: 153.2 kB / 0.503 GB, free: 100.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003258/0.555, allocations: 4.532 MB / 0.5074 GB, free: 96.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.5554, allocations: 1.011 MB / 0.5084 GB, free: 95.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002998/0.5557, allocations: 87.75 kB / 0.5085 GB, free: 95.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/0.556, allocations: 295.2 kB / 0.5088 GB, free: 95.76 MB / 378.7 MB Notification: Performance of SimCode: time 7.62e-07/0.556, allocations: 0 / 0.5088 GB, free: 95.76 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03438/0.5904, allocations: 22.82 MB / 0.5311 GB, free: 82.55 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/0.5906, allocations: 232.5 kB / 0.5313 GB, free: 82.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.408/2.999, allocations: 0 / 0.5313 GB, free: 82.3 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_HBridge_HBridge_R.fmu > Modelica_3.2.3_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_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat does not exist to compare? outputFormat=mat