Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|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_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|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_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001445/0.001445, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 84.64 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.132e-05/2.131e-05, allocations: 4 kB / 314.8 MB, free: 9.141 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3277, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.4626, allocations: 85.24 MB / 447.6 MB, free: 1.059 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003355/0.463, allocations: 87.95 kB / 447.7 MB, free: 0.9727 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05922/0.5222, allocations: 15.34 MB / 463 MB, free: 1.633 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5223, allocations: 0 / 463 MB, free: 1.633 MB / 347.1 MB Notification: Performance of Transformations before backend: time 8.38e-05/0.5224, allocations: 24 kB / 463 MB, free: 1.609 MB / 347.1 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.002853/0.5252, allocations: 1.073 MB / 464.1 MB, free: 492 kB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.5253, allocations: 8.031 kB / 464.1 MB, free: 484 kB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002722/0.5256, allocations: 114.7 kB / 464.2 MB, free: 368 kB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.5271, allocations: 0.6486 MB / 464.9 MB, free: 15.66 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.283e-05/0.5272, allocations: 28 kB / 464.9 MB, free: 15.64 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001834/0.5274, allocations: 55.98 kB / 465 MB, free: 15.58 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001884/0.5292, allocations: 0.6249 MB / 465.6 MB, free: 14.96 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002094/0.5314, allocations: 0.7992 MB / 466.4 MB, free: 14.11 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.5314, allocations: 4 kB / 466.4 MB, free: 14.11 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.5315, allocations: 0 / 466.4 MB, free: 14.11 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.271e-05/0.5316, allocations: 24 kB / 466.4 MB, free: 14.09 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007338/0.5389, allocations: 3.575 MB / 470 MB, free: 10.41 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001786/0.5407, allocations: 0.733 MB / 470.7 MB, free: 9.66 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.5419, allocations: 452.3 kB / 471.2 MB, free: 9.219 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.111e-05/0.542, allocations: 8.781 kB / 471.2 MB, free: 9.211 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/0.543, allocations: 428.7 kB / 471.6 MB, free: 8.773 MB / 363.1 MB Notification: Performance of pre-optimization done (n=83): time 3.557e-06/0.5431, allocations: 0 / 471.6 MB, free: 8.773 MB / 363.1 MB Notification: Performance of matching and sorting (n=83): time 0.002076/0.5452, allocations: 0.7276 MB / 472.3 MB, free: 8.035 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.015e-05/0.5453, allocations: 115.6 kB / 472.4 MB, free: 7.898 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008836/0.5462, allocations: 441.9 kB / 472.9 MB, free: 7.461 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 9.369e-05/0.5463, allocations: 33.7 kB / 472.9 MB, free: 7.422 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003743/0.5467, allocations: 402.9 kB / 473.3 MB, free: 7.023 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002978/0.547, allocations: 236.5 kB / 473.5 MB, free: 6.789 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.405e-05/0.547, allocations: 0 / 473.5 MB, free: 6.789 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.5472, allocations: 338.8 kB / 473.8 MB, free: 6.449 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006513/0.5479, allocations: 234 kB / 474.1 MB, free: 6.219 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00079/0.5487, allocations: 380.7 kB / 474.4 MB, free: 5.801 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006693/0.5494, allocations: 240.5 kB / 474.7 MB, free: 5.566 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.5494, allocations: 0 / 474.7 MB, free: 5.566 MB / 363.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002095/0.5515, allocations: 0.7708 MB / 475.5 MB, free: 4.781 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005867/0.5521, allocations: 1.344 MB / 476.8 MB, free: 3.328 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.5521, allocations: 4 kB / 476.8 MB, free: 3.324 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.5534, allocations: 279 kB / 477.1 MB, free: 3.047 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008256/0.5543, allocations: 111.8 kB / 477.2 MB, free: 2.938 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007456/0.5618, allocations: 4.418 MB / 481.6 MB, free: 14.29 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001005/0.5628, allocations: 67.55 kB / 481.7 MB, free: 14.23 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.836e-05/0.5629, allocations: 27.98 kB / 481.7 MB, free: 14.2 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.5629, allocations: 4 kB / 481.7 MB, free: 14.2 MB / 379.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001974/0.5649, allocations: 0.7113 MB / 482.4 MB, free: 13.48 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.565, allocations: 4 kB / 482.4 MB, free: 13.47 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.5661, allocations: 285.4 kB / 482.7 MB, free: 13.19 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007206/0.5668, allocations: 103.9 kB / 482.8 MB, free: 13.09 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00741/0.5743, allocations: 4.373 MB / 487.2 MB, free: 8.484 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007582/0.5751, allocations: 51.61 kB / 487.2 MB, free: 8.434 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.022e-05/0.5752, allocations: 28 kB / 487.2 MB, free: 8.406 MB / 379.1 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 (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.000303/0.5755, allocations: 138.2 kB / 487.4 MB, free: 8.266 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/0.5757, allocations: 75.16 kB / 487.5 MB, free: 8.191 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.576, allocations: 75.36 kB / 487.5 MB, free: 8.113 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.576, allocations: 11.95 kB / 487.5 MB, free: 8.102 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.5761, allocations: 4 kB / 487.5 MB, free: 8.098 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.5761, allocations: 7.922 kB / 487.5 MB, free: 8.09 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004109/0.5802, allocations: 1.739 MB / 489.3 MB, free: 6.301 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.5802, allocations: 0 / 489.3 MB, free: 6.301 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006914/0.5809, allocations: 79.91 kB / 489.4 MB, free: 6.223 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.5822, allocations: 273.5 kB / 489.6 MB, free: 5.949 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.69e-05/0.5823, allocations: 7.953 kB / 489.6 MB, free: 5.941 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007503/0.5898, allocations: 4.42 MB / 494.1 MB, free: 1.293 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.5898, allocations: 0 / 494.1 MB, free: 1.293 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003031/0.5929, allocations: 1.214 MB / 495.3 MB, free: 60 kB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005459/0.5935, allocations: 236.1 kB / 495.5 MB, free: 15.81 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.5936, allocations: 4 kB / 495.5 MB, free: 15.8 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007363/0.5944, allocations: 27.97 kB / 495.5 MB, free: 15.78 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003003/0.5947, allocations: 92.61 kB / 495.6 MB, free: 15.69 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.447e-05/0.5948, allocations: 20 kB / 495.6 MB, free: 15.67 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0006052/0.5954, allocations: 326.9 kB / 496 MB, free: 15.35 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5954, allocations: 0 / 496 MB, free: 15.35 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002091/0.5975, allocations: 402.8 kB / 496.4 MB, free: 14.95 MB / 395.1 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) * 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.0002974/0.5978, allocations: 138.4 kB / 496.5 MB, free: 14.8 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004171/0.602, allocations: 1.807 MB / 498.3 MB, free: 12.93 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.6021, allocations: 256 / 498.3 MB, free: 12.93 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.6037, allocations: 0.6896 MB / 499 MB, free: 12.22 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.6048, allocations: 114.6 kB / 499.1 MB, free: 12.11 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00415/0.6089, allocations: 1.218 MB / 0.4886 GB, free: 10.86 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008588/0.6098, allocations: 1.019 MB / 0.4896 GB, free: 9.812 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/0.6101, allocations: 47.44 kB / 0.4896 GB, free: 9.766 MB / 395.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6101, allocations: 4 kB / 0.4896 GB, free: 9.762 MB / 395.1 MB Notification: Performance of Templates: time 0.2805/0.8907, allocations: 17.87 MB / 0.5071 GB, free: 115.9 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_RL/HBridge_RL.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches