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.001394/0.001394, allocations: 117 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.001803/0.001803, allocations: 209.3 kB / 24.47 MB, free: 3.898 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.413/1.413, allocations: 230.4 MB / 258.1 MB, free: 8.125 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.001915/0.001915, allocations: 71.83 kB / 378.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.282, allocations: 53.31 MB / 432 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.BatteryDischargeCharge): time 0.008774/0.2908, allocations: 5.892 MB / 437.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005327/0.2961, allocations: 2.77 MB / 440.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.2972, allocations: 23.88 kB / 440.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.2995, allocations: 0.7677 MB / 441.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001782/0.3012, allocations: 0.5633 MB / 442.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.3028, allocations: 0.5127 MB / 442.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002601/0.3054, allocations: 1.594 MB / 444.2 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009444/0.3063, allocations: 410.6 kB / 444.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.3074, allocations: 0.6073 MB / 445.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001391/0.3088, allocations: 0.7705 MB / 445.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004062/0.3092, allocations: 132 kB / 446.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000687/0.3099, allocations: 223.9 kB / 446.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008046/0.3107, allocations: 0.6426 MB / 446.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.3122, allocations: 0.9243 MB / 447.9 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003578/0.3158, allocations: 2.513 MB / 450.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3158, allocations: 0 / 450.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3158, allocations: 0 / 450.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000109/0.3159, allocations: 0 / 450.4 MB, free: 4.922 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.007198/0.3231, allocations: 2.648 MB / 453 MB, free: 2.211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.3231, allocations: 8.031 kB / 453 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006128/0.3237, allocations: 231.5 kB / 453.3 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003188/0.3269, allocations: 1.568 MB / 454.8 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.3271, allocations: 96.27 kB / 454.9 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/0.3272, allocations: 91.88 kB / 455 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002064/0.3293, allocations: 1.108 MB / 456.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.614e-05/0.3293, allocations: 3.938 kB / 456.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-05/0.3294, allocations: 40 kB / 456.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.225e-05/0.3294, allocations: 20 kB / 456.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3308, allocations: 0.7182 MB / 456.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007738/0.3385, allocations: 4.592 MB / 461.5 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.3399, allocations: 0.9039 MB / 462.4 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007913/0.3407, allocations: 365.9 kB / 462.8 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.352e-05/0.3408, allocations: 4 kB / 462.8 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.3408, allocations: 46.56 kB / 462.8 MB, free: 7.992 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.357e-06/0.3408, allocations: 0 / 462.8 MB, free: 7.992 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001941/0.3428, allocations: 0.8327 MB / 463.6 MB, free: 7.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002663/0.343, allocations: 419.2 kB / 464 MB, free: 6.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003964/0.347, allocations: 2.76 MB / 466.8 MB, free: 3.844 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.651e-05/0.3471, allocations: 41.69 kB / 466.8 MB, free: 3.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008654/0.348, allocations: 0.8952 MB / 467.7 MB, free: 2.895 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000166/0.3481, allocations: 162.6 kB / 467.9 MB, free: 2.734 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000221/0.3483, allocations: 130.2 kB / 468 MB, free: 2.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.3485, allocations: 330 kB / 468.3 MB, free: 2.273 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005795/0.3491, allocations: 253.1 kB / 468.6 MB, free: 2.023 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008216/0.3499, allocations: 0.5363 MB / 469.1 MB, free: 1.371 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.351, allocations: 0.621 MB / 469.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.351, allocations: 0 / 469.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001814/0.3528, allocations: 0.8583 MB / 470.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3529, allocations: 8 kB / 470.6 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.3529, allocations: 8.062 kB / 470.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.69e-05/0.3529, allocations: 12 kB / 470.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.3535, allocations: 155.8 kB / 470.8 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.1e-05/0.3536, allocations: 19.86 kB / 470.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00109/0.3546, allocations: 163.4 kB / 471 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.807e-05/0.3547, allocations: 24 kB / 471 MB, free: 15.42 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.0009123/0.3556, allocations: 0.5599 MB / 471.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003134/0.3559, allocations: 190.8 kB / 471.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.3574, allocations: 0.6924 MB / 472.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.3574, allocations: 4 kB / 472.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.3574, allocations: 7.938 kB / 472.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.3574, allocations: 7.984 kB / 472.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003864/0.3613, allocations: 2.125 MB / 474.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.3613, allocations: 0 / 474.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/0.3618, allocations: 103.9 kB / 474.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-06/0.3618, allocations: 8.094 kB / 474.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.289e-05/0.3619, allocations: 15.98 kB / 474.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.3619, allocations: 4 kB / 474.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3619, allocations: 0 / 474.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.3639, allocations: 1.06 MB / 475.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009147/0.3648, allocations: 415.7 kB / 476.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.365, allocations: 15.98 kB / 476.2 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.3661, allocations: 136 kB / 476.3 MB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003442/0.3664, allocations: 163.7 kB / 476.5 MB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.476e-05/0.3665, allocations: 23.88 kB / 476.5 MB, free: 9.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002913/0.3694, allocations: 1.964 MB / 478.5 MB, free: 7.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3694, allocations: 4 kB / 478.5 MB, free: 7.785 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009811/0.3704, allocations: 319.3 kB / 478.8 MB, free: 7.473 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.001782/0.3722, allocations: 488.9 kB / 479.3 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.3735, allocations: 0.5647 MB / 479.8 MB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.3735, allocations: 4 kB / 479.8 MB, free: 6.617 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006665/0.3742, allocations: 328.7 kB / 480.1 MB, free: 6.297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3756, allocations: 317.3 kB / 480.5 MB, free: 5.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006272/0.3819, allocations: 3.624 MB / 484.1 MB, free: 2.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.3832, allocations: 1.429 MB / 485.5 MB, free: 0.8516 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004735/0.3836, allocations: 111.4 kB / 485.6 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3836, allocations: 4 kB / 485.6 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of Templates: time 0.03747/0.4211, allocations: 23.24 MB / 0.4969 GB, free: 9.582 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: 10.160712776705623]