Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009882/0.000988, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 90.92 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.78e-05/1.775e-05, allocations: 4 kB / 337.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09253, allocations: 50.42 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3146/0.4072, allocations: 85.99 MB / 473.5 MB, free: 8.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.4075, allocations: 83.95 kB / 473.5 MB, free: 8.754 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.446, allocations: 15.22 MB / 488.8 MB, free: 9.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.446, allocations: 4 kB / 488.8 MB, free: 9.426 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001338/0.4462, allocations: 27.98 kB / 488.8 MB, free: 9.398 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.00308/0.4493, allocations: 1.046 MB / 489.8 MB, free: 8.293 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.4493, allocations: 16.03 kB / 489.9 MB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004379/0.4498, allocations: 110.7 kB / 490 MB, free: 8.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.4511, allocations: 0.6369 MB / 490.6 MB, free: 7.484 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.405e-05/0.4511, allocations: 35.98 kB / 490.6 MB, free: 7.449 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.4513, allocations: 55.95 kB / 490.7 MB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00144/0.4528, allocations: 0.6171 MB / 491.3 MB, free: 6.777 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.4543, allocations: 0.7915 MB / 492.1 MB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.457e-05/0.4544, allocations: 7.844 kB / 492.1 MB, free: 5.934 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.123e-05/0.4545, allocations: 0 / 492.1 MB, free: 5.934 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.4545, allocations: 24 kB / 492.1 MB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/0.4594, allocations: 3.535 MB / 495.7 MB, free: 2.277 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.4606, allocations: 0.7343 MB / 496.4 MB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006532/0.4613, allocations: 416.8 kB / 496.8 MB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.888e-05/0.4614, allocations: 8.781 kB / 496.8 MB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006732/0.462, allocations: 415.8 kB / 497.2 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 3.256e-06/0.4621, allocations: 0 / 497.2 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.001476/0.4635, allocations: 0.7744 MB / 498 MB, free: 15.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.4636, allocations: 115.5 kB / 498.1 MB, free: 15.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005483/0.4642, allocations: 438 kB / 498.5 MB, free: 15.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.578e-05/0.4642, allocations: 29.7 kB / 498.6 MB, free: 15.29 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/0.4645, allocations: 380.2 kB / 498.9 MB, free: 14.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001865/0.4647, allocations: 228.6 kB / 499.2 MB, free: 14.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.355e-05/0.4648, allocations: 0 / 499.2 MB, free: 14.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.4649, allocations: 374.8 kB / 499.5 MB, free: 14.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.4653, allocations: 221.6 kB / 499.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004404/0.4657, allocations: 365.6 kB / 0.4884 GB, free: 13.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.4661, allocations: 236.5 kB / 0.4886 GB, free: 13.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.4662, allocations: 0 / 0.4886 GB, free: 13.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001237/0.4674, allocations: 0.7914 MB / 0.4894 GB, free: 12.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005157/0.4679, allocations: 1.34 MB / 0.4907 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4679, allocations: 4 kB / 0.4907 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008159/0.4688, allocations: 312.6 kB / 0.491 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000378/0.4692, allocations: 91.89 kB / 0.4911 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.4736, allocations: 3.54 MB / 0.4945 GB, free: 7.137 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006172/0.4743, allocations: 71.41 kB / 0.4946 GB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.368e-05/0.4744, allocations: 27.98 kB / 0.4946 GB, free: 7.039 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.4744, allocations: 7.938 kB / 0.4946 GB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001153/0.4755, allocations: 0.7067 MB / 0.4953 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4756, allocations: 4 kB / 0.4953 GB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007253/0.4763, allocations: 300.9 kB / 0.4956 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/0.4766, allocations: 91.83 kB / 0.4957 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004591/0.4812, allocations: 3.529 MB / 0.4992 GB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006087/0.4819, allocations: 59.44 kB / 0.4992 GB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.882e-05/0.4819, allocations: 28 kB / 0.4992 GB, free: 2.195 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_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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.0002668/0.4822, allocations: 138.1 kB / 0.4994 GB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.4823, allocations: 67.25 kB / 0.4994 GB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/0.4826, allocations: 79.23 kB / 0.4995 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.4826, allocations: 8 kB / 0.4995 GB, free: 1.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4826, allocations: 0 / 0.4995 GB, free: 1.902 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/0.4826, allocations: 3.984 kB / 0.4995 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.485, allocations: 1.721 MB / 0.5012 GB, free: 132 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.4851, allocations: 4 kB / 0.5012 GB, free: 128 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002811/0.4854, allocations: 59.89 kB / 0.5013 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007583/0.4861, allocations: 308.8 kB / 0.5016 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.122e-05/0.4862, allocations: 4 kB / 0.5016 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004437/0.4906, allocations: 3.525 MB / 0.505 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.4907, allocations: 0 / 0.505 GB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/0.4925, allocations: 1.222 MB / 0.5062 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003794/0.4929, allocations: 232 kB / 0.5064 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.569e-05/0.493, allocations: 8 kB / 0.5064 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004028/0.4934, allocations: 23.97 kB / 0.5064 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.4936, allocations: 88.61 kB / 0.5065 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/0.4937, allocations: 23.98 kB / 0.5066 GB, free: 10.48 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004368/0.4941, allocations: 319 kB / 0.5069 GB, free: 10.17 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4941, allocations: 0 / 0.5069 GB, free: 10.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001358/0.4955, allocations: 410.8 kB / 0.5073 GB, free: 9.77 MB / 394.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_last,meanVoltage.y_last) * 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.000236/0.4958, allocations: 138.2 kB / 0.5074 GB, free: 9.625 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.4985, allocations: 1.657 MB / 0.509 GB, free: 7.922 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4985, allocations: 0.875 kB / 0.509 GB, free: 7.922 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009236/0.4994, allocations: 0.6174 MB / 0.5096 GB, free: 7.297 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006358/0.5001, allocations: 113.9 kB / 0.5097 GB, free: 7.184 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.5026, allocations: 1.132 MB / 0.5108 GB, free: 6.027 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006637/0.5032, allocations: 1.012 MB / 0.5118 GB, free: 4.988 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003991/0.5037, allocations: 85.55 kB / 0.5119 GB, free: 4.902 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.94e-05/0.5038, allocations: 39.38 kB / 0.5119 GB, free: 4.863 MB / 394.7 MB Notification: Performance of SimCode: time 5.41e-07/0.5038, allocations: 0 / 0.5119 GB, free: 4.863 MB / 394.7 MB Notification: Performance of Templates: time 0.02436/0.5281, allocations: 14.86 MB / 0.5264 GB, free: 6.152 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_R/HBridge_R.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches