Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 177.4 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.054/1.054, allocations: 177.2 MB / 203.8 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.09064/0.09064, allocations: 17.39 MB / 277.7 MB, free: 11.51 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.LeadAcidBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 300.7 MB, free: 1.801 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.374e-05, allocations: 3.812 kB / 300.7 MB, free: 1.797 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009776/0.0098, allocations: 11.33 MB / 312 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02655/0.03635, allocations: 31.13 MB / 343.1 MB, free: 9.695 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002031/0.03838, allocations: 39.69 kB / 343.2 MB, free: 9.656 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.03995, allocations: 0.6664 MB / 343.8 MB, free: 8.984 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00689/0.04684, allocations: 2.772 MB / 346.6 MB, free: 6.191 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009446/0.05628, allocations: 4.216 MB / 350.8 MB, free: 1.949 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005745/0.06203, allocations: 3.531 MB / 354.3 MB, free: 14.4 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002371/0.0644, allocations: 1.767 MB / 356.1 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003013/0.06741, allocations: 2.41 MB / 358.5 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00261/0.07002, allocations: 1.575 MB / 360.1 MB, free: 8.582 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008/0.07082, allocations: 320 kB / 360.4 MB, free: 8.27 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008522/0.07935, allocations: 3.435 MB / 363.8 MB, free: 4.828 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.08041, allocations: 0.7866 MB / 364.6 MB, free: 4.039 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001679/0.08209, allocations: 1.173 MB / 365.8 MB, free: 2.863 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01316/0.09525, allocations: 6.443 MB / 372.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.09526, allocations: 0 / 372.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09526, allocations: 0 / 372.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.423e-05/0.09533, allocations: 0 / 372.3 MB, free: 12.39 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 669 * Number of variables: 669 Notification: Performance of Generate backend data structure: time 0.005744/0.1011, allocations: 3.625 MB / 375.9 MB, free: 8.723 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.1011, allocations: 12.03 kB / 375.9 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001819/0.1029, allocations: 0.9461 MB / 376.8 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.1043, allocations: 0.9757 MB / 377.8 MB, free: 6.754 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001882/0.1045, allocations: 308.6 kB / 378.1 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/0.1048, allocations: 284.2 kB / 378.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002405/0.1072, allocations: 2.298 MB / 380.7 MB, free: 3.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.314e-05/0.1072, allocations: 3.938 kB / 380.7 MB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000171/0.1074, allocations: 108 kB / 380.8 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.43e-05/0.1074, allocations: 64 kB / 380.9 MB, free: 3.598 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00254/0.11, allocations: 1.917 MB / 382.8 MB, free: 1.648 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008505/0.1185, allocations: 5.912 MB / 388.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002488/0.121, allocations: 2.266 MB / 391 MB, free: 9.32 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006661/0.1216, allocations: 0.5827 MB / 391.5 MB, free: 8.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00796/0.1296, allocations: 4.991 MB / 396.5 MB, free: 3.711 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.003e-05/0.1296, allocations: 52.56 kB / 396.6 MB, free: 3.652 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006458/0.1303, allocations: 222.6 kB / 396.8 MB, free: 3.434 MB / 362.7 MB Notification: Performance of pre-optimization done (n=177): time 7.194e-06/0.1303, allocations: 3.984 kB / 396.8 MB, free: 3.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=251): time 0.02117/0.1515, allocations: 9.057 MB / 405.9 MB, free: 10.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.1515, allocations: 77.41 kB / 405.9 MB, free: 10.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007608/0.1523, allocations: 1.025 MB / 407 MB, free: 9.191 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.1524, allocations: 69.64 kB / 407 MB, free: 9.117 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004741/0.1529, allocations: 1.056 MB / 408.1 MB, free: 8.047 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005595/0.1534, allocations: 0.9024 MB / 409 MB, free: 7.137 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005352/0.154, allocations: 0.5572 MB / 409.5 MB, free: 6.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.397e-05/0.1541, allocations: 301.1 kB / 409.8 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/0.1546, allocations: 406.2 kB / 410.2 MB, free: 5.871 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.1558, allocations: 1.303 MB / 411.5 MB, free: 4.176 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001746/0.1576, allocations: 2.1 MB / 413.6 MB, free: 1.652 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.135e-05/0.1576, allocations: 8 kB / 413.6 MB, free: 1.645 MB / 378.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.004062/0.1616, allocations: 2.33 MB / 416 MB, free: 15.26 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.995e-05/0.1617, allocations: 20.91 kB / 416 MB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/0.1617, allocations: 28 kB / 416 MB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003635/0.1653, allocations: 1.184 MB / 417.2 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/0.1669, allocations: 0.7138 MB / 417.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005535/0.1724, allocations: 5.786 MB / 423.7 MB, free: 7.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001437/0.1739, allocations: 92 kB / 423.8 MB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000222/0.1741, allocations: 143.9 kB / 423.9 MB, free: 6.996 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (341): * Single equations (assignments): 336 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,25), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001033/0.1751, allocations: 307.7 kB / 424.2 MB, free: 6.684 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003948/0.1755, allocations: 191.8 kB / 424.4 MB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003882/0.1794, allocations: 2.267 MB / 426.7 MB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-05/0.1794, allocations: 28 kB / 426.7 MB, free: 4.152 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.1794, allocations: 4 kB / 426.7 MB, free: 4.148 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.908e-05/0.1794, allocations: 11.95 kB / 426.7 MB, free: 4.137 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005807/0.1852, allocations: 3.483 MB / 430.2 MB, free: 0.5312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.1852, allocations: 0 / 430.2 MB, free: 0.5312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.1863, allocations: 495.7 kB / 430.7 MB, free: 48 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003572/0.1899, allocations: 1.084 MB / 431.8 MB, free: 14.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002366/0.1901, allocations: 91.94 kB / 431.9 MB, free: 14.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004444/0.1946, allocations: 5.481 MB / 437.4 MB, free: 9.086 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1946, allocations: 4 kB / 437.4 MB, free: 9.082 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004561/0.1991, allocations: 2.643 MB / 440 MB, free: 6.289 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003826/0.1995, allocations: 174.6 kB / 440.2 MB, free: 6.117 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001909/0.1997, allocations: 52 kB / 440.2 MB, free: 6.066 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005903/0.2003, allocations: 55.98 kB / 440.3 MB, free: 6.012 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003733/0.2007, allocations: 237.4 kB / 440.5 MB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/0.2008, allocations: 91.94 kB / 440.6 MB, free: 5.688 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003835/0.2012, allocations: 461 kB / 441 MB, free: 5.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2012, allocations: 0 / 441 MB, free: 5.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003075/0.2043, allocations: 1.442 MB / 442.5 MB, free: 3.785 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (anode.temperature,cathode.temperature,solution1.temperature,Pb.logn,HSO4.logn,PbSO4_.logn,H.logn,PbO2.logn,H2O.logn,PbSO4.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 217 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,15,66.7%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,27), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002336/0.2066, allocations: 1.567 MB / 444.1 MB, free: 2.207 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1262/0.3329, allocations: 2.191 MB / 446.2 MB, free: 125.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.608e-05/0.3329, allocations: 21.44 kB / 446.3 MB, free: 125.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002424/0.3354, allocations: 1.317 MB / 447.6 MB, free: 125.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.3368, allocations: 442.1 kB / 448 MB, free: 125.1 MB / 410.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006417/0.3432, allocations: 4.178 MB / 452.2 MB, free: 123.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.3437, allocations: 435.2 kB / 452.6 MB, free: 123.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001559/0.3453, allocations: 483.3 kB / 453.1 MB, free: 123.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001236/0.3465, allocations: 0.6321 MB / 453.7 MB, free: 123.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.563e-06/0.3465, allocations: 0 / 453.7 MB, free: 123.1 MB / 410.7 MB Notification: Performance of Templates: time 0.05654/0.4031, allocations: 60.42 MB / 0.5021 GB, free: 75.88 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.sim & ./Chemical_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.720273208804429]