Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 196.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009908/0.0009908, allocations: 102.8 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.635e-05/1.637e-05, allocations: 4 kB / 343.7 MB, free: 8.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09785, allocations: 51.47 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3571/0.455, allocations: 88.13 MB / 483.3 MB, free: 5.121 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.4553, allocations: 87.44 kB / 483.4 MB, free: 5.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03534/0.4907, allocations: 15.71 MB / 499.1 MB, free: 8.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4907, allocations: 0 / 499.1 MB, free: 8.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.361e-05/0.4908, allocations: 23.98 kB / 499.1 MB, free: 8.207 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001931/0.4927, allocations: 1.061 MB / 0.4885 GB, free: 7.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.4928, allocations: 8.031 kB / 0.4885 GB, free: 7.145 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002082/0.493, allocations: 119.5 kB / 0.4886 GB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009297/0.4939, allocations: 0.6486 MB / 0.4892 GB, free: 6.496 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.574e-05/0.494, allocations: 31 kB / 0.4892 GB, free: 6.469 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.917e-05/0.4941, allocations: 52 kB / 0.4893 GB, free: 6.418 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001104/0.4952, allocations: 0.6271 MB / 0.4899 GB, free: 6.059 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.4965, allocations: 0.8029 MB / 0.4907 GB, free: 5.449 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.4965, allocations: 7.938 kB / 0.4907 GB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.603e-05/0.4966, allocations: 7.5 kB / 0.4907 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.4966, allocations: 20 kB / 0.4907 GB, free: 5.418 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004353/0.5009, allocations: 3.567 MB / 0.4942 GB, free: 2.641 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.502, allocations: 0.7211 MB / 0.4949 GB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/0.5027, allocations: 417.1 kB / 0.4953 GB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.241e-05/0.5027, allocations: 8.781 kB / 0.4953 GB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007191/0.5034, allocations: 422.8 kB / 0.4957 GB, free: 1.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=81): time 2.785e-06/0.5035, allocations: 0 / 0.4957 GB, free: 1.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=81): time 0.001377/0.5048, allocations: 0.7816 MB / 0.4965 GB, free: 0.9922 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.593e-05/0.5049, allocations: 123.6 kB / 0.4966 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005476/0.5055, allocations: 438 kB / 0.497 GB, free: 424 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.886e-05/0.5055, allocations: 37.69 kB / 0.4971 GB, free: 380 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.5058, allocations: 372.4 kB / 0.4974 GB, free: 0 / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.506, allocations: 232.6 kB / 0.4976 GB, free: 15.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.5061, allocations: 0 / 0.4976 GB, free: 15.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.5063, allocations: 382.7 kB / 0.498 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003614/0.5066, allocations: 225.6 kB / 0.4982 GB, free: 15.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/0.5071, allocations: 357.6 kB / 0.4986 GB, free: 14.76 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.5075, allocations: 240.5 kB / 0.4988 GB, free: 14.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.5075, allocations: 4 kB / 0.4988 GB, free: 14.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001257/0.5088, allocations: 0.7941 MB / 0.4996 GB, free: 13.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005949/0.5094, allocations: 1.344 MB / 0.5009 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.5094, allocations: 5.781 kB / 0.5009 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008119/0.5102, allocations: 310.3 kB / 0.5012 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003626/0.5106, allocations: 91.81 kB / 0.5013 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005078/0.5157, allocations: 3.521 MB / 0.5047 GB, free: 8.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007753/0.5165, allocations: 67.5 kB / 0.5048 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.982e-05/0.5166, allocations: 35.94 kB / 0.5048 GB, free: 8.129 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.5166, allocations: 5.25 kB / 0.5048 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001222/0.5179, allocations: 0.7064 MB / 0.5055 GB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.5179, allocations: 4 kB / 0.5055 GB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007691/0.5187, allocations: 305.1 kB / 0.5058 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003698/0.519, allocations: 83.89 kB / 0.5059 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004768/0.5238, allocations: 3.532 MB / 0.5093 GB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005694/0.5244, allocations: 59.5 kB / 0.5094 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.5245, allocations: 24 kB / 0.5094 GB, free: 3.305 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.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.0002436/0.5247, allocations: 138.1 kB / 0.5095 GB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.5249, allocations: 71.16 kB / 0.5096 GB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002262/0.5251, allocations: 79.36 kB / 0.5097 GB, free: 3.012 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.5251, allocations: 8 kB / 0.5097 GB, free: 3.004 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.5251, allocations: 3.953 kB / 0.5097 GB, free: 3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.5252, allocations: 10.89 kB / 0.5097 GB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002489/0.5276, allocations: 1.725 MB / 0.5114 GB, free: 1.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5277, allocations: 3.938 kB / 0.5114 GB, free: 1.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.528, allocations: 63.91 kB / 0.5114 GB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007231/0.5287, allocations: 300.9 kB / 0.5117 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.384e-05/0.5287, allocations: 7.984 kB / 0.5117 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004257/0.533, allocations: 3.52 MB / 0.5152 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.533, allocations: 0 / 0.5152 GB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00168/0.5347, allocations: 1.21 MB / 0.5164 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/0.535, allocations: 240.1 kB / 0.5166 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.428e-05/0.5351, allocations: 0 / 0.5166 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003756/0.5355, allocations: 36.03 kB / 0.5166 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001718/0.5357, allocations: 84.66 kB / 0.5167 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/0.5357, allocations: 27.92 kB / 0.5167 GB, free: 11.58 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003634/0.5361, allocations: 323 kB / 0.517 GB, free: 11.27 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5361, allocations: 0 / 0.517 GB, free: 11.27 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001211/0.5373, allocations: 406.8 kB / 0.5174 GB, free: 10.87 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.fire_n,hbridge.inverter_p.andCondition_p.y,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.fire_n,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.fire_n,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.0002071/0.5375, allocations: 135.2 kB / 0.5176 GB, free: 10.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.54, allocations: 1.665 MB / 0.5192 GB, free: 9.012 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.54, allocations: 0 / 0.5192 GB, free: 9.012 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008652/0.5409, allocations: 0.6223 MB / 0.5198 GB, free: 8.375 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005835/0.5414, allocations: 120 kB / 0.5199 GB, free: 8.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002304/0.5438, allocations: 1.151 MB / 0.521 GB, free: 7.094 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006098/0.5444, allocations: 1.02 MB / 0.522 GB, free: 6.043 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003978/0.5448, allocations: 85.55 kB / 0.5221 GB, free: 5.957 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.769e-05/0.5449, allocations: 35.44 kB / 0.5221 GB, free: 5.926 MB / 394.7 MB Notification: Performance of SimCode: time 4.2e-07/0.5449, allocations: 0 / 0.5221 GB, free: 5.926 MB / 394.7 MB Notification: Performance of Templates: time 0.02339/0.5683, allocations: 14.97 MB / 0.5368 GB, free: 7.133 MB / 410.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches