Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 110.5 kB / 17.75 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 183 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 51.92 kB / 352 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2445, allocations: 49.44 MB / 401.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.006461/0.251, allocations: 5.74 MB / 407.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.2533, allocations: 1.512 MB / 408.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.2536, allocations: 19.94 kB / 408.7 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003662/0.254, allocations: 190.1 kB / 408.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004352/0.2544, allocations: 281.7 kB / 409.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006893/0.2551, allocations: 423.3 kB / 409.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001135/0.2562, allocations: 1.364 MB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00067/0.2569, allocations: 0.5308 MB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.2573, allocations: 474.3 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000486/0.2578, allocations: 0.5094 MB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.258, allocations: 144 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.2582, allocations: 143.9 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002244/0.2584, allocations: 275.1 kB / 413 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004744/0.2589, allocations: 0.5793 MB / 413.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001206/0.2601, allocations: 1.554 MB / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2601, allocations: 0 / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2601, allocations: 4 kB / 415.2 MB, free: 11.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.2601, allocations: 0 / 415.2 MB, free: 11.09 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.002103/0.2623, allocations: 1.324 MB / 416.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2623, allocations: 8.031 kB / 416.5 MB, free: 9.695 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001681/0.2625, allocations: 115.6 kB / 416.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009401/0.2634, allocations: 0.6573 MB / 417.3 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.003e-05/0.2635, allocations: 66.38 kB / 417.3 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.2636, allocations: 84.38 kB / 417.4 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.2652, allocations: 0.9673 MB / 418.4 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.2652, allocations: 0 / 418.4 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.886e-05/0.2653, allocations: 36 kB / 418.4 MB, free: 7.688 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.088e-05/0.2653, allocations: 24 kB / 418.4 MB, free: 7.664 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001344/0.2666, allocations: 0.7183 MB / 419.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004425/0.2711, allocations: 3.7 MB / 422.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.2725, allocations: 0.8049 MB / 423.7 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007817/0.2733, allocations: 459.9 kB / 424.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.422e-05/0.2733, allocations: 12.64 kB / 424.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007984/0.2741, allocations: 471.2 kB / 424.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of pre-optimization done (n=82): time 2.164e-06/0.2741, allocations: 0 / 424.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=82): time 0.00526/0.2794, allocations: 1.802 MB / 426.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.861e-05/0.2795, allocations: 119.4 kB / 426.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007372/0.2802, allocations: 0.6642 MB / 427.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.637e-05/0.2803, allocations: 45.7 kB / 427.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000259/0.2806, allocations: 368.6 kB / 427.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.2808, allocations: 244.5 kB / 427.8 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002248/0.281, allocations: 150.6 kB / 428 MB, free: 13.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.2812, allocations: 386.7 kB / 428.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005192/0.2817, allocations: 264.8 kB / 428.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006075/0.2823, allocations: 435.7 kB / 429 MB, free: 12.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001048/0.2834, allocations: 0.6699 MB / 429.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2834, allocations: 0 / 429.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001614/0.285, allocations: 0.9595 MB / 430.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/0.285, allocations: 37.69 kB / 430.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.2851, allocations: 4 kB / 430.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008316/0.2859, allocations: 305.7 kB / 431 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003793/0.2863, allocations: 95.83 kB / 431.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00493/0.2912, allocations: 3.816 MB / 434.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004818/0.2917, allocations: 87.19 kB / 435 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.073e-05/0.2918, allocations: 28 kB / 435 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006909/0.2925, allocations: 442 kB / 435.4 MB, free: 6.117 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005676/0.2931, allocations: 419.8 kB / 435.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009411/0.294, allocations: 0.6504 MB / 436.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.927e-06/0.294, allocations: 3.984 kB / 436.5 MB, free: 4.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=99) (initialization_lambda0): time 0.001583/0.2956, allocations: 0.9441 MB / 437.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.2957, allocations: 37.69 kB / 437.5 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.2957, allocations: 4 kB / 437.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008038/0.2965, allocations: 304.9 kB / 437.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.2968, allocations: 99.77 kB / 437.9 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004818/0.3017, allocations: 3.794 MB / 441.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004677/0.3021, allocations: 71.5 kB / 441.7 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.616e-05/0.3022, allocations: 24 kB / 441.8 MB, free: 15.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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.zeroOrderHold.ySample,signalPWM.sawtooth.count,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.T_start,$PRE.signalPWM.zeroOrderHold.ySample,signalPWM.notFire,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,hbridge.andCondition_n.y,hbridge.andCondition_p.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(8,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.3024, allocations: 244.1 kB / 442 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.3026, allocations: 86.91 kB / 442.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002111/0.3028, allocations: 96.27 kB / 442.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.3028, allocations: 3.984 kB / 442.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.3028, allocations: 4 kB / 442.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/0.3031, allocations: 255.8 kB / 442.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.3032, allocations: 19.98 kB / 442.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003835/0.3036, allocations: 23.98 kB / 442.5 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.3038, allocations: 68.56 kB / 442.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002393/0.3062, allocations: 1.044 MB / 443.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001878/0.3081, allocations: 1.232 MB / 444.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005054/0.3086, allocations: 313.1 kB / 445.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005188/0.3091, allocations: 463 kB / 445.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of Backend: time 6.02e-07/0.3091, allocations: 4 kB / 445.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003013/0.3122, allocations: 1.666 MB / 447.3 MB, free: 9.898 MB / 366.1 MB Notification: Performance of SimCode: time 0.002554/0.3147, allocations: 2.059 MB / 449.3 MB, free: 7.793 MB / 366.1 MB Notification: Performance of Templates: time 0.02599/0.3407, allocations: 18.32 MB / 467.6 MB, free: 5.629 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/HBridge/HBridge_R/HBridge_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches