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.001105/0.001105, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.459/1.459, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008713/0.0008714, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.791e-05/2.794e-05, allocations: 3.984 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08928/0.08932, allocations: 47.56 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2973/0.3867, allocations: 85.6 MB / 455.7 MB, free: 7.727 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.3869, allocations: 86.25 kB / 455.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03735/0.4243, allocations: 15.18 MB / 471 MB, free: 9.836 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4244, allocations: 4 kB / 471 MB, free: 9.832 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.111e-05/0.4244, allocations: 24 kB / 471 MB, free: 9.809 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.0018/0.4262, allocations: 1.046 MB / 472.1 MB, free: 8.699 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.4263, allocations: 8.031 kB / 472.1 MB, free: 8.691 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.4265, allocations: 135.3 kB / 472.2 MB, free: 8.551 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.4266, allocations: 114.7 kB / 472.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009782/0.4276, allocations: 0.6448 MB / 473 MB, free: 7.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/0.4277, allocations: 61.94 kB / 473 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.4278, allocations: 88 kB / 473.1 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.4293, allocations: 0.9086 MB / 474 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.4293, allocations: 0 / 474 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.99e-05/0.4294, allocations: 39.98 kB / 474 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.879e-05/0.4294, allocations: 24 kB / 474.1 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.4306, allocations: 0.6755 MB / 474.7 MB, free: 5.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004593/0.4352, allocations: 3.717 MB / 478.5 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.4364, allocations: 0.7715 MB / 479.2 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006859/0.4371, allocations: 448.7 kB / 479.7 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.245e-05/0.4372, allocations: 8.781 kB / 479.7 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006946/0.4379, allocations: 449.3 kB / 480.1 MB, free: 388 kB / 346.7 MB Notification: Performance of pre-optimization done (n=81): time 2.384e-06/0.4379, allocations: 0 / 480.1 MB, free: 388 kB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.001548/0.4395, allocations: 0.8522 MB / 481 MB, free: 15.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.245e-05/0.4396, allocations: 115.6 kB / 481.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007419/0.4403, allocations: 0.5894 MB / 481.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.4404, allocations: 41.7 kB / 481.7 MB, free: 14.74 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002781/0.4407, allocations: 360.6 kB / 482.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.4408, allocations: 236.7 kB / 482.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.739e-05/0.4409, allocations: 16 kB / 482.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.441, allocations: 390.7 kB / 482.7 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.4414, allocations: 241.6 kB / 482.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005111/0.442, allocations: 391 kB / 483.3 MB, free: 13.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004468/0.4424, allocations: 279.8 kB / 483.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.4424, allocations: 4 kB / 483.6 MB, free: 12.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001423/0.4439, allocations: 0.9097 MB / 484.5 MB, free: 11.86 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005398/0.4444, allocations: 1.338 MB / 485.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.4444, allocations: 4 kB / 485.8 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008599/0.4453, allocations: 316.6 kB / 486.2 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003884/0.4457, allocations: 91.83 kB / 486.2 MB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004841/0.4505, allocations: 3.636 MB / 489.9 MB, free: 6.234 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007051/0.4513, allocations: 91.34 kB / 490 MB, free: 6.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/0.4513, allocations: 24 kB / 490 MB, free: 6.121 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.4514, allocations: 8 kB / 490 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00138/0.4528, allocations: 0.8212 MB / 490.8 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.4528, allocations: 7.938 kB / 490.8 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007742/0.4536, allocations: 317.9 kB / 491.1 MB, free: 4.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003227/0.4539, allocations: 87.83 kB / 491.2 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.4585, allocations: 3.62 MB / 494.8 MB, free: 1.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006132/0.4591, allocations: 83.34 kB / 494.9 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.625e-05/0.4592, allocations: 28 kB / 495 MB, free: 1.008 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.0002585/0.4594, allocations: 164.6 kB / 495.1 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.4596, allocations: 79.06 kB / 495.2 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.4598, allocations: 96.39 kB / 495.3 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.4599, allocations: 11.95 kB / 495.3 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.4599, allocations: 3.984 kB / 495.3 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4599, allocations: 3.984 kB / 495.3 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.4626, allocations: 1.923 MB / 497.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.4626, allocations: 0 / 497.2 MB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.4629, allocations: 59.91 kB / 497.3 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008047/0.4637, allocations: 312.6 kB / 497.6 MB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.917e-05/0.4638, allocations: 15.98 kB / 497.6 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004527/0.4683, allocations: 3.628 MB / 0.4895 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.4683, allocations: 0 / 0.4895 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.4703, allocations: 1.296 MB / 0.4908 GB, free: 9.191 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.4707, allocations: 259.8 kB / 0.491 GB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.48e-05/0.4708, allocations: 24 kB / 0.491 GB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.4713, allocations: 40.03 kB / 0.4911 GB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000249/0.4715, allocations: 80.66 kB / 0.4911 GB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.102e-05/0.4716, allocations: 20 kB / 0.4912 GB, free: 8.758 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006108/0.4722, allocations: 459.2 kB / 0.4916 GB, free: 8.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4722, allocations: 4 kB / 0.4916 GB, free: 8.312 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001245/0.4735, allocations: 447.1 kB / 0.492 GB, free: 7.875 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) * 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.002292/0.4758, allocations: 1.886 MB / 0.4939 GB, free: 5.957 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002763/0.4785, allocations: 1.77 MB / 0.4956 GB, free: 4.133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.4786, allocations: 192 / 0.4956 GB, free: 4.133 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009848/0.4796, allocations: 0.6471 MB / 0.4962 GB, free: 3.477 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007234/0.4803, allocations: 159.7 kB / 0.4964 GB, free: 3.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002867/0.4832, allocations: 1.344 MB / 0.4977 GB, free: 1.934 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006191/0.4838, allocations: 1.012 MB / 0.4987 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000483/0.4843, allocations: 114.6 kB / 0.4988 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003525/0.4847, allocations: 287.3 kB / 0.4991 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4847, allocations: 0 / 0.4991 GB, free: 0.4922 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04451/0.5292, allocations: 24.19 MB / 0.5227 GB, free: 8.258 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.5294, allocations: 201.4 kB / 0.5229 GB, free: 8.031 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.623/3.152, allocations: 0 / 0.5229 GB, free: 8.031 MB / 410.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