Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001797/0.001797, allocations: 114.3 kB / 21.18 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001975/0.001975, allocations: 210.9 kB / 24.48 MB, free: 4.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.422/1.422, allocations: 230.4 MB / 258.1 MB, free: 8.145 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") translateModel(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="mat",numberOfIntervals=36000,variableFilter="time|battery1.limIntegrator.y|battery2.capacitor.1..v|battery2.capacitor.2..v|battery2.limIntegrator.y|energy1.y|energy2.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 67.83 kB / 378.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2707, allocations: 53.32 MB / 432.1 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.007698/0.2784, allocations: 5.892 MB / 437.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004689/0.2831, allocations: 2.762 MB / 440.7 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004746/0.2835, allocations: 27.88 kB / 440.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.2852, allocations: 0.772 MB / 441.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.2864, allocations: 0.5594 MB / 442.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.2875, allocations: 0.5145 MB / 442.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001706/0.2892, allocations: 1.594 MB / 444.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000621/0.2898, allocations: 410.6 kB / 444.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006539/0.2905, allocations: 0.6073 MB / 445.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009292/0.2914, allocations: 0.7744 MB / 446 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001894/0.2916, allocations: 132 kB / 446.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003785/0.292, allocations: 219.9 kB / 446.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005945/0.2925, allocations: 0.6465 MB / 446.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009159/0.2935, allocations: 0.9243 MB / 447.9 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002665/0.2961, allocations: 2.505 MB / 450.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2961, allocations: 0 / 450.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2961, allocations: 3.938 kB / 450.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.307e-05/0.2962, allocations: 0 / 450.4 MB, free: 4.941 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 215 * Number of variables: 215 Notification: Performance of Generate backend data structure: time 0.005342/0.3015, allocations: 2.652 MB / 453 MB, free: 2.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3016, allocations: 8.031 kB / 453 MB, free: 2.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003785/0.3019, allocations: 235.5 kB / 453.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002576/0.3045, allocations: 1.568 MB / 454.8 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.3046, allocations: 92.27 kB / 454.9 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001577/0.3048, allocations: 87.94 kB / 455 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/0.3068, allocations: 1.112 MB / 456.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.3068, allocations: 0 / 456.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.765e-05/0.3069, allocations: 43.94 kB / 456.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.3069, allocations: 20 kB / 456.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.3083, allocations: 0.7144 MB / 456.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00745/0.3158, allocations: 4.604 MB / 461.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.3172, allocations: 0.8961 MB / 462.4 MB, free: 8.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007857/0.318, allocations: 364.8 kB / 462.8 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.905e-05/0.318, allocations: 4 kB / 462.8 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.763e-05/0.3181, allocations: 42.56 kB / 462.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.615e-06/0.3181, allocations: 0 / 462.8 MB, free: 8.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001867/0.3199, allocations: 0.8366 MB / 463.6 MB, free: 7.172 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002315/0.3202, allocations: 415.2 kB / 464 MB, free: 6.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003838/0.324, allocations: 2.767 MB / 466.8 MB, free: 3.859 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.62e-05/0.3241, allocations: 37.7 kB / 466.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000861/0.325, allocations: 0.8991 MB / 467.7 MB, free: 2.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.3251, allocations: 158.6 kB / 467.9 MB, free: 2.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/0.3253, allocations: 126.2 kB / 468 MB, free: 2.625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.3255, allocations: 334 kB / 468.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005752/0.3261, allocations: 253.2 kB / 468.6 MB, free: 2.043 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008221/0.3269, allocations: 0.5285 MB / 469.1 MB, free: 1.398 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/0.3281, allocations: 0.621 MB / 469.7 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.3281, allocations: 0 / 469.7 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001763/0.3298, allocations: 0.8656 MB / 470.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.3298, allocations: 8 kB / 470.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.3299, allocations: 4 kB / 470.6 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.748e-05/0.3299, allocations: 12.42 kB / 470.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006285/0.3305, allocations: 163.8 kB / 470.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/0.3305, allocations: 15.88 kB / 470.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.3316, allocations: 163.4 kB / 471 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/0.3317, allocations: 28 kB / 471 MB, free: 15.44 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (pulseSeries.on2,pulseSeries.on1,energy2.local_reset,battery2.limIntegrator.local_reset,energy1.local_reset,battery1.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008334/0.3325, allocations: 0.5561 MB / 471.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.3328, allocations: 194.7 kB / 471.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.3342, allocations: 0.6924 MB / 472.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.3342, allocations: 0 / 472.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3342, allocations: 4 kB / 472.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008519/0.3351, allocations: 419.6 kB / 472.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.3353, allocations: 16 kB / 472.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.3364, allocations: 143.8 kB / 473 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003266/0.3367, allocations: 143.8 kB / 473.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002512/0.3392, allocations: 0.8325 MB / 474 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001984/0.3412, allocations: 1.166 MB / 475.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005473/0.3417, allocations: 267.9 kB / 475.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002736/0.3445, allocations: 1.964 MB / 477.4 MB, free: 8.98 MB / 382.1 MB Notification: Performance of Backend: time 1.5e-07/0.3445, allocations: 0 / 477.4 MB, free: 8.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00395/0.3484, allocations: 1.044 MB / 478.4 MB, free: 8.219 MB / 382.1 MB Notification: Performance of SimCode: time 0.005826/0.3543, allocations: 3.933 MB / 482.3 MB, free: 4.223 MB / 382.1 MB Notification: Performance of Templates: time 0.04203/0.3963, allocations: 23.58 MB / 0.4941 GB, free: 12.83 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.2924076416529715]