Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.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_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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00122/0.00122, allocations: 195.5 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.378/1.378, allocations: 225.4 MB / 240.1 MB, free: 15.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008445/0.0008446, allocations: 101.5 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.563e-05/2.582e-05, allocations: 8 kB / 350.6 MB, free: 2.477 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1001, allocations: 51.48 MB / 402 MB, free: 14.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3366/0.4367, allocations: 89.12 MB / 491.2 MB, free: 376 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.437, allocations: 88.91 kB / 491.2 MB, free: 328 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03844/0.4755, allocations: 16.2 MB / 0.4956 GB, free: 1.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4755, allocations: 0 / 0.4956 GB, free: 1.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.355e-05/0.4756, allocations: 31.92 kB / 0.4956 GB, free: 1.719 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: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.001909/0.4775, allocations: 1.073 MB / 0.4966 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4776, allocations: 8.031 kB / 0.4966 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.4778, allocations: 122.2 kB / 0.4968 GB, free: 480 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009897/0.4788, allocations: 0.6563 MB / 0.4974 GB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.251e-05/0.4789, allocations: 74.94 kB / 0.4975 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.479, allocations: 91.98 kB / 0.4976 GB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.4805, allocations: 0.9437 MB / 0.4985 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.4806, allocations: 0 / 0.4985 GB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.701e-05/0.4807, allocations: 40 kB / 0.4985 GB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.4807, allocations: 20 kB / 0.4985 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.4819, allocations: 0.7032 MB / 0.4992 GB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004952/0.4869, allocations: 3.824 MB / 0.503 GB, free: 9.922 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.4881, allocations: 0.7687 MB / 0.5037 GB, free: 9.137 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007932/0.4889, allocations: 467.1 kB / 0.5042 GB, free: 8.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.036e-05/0.489, allocations: 13.84 kB / 0.5042 GB, free: 8.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007719/0.4898, allocations: 445.4 kB / 0.5046 GB, free: 8.215 MB / 378.7 MB Notification: Performance of pre-optimization done (n=83): time 6.332e-06/0.4898, allocations: 4 kB / 0.5046 GB, free: 8.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=83): time 0.001431/0.4912, allocations: 0.794 MB / 0.5054 GB, free: 7.402 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.782e-05/0.4913, allocations: 119.6 kB / 0.5055 GB, free: 7.262 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007953/0.4921, allocations: 0.5973 MB / 0.5061 GB, free: 6.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.325e-05/0.4922, allocations: 41.7 kB / 0.5061 GB, free: 6.613 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000306/0.4925, allocations: 380.5 kB / 0.5065 GB, free: 6.234 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000226/0.4927, allocations: 248.5 kB / 0.5067 GB, free: 5.988 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.4928, allocations: 16 kB / 0.5067 GB, free: 5.973 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/0.493, allocations: 396.7 kB / 0.5071 GB, free: 5.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004121/0.4934, allocations: 245.8 kB / 0.5073 GB, free: 5.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/0.4939, allocations: 384.5 kB / 0.5077 GB, free: 4.906 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004437/0.4943, allocations: 295.7 kB / 0.508 GB, free: 4.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.4944, allocations: 3.953 kB / 0.508 GB, free: 4.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001441/0.4958, allocations: 0.9166 MB / 0.5089 GB, free: 3.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004768/0.4963, allocations: 1.342 MB / 0.5102 GB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.4963, allocations: 4 kB / 0.5102 GB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008182/0.4971, allocations: 295.3 kB / 0.5105 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.4976, allocations: 107.8 kB / 0.5106 GB, free: 1.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004838/0.5024, allocations: 4.566 MB / 0.515 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007042/0.5032, allocations: 99.34 kB / 0.5151 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.271e-05/0.5032, allocations: 28 kB / 0.5152 GB, free: 12.86 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.638e-06/0.5033, allocations: 5.25 kB / 0.5152 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00132/0.5046, allocations: 0.834 MB / 0.516 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.5046, allocations: 4 kB / 0.516 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007117/0.5053, allocations: 283.6 kB / 0.5163 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.5057, allocations: 99.83 kB / 0.5164 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005039/0.5108, allocations: 4.572 MB / 0.5208 GB, free: 6.797 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006515/0.5115, allocations: 91.42 kB / 0.5209 GB, free: 6.707 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.001e-05/0.5115, allocations: 31.94 kB / 0.5209 GB, free: 6.676 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 (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.0002679/0.5118, allocations: 162.9 kB / 0.5211 GB, free: 6.512 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.5119, allocations: 86.97 kB / 0.5212 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002563/0.5122, allocations: 104.5 kB / 0.5213 GB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5122, allocations: 8 kB / 0.5213 GB, free: 6.312 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5122, allocations: 0 / 0.5213 GB, free: 6.312 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.5122, allocations: 3.984 kB / 0.5213 GB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.5149, allocations: 1.942 MB / 0.5232 GB, free: 4.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.5149, allocations: 4 kB / 0.5232 GB, free: 4.301 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003473/0.5152, allocations: 83.83 kB / 0.5233 GB, free: 4.219 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006682/0.5159, allocations: 277.6 kB / 0.5235 GB, free: 3.941 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.926e-05/0.516, allocations: 16 kB / 0.5235 GB, free: 3.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004849/0.5208, allocations: 4.558 MB / 0.528 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.5209, allocations: 0 / 0.528 GB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/0.5229, allocations: 1.308 MB / 0.5293 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004096/0.5234, allocations: 264 kB / 0.5295 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.366e-05/0.5235, allocations: 20 kB / 0.5295 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004312/0.5239, allocations: 43.92 kB / 0.5296 GB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.5241, allocations: 84.66 kB / 0.5297 GB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.734e-05/0.5242, allocations: 20 kB / 0.5297 GB, free: 13.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006302/0.5248, allocations: 467.2 kB / 0.5301 GB, free: 12.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5248, allocations: 3 kB / 0.5301 GB, free: 12.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001451/0.5263, allocations: 451.1 kB / 0.5306 GB, free: 12.43 MB / 410.7 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.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 (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.0002292/0.5265, allocations: 144.5 kB / 0.5307 GB, free: 12.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002785/0.5293, allocations: 1.943 MB / 0.5326 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5293, allocations: 0 / 0.5326 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000969/0.5303, allocations: 0.7404 MB / 0.5333 GB, free: 9.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007157/0.531, allocations: 159.5 kB / 0.5335 GB, free: 9.352 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.5336, allocations: 1.266 MB / 0.5347 GB, free: 8.059 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000575/0.5342, allocations: 1.028 MB / 0.5357 GB, free: 7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004969/0.5347, allocations: 126.6 kB / 0.5358 GB, free: 6.871 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.802e-05/0.5348, allocations: 39.44 kB / 0.5359 GB, free: 6.832 MB / 410.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5348, allocations: 0 / 0.5359 GB, free: 6.832 MB / 410.7 MB Notification: Performance of Templates: time 0.02697/0.5618, allocations: 16.91 MB / 0.5524 GB, free: 6.109 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_RL/HBridge_RL.csv","../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches