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.002148/0.002148, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002816/0.002816, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.591/1.591, allocations: 230.6 MB / 258.2 MB, free: 8.02 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.002144/0.002144, allocations: 64.77 kB / 379 MB, free: 2.762 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2963, allocations: 53.38 MB / 432.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008262/0.3045, allocations: 5.902 MB / 438.3 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005131/0.3097, allocations: 2.762 MB / 441.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006595/0.3103, allocations: 31.81 kB / 441.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001734/0.3121, allocations: 0.77 MB / 441.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001197/0.3133, allocations: 0.5633 MB / 442.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.3145, allocations: 0.5208 MB / 443 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002027/0.3165, allocations: 1.606 MB / 444.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007358/0.3172, allocations: 410.1 kB / 445 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008919/0.3181, allocations: 0.6306 MB / 445.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001077/0.3192, allocations: 0.7705 MB / 446.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002156/0.3194, allocations: 132 kB / 446.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004636/0.3199, allocations: 215.9 kB / 446.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000657/0.3205, allocations: 0.6466 MB / 447.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009987/0.3215, allocations: 0.9243 MB / 448.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003079/0.3246, allocations: 2.509 MB / 450.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3246, allocations: 0 / 450.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3246, allocations: 0 / 450.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.465e-05/0.3247, allocations: 4 kB / 450.8 MB, free: 4.535 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.005877/0.3305, allocations: 2.577 MB / 453.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/0.3306, allocations: 8.031 kB / 453.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005123/0.3311, allocations: 231.5 kB / 453.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/0.334, allocations: 1.51 MB / 455.1 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.3342, allocations: 143.7 kB / 455.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.3343, allocations: 87.94 kB / 455.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/0.3364, allocations: 1.108 MB / 456.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.3364, allocations: 4 kB / 456.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-05/0.3365, allocations: 43.98 kB / 456.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.3366, allocations: 20 kB / 456.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.3381, allocations: 0.7182 MB / 457.2 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008371/0.3464, allocations: 4.53 MB / 461.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.3477, allocations: 0.5198 MB / 462.3 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008605/0.3486, allocations: 357.9 kB / 462.6 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.098e-05/0.3487, allocations: 8 kB / 462.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.573e-05/0.3487, allocations: 42.56 kB / 462.7 MB, free: 8.258 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.415e-06/0.3487, allocations: 3.938 kB / 462.7 MB, free: 8.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001976/0.3507, allocations: 0.8249 MB / 463.5 MB, free: 7.422 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002643/0.351, allocations: 435.2 kB / 463.9 MB, free: 6.898 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004995/0.356, allocations: 2.76 MB / 466.7 MB, free: 4.098 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.3562, allocations: 33.7 kB / 466.7 MB, free: 4.059 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.3572, allocations: 0.8991 MB / 467.6 MB, free: 3.152 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.3574, allocations: 162.6 kB / 467.8 MB, free: 2.992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002336/0.3576, allocations: 122.2 kB / 467.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.3578, allocations: 334 kB / 468.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006081/0.3584, allocations: 257.1 kB / 468.5 MB, free: 2.285 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008304/0.3592, allocations: 0.5285 MB / 469 MB, free: 1.637 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.3604, allocations: 0.6172 MB / 469.6 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.935e-05/0.3604, allocations: 4 kB / 469.6 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002195/0.3626, allocations: 0.8658 MB / 470.5 MB, free: 64 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.3627, allocations: 11.98 kB / 470.5 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.3627, allocations: 8 kB / 470.5 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.884e-05/0.3627, allocations: 8 kB / 470.5 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006775/0.3634, allocations: 160.1 kB / 470.7 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.535e-05/0.3634, allocations: 19.86 kB / 470.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001275/0.3647, allocations: 159.4 kB / 470.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.989e-05/0.3647, allocations: 28 kB / 470.9 MB, free: 15.68 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.001026/0.3658, allocations: 0.5522 MB / 471.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003705/0.3661, allocations: 190.8 kB / 471.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.3677, allocations: 0.7118 MB / 472.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/0.3677, allocations: 4 kB / 472.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.3677, allocations: 3.938 kB / 472.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.3677, allocations: 0 / 472.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003875/0.3716, allocations: 2.093 MB / 474.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3716, allocations: 0 / 474.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005121/0.3721, allocations: 111.8 kB / 474.5 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.3721, allocations: 4 kB / 474.5 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/0.3721, allocations: 8 kB / 474.5 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.3721, allocations: 11.88 kB / 474.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3721, allocations: 0 / 474.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.3741, allocations: 1.056 MB / 475.6 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007456/0.3749, allocations: 350.5 kB / 476 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.375, allocations: 16 kB / 476 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000988/0.376, allocations: 143.8 kB / 476.1 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003482/0.3764, allocations: 147.7 kB / 476.3 MB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.817e-05/0.3764, allocations: 27.92 kB / 476.3 MB, free: 10.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002935/0.3794, allocations: 1.96 MB / 478.2 MB, free: 8.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3794, allocations: 0 / 478.2 MB, free: 8.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009714/0.3803, allocations: 315.4 kB / 478.6 MB, free: 7.859 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (battery1.limIntegrator.y,energy1.y,battery2.limIntegrator.y,battery2.capacitor[1].v,battery2.capacitor[2].v,energy2.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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 Backend phase and start with SimCode phase: time 0.001842/0.3822, allocations: 471 kB / 479 MB, free: 7.574 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.3835, allocations: 0.5733 MB / 479.6 MB, free: 7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3835, allocations: 8.125 kB / 479.6 MB, free: 6.992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006957/0.3842, allocations: 331.6 kB / 479.9 MB, free: 6.668 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.3856, allocations: 324.2 kB / 480.2 MB, free: 6.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006047/0.3916, allocations: 3.553 MB / 483.8 MB, free: 2.754 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/0.3929, allocations: 1.433 MB / 485.2 MB, free: 1.289 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000958/0.3938, allocations: 295.1 kB / 485.5 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.3942, allocations: 103.4 kB / 485.6 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3942, allocations: 0 / 485.6 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of Templates: time 0.04663/0.4408, allocations: 21.83 MB / 0.4955 GB, free: 11.25 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/BatteryDischargeCharge/BatteryDischargeCharge.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 6.038700016215444]