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.001093/0.001093, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001135/0.001135, allocations: 92.09 kB / 292.1 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.694e-05/3.707e-05, allocations: 4 kB / 350.6 MB, free: 2.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1343, allocations: 51.49 MB / 402 MB, free: 14.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3937/0.5281, allocations: 88.79 MB / 490.8 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.5284, allocations: 90.83 kB / 490.9 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03861/0.567, allocations: 15.85 MB / 0.4949 GB, free: 2.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.567, allocations: 0 / 0.4949 GB, free: 2.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.619e-05/0.5671, allocations: 24.22 kB / 0.4949 GB, free: 2.387 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.001861/0.569, allocations: 1.067 MB / 0.496 GB, free: 1.266 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.5691, allocations: 8.031 kB / 0.496 GB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002079/0.5693, allocations: 124 kB / 0.4961 GB, free: 1.137 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.5703, allocations: 0.6366 MB / 0.4967 GB, free: 472 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.894e-05/0.5704, allocations: 70 kB / 0.4968 GB, free: 400 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.5705, allocations: 91.98 kB / 0.4969 GB, free: 308 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001542/0.5721, allocations: 0.9243 MB / 0.4978 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.265e-05/0.5721, allocations: 0 / 0.4978 GB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.025e-05/0.5722, allocations: 45.58 kB / 0.4978 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.5722, allocations: 20 kB / 0.4978 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001196/0.5734, allocations: 0.6873 MB / 0.4985 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004779/0.5782, allocations: 3.774 MB / 0.5022 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.5795, allocations: 0.7566 MB / 0.5029 GB, free: 9.918 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006797/0.5802, allocations: 443.5 kB / 0.5034 GB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.351e-05/0.5803, allocations: 12.77 kB / 0.5034 GB, free: 9.469 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007183/0.581, allocations: 453.3 kB / 0.5038 GB, free: 9.008 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 3.046e-06/0.581, allocations: 0 / 0.5038 GB, free: 9.008 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.001586/0.5826, allocations: 0.8445 MB / 0.5046 GB, free: 8.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.5827, allocations: 123.5 kB / 0.5047 GB, free: 8.008 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007688/0.5835, allocations: 0.5973 MB / 0.5053 GB, free: 7.406 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.512e-05/0.5836, allocations: 41.7 kB / 0.5054 GB, free: 7.359 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002642/0.5838, allocations: 356.7 kB / 0.5057 GB, free: 7.004 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.584, allocations: 244.5 kB / 0.5059 GB, free: 6.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.5841, allocations: 13.78 kB / 0.506 GB, free: 6.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.5842, allocations: 386.8 kB / 0.5063 GB, free: 6.363 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004047/0.5846, allocations: 241.6 kB / 0.5066 GB, free: 6.129 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005154/0.5852, allocations: 387.1 kB / 0.5069 GB, free: 5.699 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004426/0.5856, allocations: 287.8 kB / 0.5072 GB, free: 5.414 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.5856, allocations: 0 / 0.5072 GB, free: 5.414 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001419/0.587, allocations: 0.909 MB / 0.5081 GB, free: 4.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004826/0.5875, allocations: 1.346 MB / 0.5094 GB, free: 3.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.5876, allocations: 4 kB / 0.5094 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000849/0.5884, allocations: 314.3 kB / 0.5097 GB, free: 2.719 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.5888, allocations: 95.83 kB / 0.5098 GB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004805/0.5936, allocations: 3.628 MB / 0.5133 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006636/0.5943, allocations: 99.33 kB / 0.5134 GB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.709e-05/0.5944, allocations: 28 kB / 0.5135 GB, free: 14.74 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.5944, allocations: 5.562 kB / 0.5135 GB, free: 14.74 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001341/0.5957, allocations: 0.8212 MB / 0.5143 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5958, allocations: 4 kB / 0.5143 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007792/0.5966, allocations: 325.2 kB / 0.5146 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.5969, allocations: 83.89 kB / 0.5147 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.6015, allocations: 3.623 MB / 0.5182 GB, free: 9.742 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006016/0.6021, allocations: 75.42 kB / 0.5183 GB, free: 9.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/0.6021, allocations: 28 kB / 0.5183 GB, free: 9.641 MB / 394.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.0002386/0.6024, allocations: 164.8 kB / 0.5185 GB, free: 9.473 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/0.6025, allocations: 90.92 kB / 0.5185 GB, free: 9.383 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002677/0.6028, allocations: 96.39 kB / 0.5186 GB, free: 9.281 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.6028, allocations: 8 kB / 0.5186 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6028, allocations: 0 / 0.5186 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.6029, allocations: 7.984 kB / 0.5186 GB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/0.6057, allocations: 1.931 MB / 0.5205 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.6057, allocations: 4 kB / 0.5205 GB, free: 7.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002813/0.606, allocations: 59.91 kB / 0.5206 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007681/0.6068, allocations: 316.6 kB / 0.5209 GB, free: 6.898 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.74e-05/0.6068, allocations: 16 kB / 0.5209 GB, free: 6.883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004561/0.6114, allocations: 3.615 MB / 0.5244 GB, free: 3.125 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.6114, allocations: 4 kB / 0.5244 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/0.6134, allocations: 1.288 MB / 0.5257 GB, free: 1.812 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003698/0.6138, allocations: 251.9 kB / 0.5259 GB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.3e-05/0.6139, allocations: 19.98 kB / 0.526 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004132/0.6143, allocations: 51.98 kB / 0.526 GB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.6145, allocations: 84.66 kB / 0.5261 GB, free: 1.395 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.485e-05/0.6145, allocations: 16 kB / 0.5261 GB, free: 1.379 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005995/0.6152, allocations: 463.2 kB / 0.5265 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6152, allocations: 0 / 0.5265 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001217/0.6164, allocations: 454.4 kB / 0.527 GB, free: 0.4922 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.6166, allocations: 147.2 kB / 0.5271 GB, free: 352 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002776/0.6194, allocations: 1.774 MB / 0.5289 GB, free: 14.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.6194, allocations: 0 / 0.5289 GB, free: 14.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000964/0.6204, allocations: 0.6497 MB / 0.5295 GB, free: 13.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007073/0.6211, allocations: 164 kB / 0.5296 GB, free: 13.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.6236, allocations: 1.22 MB / 0.5308 GB, free: 12.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/0.6242, allocations: 1.02 MB / 0.5318 GB, free: 11.41 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004553/0.6246, allocations: 110.6 kB / 0.5319 GB, free: 11.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.245e-05/0.6248, allocations: 43.42 kB / 0.532 GB, free: 11.25 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6248, allocations: 0 / 0.532 GB, free: 11.25 MB / 410.7 MB Notification: Performance of Templates: time 0.02719/0.652, allocations: 17.37 MB / 0.5489 GB, free: 10.08 MB / 426.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