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.000999/0.000999, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001983/0.001983, allocations: 165 kB / 23.02 MB, free: 1.555 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.036/1.036, allocations: 177.1 MB / 203.4 MB, free: 5.613 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.08056/0.08056, allocations: 17.37 MB / 277.3 MB, free: 11.63 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.352e-06/1.352e-06, allocations: 0 / 353.4 MB, free: 9.984 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.805e-05/1.941e-05, allocations: 8.5 kB / 353.4 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009046/0.009066, allocations: 11.48 MB / 364.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02496/0.03402, allocations: 31.48 MB / 396.4 MB, free: 14.85 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001552/0.03557, allocations: 35.75 kB / 396.4 MB, free: 14.81 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.03707, allocations: 0.6509 MB / 397.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005722/0.04279, allocations: 2.812 MB / 399.9 MB, free: 11.32 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008404/0.05119, allocations: 4.232 MB / 404.1 MB, free: 7.066 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003188/0.05438, allocations: 3.541 MB / 407.7 MB, free: 3.512 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.05579, allocations: 1.756 MB / 409.4 MB, free: 1.715 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1518/0.2076, allocations: 2.362 MB / 411.8 MB, free: 22.44 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003065/0.2106, allocations: 1.552 MB / 413.3 MB, free: 22.44 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001182/0.2118, allocations: 323.8 kB / 413.7 MB, free: 22.44 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008461/0.2203, allocations: 3.319 MB / 417 MB, free: 22.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007672/0.2211, allocations: 0.771 MB / 417.7 MB, free: 22.44 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002146/0.2232, allocations: 1.165 MB / 418.9 MB, free: 22.44 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.2334, allocations: 6.391 MB / 425.3 MB, free: 21.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.2334, allocations: 0 / 425.3 MB, free: 21.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2334, allocations: 3.281 kB / 425.3 MB, free: 21.98 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.2334, allocations: 0 / 425.3 MB, free: 21.98 MB / 330.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.003295/0.2367, allocations: 3.755 MB / 429.1 MB, free: 20.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.2367, allocations: 10.09 kB / 429.1 MB, free: 20.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001556/0.2383, allocations: 1.065 MB / 430.1 MB, free: 19.97 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.2397, allocations: 1.462 MB / 431.6 MB, free: 19.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.2398, allocations: 311.8 kB / 431.9 MB, free: 19.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002544/0.2401, allocations: 269.6 kB / 432.2 MB, free: 19.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.2425, allocations: 2.501 MB / 434.7 MB, free: 19.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.539e-05/0.2426, allocations: 0 / 434.7 MB, free: 19.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000172/0.2427, allocations: 109 kB / 434.8 MB, free: 19.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/0.2428, allocations: 66.09 kB / 434.8 MB, free: 19.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002723/0.2455, allocations: 2.545 MB / 437.4 MB, free: 19.11 MB / 330.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.007234/0.2527, allocations: 7.555 MB / 444.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.255, allocations: 2.536 MB / 447.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000803/0.2558, allocations: 0.8002 MB / 448.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006086/0.2619, allocations: 5.651 MB / 453.9 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.2619, allocations: 55.38 kB / 454 MB, free: 6.094 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003912/0.2623, allocations: 217.8 kB / 454.2 MB, free: 5.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 3.096e-06/0.2623, allocations: 4 kB / 454.2 MB, free: 5.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.01871/0.281, allocations: 9.39 MB / 463.6 MB, free: 12.51 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.2811, allocations: 81.41 kB / 463.7 MB, free: 12.42 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009786/0.282, allocations: 1.136 MB / 464.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001097/0.2821, allocations: 65.7 kB / 464.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005213/0.2827, allocations: 1.242 MB / 466.1 MB, free: 9.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004553/0.2831, allocations: 0.9017 MB / 467 MB, free: 9.039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008064/0.2839, allocations: 0.5644 MB / 467.6 MB, free: 8.461 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.12e-05/0.284, allocations: 476.8 kB / 468 MB, free: 7.992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008647/0.2849, allocations: 0.5994 MB / 468.6 MB, free: 7.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.2863, allocations: 1.85 MB / 470.5 MB, free: 5.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002515/0.2888, allocations: 2.741 MB / 473.2 MB, free: 1.828 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.049e-05/0.2888, allocations: 11.98 kB / 473.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005312/0.2941, allocations: 3.221 MB / 476.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.2942, allocations: 23.69 kB / 476.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.2942, allocations: 32 kB / 476.5 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003391/0.2976, allocations: 1.206 MB / 477.7 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.2988, allocations: 0.6505 MB / 478.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006314/0.3051, allocations: 8.208 MB / 486.6 MB, free: 4.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.3062, allocations: 99.98 kB / 486.7 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.3064, allocations: 167.9 kB / 486.8 MB, free: 4.016 MB / 362.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.0005784/0.307, allocations: 349.9 kB / 487.2 MB, free: 3.707 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003363/0.3073, allocations: 274.7 kB / 487.5 MB, free: 3.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005345/0.3126, allocations: 2.949 MB / 490.4 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.3127, allocations: 27.94 kB / 490.4 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3127, allocations: 4 kB / 490.4 MB, free: 408 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.3127, allocations: 11.95 kB / 490.4 MB, free: 396 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006863/0.3195, allocations: 4.573 MB / 495 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.3195, allocations: 4 kB / 495 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009385/0.3205, allocations: 441.4 kB / 495.5 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003483/0.324, allocations: 1.113 MB / 496.6 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001432/0.3241, allocations: 111.2 kB / 496.7 MB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005406/0.3295, allocations: 7.872 MB / 0.4927 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.3295, allocations: 4 kB / 0.4927 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005587/0.3351, allocations: 3.552 MB / 0.4962 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002565/0.3354, allocations: 174.6 kB / 0.4964 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/0.3355, allocations: 60 kB / 0.4964 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006009/0.3361, allocations: 59.98 kB / 0.4965 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000298/0.3364, allocations: 245 kB / 0.4967 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/0.3366, allocations: 107.9 kB / 0.4968 GB, free: 13.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005329/0.3371, allocations: 0.6069 MB / 0.4974 GB, free: 12.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3371, allocations: 0 / 0.4974 GB, free: 12.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003381/0.3405, allocations: 1.442 MB / 0.4988 GB, free: 11.49 MB / 394.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.001876/0.3424, allocations: 1.503 MB / 0.5003 GB, free: 10.17 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.346, allocations: 2.787 MB / 0.503 GB, free: 7.387 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.346, allocations: 384 / 0.503 GB, free: 7.387 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.3478, allocations: 1.698 MB / 0.5047 GB, free: 5.664 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001077/0.3489, allocations: 441.5 kB / 0.5051 GB, free: 5.23 MB / 394.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006152/0.3551, allocations: 4.357 MB / 0.5093 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.3554, allocations: 440.3 kB / 0.5098 GB, free: 344 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001124/0.3565, allocations: 0.4925 MB / 0.5102 GB, free: 15.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005455/0.3571, allocations: 345 kB / 0.5106 GB, free: 15.51 MB / 410.7 MB Notification: Performance of SimCode: time 1.252e-06/0.3571, allocations: 0 / 0.5106 GB, free: 15.51 MB / 410.7 MB Notification: Performance of Templates: time 0.1783/0.5354, allocations: 53.43 MB / 0.5627 GB, free: 155.2 MB / 442.7 MB " [Timeout remaining time 659] 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 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.8161715511232615]