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.0009935/0.0009935, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008135/0.0008136, allocations: 78.23 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.688e-05/1.69e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.08204, allocations: 47.57 MB / 363.2 MB, free: 6.98 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.309/0.3911, allocations: 85.2 MB / 448.4 MB, free: 10.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/0.3915, allocations: 88.41 kB / 448.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03668/0.4282, allocations: 15.01 MB / 463.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4282, allocations: 0 / 463.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.711e-05/0.4283, allocations: 24 kB / 463.5 MB, free: 13.75 MB / 346.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.001933/0.4302, allocations: 1.052 MB / 464.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.4303, allocations: 8.031 kB / 464.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002045/0.4305, allocations: 114.7 kB / 464.7 MB, free: 12.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009971/0.4315, allocations: 0.6387 MB / 465.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/0.4316, allocations: 24 kB / 465.3 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.4317, allocations: 55.98 kB / 465.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001177/0.4329, allocations: 0.6176 MB / 466 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.4342, allocations: 0.7891 MB / 466.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.4342, allocations: 4 kB / 466.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.567e-05/0.4343, allocations: 4 kB / 466.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.4343, allocations: 20 kB / 466.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004534/0.4389, allocations: 3.523 MB / 470.3 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.44, allocations: 0.7297 MB / 471.1 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006236/0.4406, allocations: 422.2 kB / 471.5 MB, free: 7.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.911e-05/0.4407, allocations: 8.781 kB / 471.5 MB, free: 7.578 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006335/0.4413, allocations: 420.5 kB / 471.9 MB, free: 7.277 MB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 2.915e-06/0.4413, allocations: 0 / 471.9 MB, free: 7.277 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.001349/0.4427, allocations: 0.7729 MB / 472.7 MB, free: 6.734 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.078e-05/0.4428, allocations: 119.5 kB / 472.8 MB, free: 6.598 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.4433, allocations: 443.8 kB / 473.2 MB, free: 6.266 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.824e-05/0.4434, allocations: 29.7 kB / 473.3 MB, free: 6.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.4436, allocations: 373.8 kB / 473.6 MB, free: 5.957 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.4438, allocations: 226.7 kB / 473.8 MB, free: 5.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.4438, allocations: 0 / 473.8 MB, free: 5.762 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.444, allocations: 372.1 kB / 474.2 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003784/0.4444, allocations: 226.3 kB / 474.4 MB, free: 5.297 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.4448, allocations: 359.2 kB / 474.8 MB, free: 5.012 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.4452, allocations: 247.4 kB / 475 MB, free: 4.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4452, allocations: 3.953 kB / 475 MB, free: 4.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001222/0.4464, allocations: 0.7883 MB / 475.8 MB, free: 4.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005592/0.447, allocations: 1.343 MB / 477.1 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.447, allocations: 0 / 477.1 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000841/0.4479, allocations: 323.9 kB / 477.5 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004087/0.4483, allocations: 91.89 kB / 477.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004693/0.453, allocations: 3.521 MB / 481.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000596/0.4536, allocations: 67.5 kB / 481.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.583e-05/0.4537, allocations: 31.98 kB / 481.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.4537, allocations: 4 kB / 481.2 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001207/0.4549, allocations: 0.7065 MB / 481.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.842e-05/0.455, allocations: 7.953 kB / 481.9 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007372/0.4557, allocations: 301.1 kB / 482.2 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003435/0.4561, allocations: 87.83 kB / 482.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00464/0.4607, allocations: 3.529 MB / 485.8 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006333/0.4614, allocations: 51.5 kB / 485.8 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.226e-05/0.4614, allocations: 24 kB / 485.9 MB, free: 10.01 MB / 362.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 () * 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.0002679/0.4617, allocations: 142.1 kB / 486 MB, free: 9.871 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001348/0.4631, allocations: 0.7735 MB / 486.8 MB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.4632, allocations: 67.16 kB / 486.9 MB, free: 9.023 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002245/0.4634, allocations: 83.28 kB / 486.9 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.4634, allocations: 8 kB / 486.9 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.4634, allocations: 0 / 486.9 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.4635, allocations: 3.984 kB / 486.9 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.466, allocations: 1.728 MB / 488.7 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.466, allocations: 0 / 488.7 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.4663, allocations: 63.91 kB / 488.7 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00075/0.4671, allocations: 308.9 kB / 489 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.836e-05/0.4672, allocations: 0 / 489 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004527/0.4717, allocations: 3.537 MB / 492.6 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4717, allocations: 0 / 492.6 MB, free: 3.125 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.4736, allocations: 1.206 MB / 493.8 MB, free: 1.898 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000364/0.474, allocations: 236.1 kB / 494 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.817e-05/0.4741, allocations: 7.891 kB / 494 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004017/0.4745, allocations: 27.97 kB / 494 MB, free: 1.613 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.4747, allocations: 88.59 kB / 494.1 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.687e-05/0.4748, allocations: 20 kB / 494.2 MB, free: 1.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004053/0.4752, allocations: 323 kB / 494.5 MB, free: 1.191 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4752, allocations: 0 / 494.5 MB, free: 1.191 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001303/0.4765, allocations: 410.8 kB / 494.9 MB, free: 0.7891 MB / 362.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) * 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.002138/0.4786, allocations: 1.781 MB / 496.6 MB, free: 14.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002715/0.4814, allocations: 1.666 MB / 498.3 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.4814, allocations: 0 / 498.3 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009105/0.4823, allocations: 0.6176 MB / 498.9 MB, free: 12.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000659/0.483, allocations: 121.9 kB / 499.1 MB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002859/0.4858, allocations: 1.242 MB / 0.4886 GB, free: 11.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006164/0.4865, allocations: 1.012 MB / 0.4896 GB, free: 10.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003657/0.4869, allocations: 89.55 kB / 0.4896 GB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/0.4872, allocations: 275.3 kB / 0.4899 GB, free: 9.836 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4872, allocations: 0 / 0.4899 GB, free: 9.836 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/0.5338, allocations: 20.85 MB / 0.5103 GB, free: 4.949 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001686/0.534, allocations: 154.6 kB / 0.5104 GB, free: 4.762 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.533/3.067, allocations: 4.031 kB / 0.5104 GB, free: 4.758 MB / 394.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