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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 114.3 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 206.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2293/0.2304, allocations: 50.55 MB / 410 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.00687/0.2373, allocations: 6.113 MB / 416.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.24, allocations: 1.679 MB / 417.8 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000358/0.2403, allocations: 23.88 kB / 417.8 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004247/0.2408, allocations: 198.1 kB / 418 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004623/0.2412, allocations: 277.5 kB / 418.3 MB, free: 9.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007418/0.242, allocations: 427.4 kB / 418.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001247/0.2433, allocations: 1.423 MB / 420.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008328/0.2441, allocations: 0.5585 MB / 420.7 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005165/0.2446, allocations: 498.1 kB / 421.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005548/0.2452, allocations: 0.5172 MB / 421.7 MB, free: 5.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001831/0.2454, allocations: 148 kB / 421.8 MB, free: 5.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.2456, allocations: 144 kB / 422 MB, free: 5.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002587/0.2458, allocations: 291 kB / 422.2 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005255/0.2464, allocations: 0.591 MB / 422.8 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.2477, allocations: 1.617 MB / 424.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2477, allocations: 0 / 424.4 MB, free: 3.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2477, allocations: 3.938 kB / 424.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.2477, allocations: 4 kB / 424.5 MB, free: 3.039 MB / 334.1 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.002287/0.25, allocations: 1.363 MB / 425.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.2501, allocations: 8.031 kB / 425.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.2503, allocations: 119.5 kB / 425.9 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.2513, allocations: 0.6689 MB / 426.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.284e-05/0.2514, allocations: 74.31 kB / 426.7 MB, free: 0.707 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001304/0.2515, allocations: 100.3 kB / 426.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.2531, allocations: 0.9947 MB / 427.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.2532, allocations: 0 / 427.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.695e-05/0.2533, allocations: 44 kB / 427.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2533, allocations: 20 kB / 427.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.2547, allocations: 0.7495 MB / 428.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004514/0.2592, allocations: 3.774 MB / 432.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/0.2606, allocations: 0.8217 MB / 433.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000859/0.2614, allocations: 498.6 kB / 433.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.964e-05/0.2615, allocations: 8.656 kB / 433.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008008/0.2623, allocations: 492.4 kB / 434.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=84): time 2.505e-06/0.2623, allocations: 0 / 434.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=84): time 0.004222/0.2666, allocations: 1.662 MB / 435.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.419e-05/0.2666, allocations: 123.8 kB / 435.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008129/0.2675, allocations: 0.676 MB / 436.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.821e-05/0.2675, allocations: 45.7 kB / 436.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.2678, allocations: 380.6 kB / 437 MB, free: 6.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002065/0.268, allocations: 248.5 kB / 437.3 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.2683, allocations: 162.5 kB / 437.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.2684, allocations: 382.8 kB / 437.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000542/0.269, allocations: 280.7 kB / 438.1 MB, free: 5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006299/0.2696, allocations: 438.8 kB / 438.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.2707, allocations: 0.6808 MB / 439.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.2707, allocations: 0 / 439.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001694/0.2724, allocations: 0.9837 MB / 440.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.723e-05/0.2725, allocations: 37.7 kB / 440.2 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.2725, allocations: 7.938 kB / 440.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008144/0.2733, allocations: 290 kB / 440.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004291/0.2738, allocations: 107.8 kB / 440.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005354/0.2791, allocations: 5.053 MB / 445.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006296/0.2798, allocations: 91.38 kB / 445.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.259e-05/0.2799, allocations: 32 kB / 445.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008124/0.2807, allocations: 458 kB / 446.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00061/0.2813, allocations: 422.8 kB / 446.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009776/0.2823, allocations: 0.6574 MB / 447.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.228e-06/0.2823, allocations: 4 kB / 447.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=102) (initialization_lambda0): time 0.001561/0.2839, allocations: 0.9602 MB / 448.3 MB, free: 10.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.2839, allocations: 33.7 kB / 448.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.2839, allocations: 4 kB / 448.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007634/0.2847, allocations: 301.2 kB / 448.6 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.2851, allocations: 103.8 kB / 448.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005344/0.2905, allocations: 5.055 MB / 453.8 MB, free: 4.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005169/0.291, allocations: 71.48 kB / 453.8 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.876e-05/0.2911, allocations: 28 kB / 453.9 MB, free: 4.383 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 32 (signalPWM.zeroOrderHold.firstTrigger,$PRE.signalPWM.zeroOrderHold.firstTrigger,meanCurrent.y_last,$PRE.meanCurrent.y_last,meanVoltage.y_last,$PRE.meanVoltage.y_last,$whenCondition2,$whenCondition1,signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,hbridge.not_n.y,hbridge.not_p.y,hbridge.inverter_n.diode_n.off,hbridge.inverter_n.transistor_n.off,hbridge.inverter_n.diode_p.off,hbridge.inverter_n.transistor_p.off,hbridge.inverter_n.andCondition_n.y,hbridge.inverter_n.andCondition_p.y,hbridge.inverter_p.diode_n.off,hbridge.inverter_p.transistor_n.off,hbridge.inverter_p.diode_p.off,hbridge.inverter_p.transistor_p.off,hbridge.inverter_p.andCondition_n.y,hbridge.inverter_p.andCondition_p.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002427/0.2913, allocations: 248.2 kB / 454.1 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.2914, allocations: 86.97 kB / 454.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.2917, allocations: 104.4 kB / 454.3 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.2917, allocations: 3.984 kB / 454.3 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.2917, allocations: 7.938 kB / 454.3 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003162/0.292, allocations: 251.8 kB / 454.5 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.471e-05/0.2921, allocations: 16 kB / 454.6 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.2925, allocations: 35.97 kB / 454.6 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001524/0.2927, allocations: 64.91 kB / 454.7 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002374/0.2951, allocations: 1.072 MB / 455.7 MB, free: 2.469 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001892/0.297, allocations: 1.277 MB / 457 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005254/0.2975, allocations: 327.8 kB / 457.3 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005315/0.298, allocations: 471.1 kB / 457.8 MB, free: 408 kB / 366.1 MB Notification: Performance of Backend: time 3.4e-07/0.298, allocations: 0 / 457.8 MB, free: 408 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003076/0.3011, allocations: 1.851 MB / 459.6 MB, free: 14.46 MB / 382.1 MB Notification: Performance of SimCode: time 0.002907/0.3041, allocations: 2.151 MB / 461.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of Templates: time 0.02806/0.3321, allocations: 18.63 MB / 480.4 MB, free: 9.754 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_RL/HBridge_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches