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.0009224/0.0009224, allocations: 85.17 kB / 19.87 MB, free: 4.617 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.0009473/0.0009473, allocations: 169 kB / 23.27 MB, free: 1.223 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 0.9213/0.9213, allocations: 177.1 MB / 203.7 MB, free: 5.484 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.08281/0.08281, allocations: 17.38 MB / 277.6 MB, free: 11.46 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.412e-06/1.412e-06, allocations: 0 / 353.9 MB, free: 9.684 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.433e-05/1.574e-05, allocations: 6.25 kB / 353.9 MB, free: 9.676 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008044/0.00806, allocations: 11.26 MB / 365.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02215/0.03021, allocations: 30.64 MB / 395.8 MB, free: 15.6 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001058/0.03127, allocations: 43.69 kB / 395.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.03248, allocations: 0.6509 MB / 396.5 MB, free: 14.9 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004814/0.0373, allocations: 2.808 MB / 399.3 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00723/0.04453, allocations: 4.236 MB / 403.5 MB, free: 7.812 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002601/0.04713, allocations: 3.53 MB / 407.1 MB, free: 4.266 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.04866, allocations: 1.756 MB / 408.8 MB, free: 2.469 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00215/0.05081, allocations: 2.418 MB / 411.2 MB, free: 48 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1218/0.1726, allocations: 1.589 MB / 412.8 MB, free: 23.79 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009405/0.1736, allocations: 320.9 kB / 413.1 MB, free: 23.79 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006623/0.1802, allocations: 3.313 MB / 416.5 MB, free: 23.79 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005152/0.1807, allocations: 0.7822 MB / 417.2 MB, free: 23.79 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001383/0.1821, allocations: 1.165 MB / 418.4 MB, free: 23.79 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006372/0.1884, allocations: 6.44 MB / 424.8 MB, free: 23.39 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1885, allocations: 0 / 424.8 MB, free: 23.39 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1885, allocations: 4.031 kB / 424.9 MB, free: 23.39 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.1885, allocations: 0.5625 kB / 424.9 MB, free: 23.39 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.003087/0.1916, allocations: 3.792 MB / 428.6 MB, free: 21.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.1916, allocations: 13.22 kB / 428.7 MB, free: 21.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001455/0.1931, allocations: 1.004 MB / 429.7 MB, free: 21.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.1942, allocations: 1.287 MB / 430.9 MB, free: 21.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.1943, allocations: 310 kB / 431.3 MB, free: 20.89 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002385/0.1945, allocations: 268.2 kB / 431.5 MB, free: 20.88 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/0.1963, allocations: 2.265 MB / 433.8 MB, free: 20.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/0.1964, allocations: 0 / 433.8 MB, free: 20.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001517/0.1965, allocations: 110.5 kB / 433.9 MB, free: 20.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.609e-05/0.1966, allocations: 66.59 kB / 433.9 MB, free: 20.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/0.1984, allocations: 2.165 MB / 436.1 MB, free: 20.5 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.006762/0.2051, allocations: 7.315 MB / 443.4 MB, free: 17.14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001869/0.207, allocations: 2.381 MB / 445.8 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005588/0.2076, allocations: 0.6775 MB / 446.5 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005945/0.2135, allocations: 5.698 MB / 452.2 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.2135, allocations: 56.05 kB / 452.2 MB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000364/0.2139, allocations: 213.8 kB / 452.4 MB, free: 8.719 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 2.965e-06/0.2139, allocations: 4 kB / 452.5 MB, free: 8.715 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.01566/0.2296, allocations: 8.506 MB / 461 MB, free: 308 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.205e-05/0.2296, allocations: 77.41 kB / 461 MB, free: 220 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006897/0.2303, allocations: 1.121 MB / 462.2 MB, free: 15.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.2304, allocations: 65.7 kB / 462.2 MB, free: 15.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005171/0.2309, allocations: 1.255 MB / 463.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004632/0.2314, allocations: 0.9024 MB / 464.4 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005461/0.2319, allocations: 0.5821 MB / 465 MB, free: 12.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.817e-05/0.232, allocations: 487.3 kB / 465.4 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000555/0.2326, allocations: 469.8 kB / 465.9 MB, free: 11.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001274/0.2338, allocations: 1.726 MB / 467.6 MB, free: 9.484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.2357, allocations: 2.514 MB / 470.1 MB, free: 6.594 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.2357, allocations: 8 kB / 470.1 MB, free: 6.586 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.004306/0.2401, allocations: 2.923 MB / 473.1 MB, free: 3.797 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.2401, allocations: 20 kB / 473.1 MB, free: 3.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.32e-05/0.2401, allocations: 32.12 kB / 473.1 MB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003316/0.2434, allocations: 1.18 MB / 474.3 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.2445, allocations: 0.6538 MB / 474.9 MB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005591/0.2501, allocations: 8.039 MB / 483 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007987/0.2509, allocations: 95.38 kB / 483.1 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.2511, allocations: 147.9 kB / 483.2 MB, free: 9.406 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.0004531/0.2515, allocations: 346.2 kB / 483.6 MB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003095/0.2519, allocations: 270.7 kB / 483.8 MB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004119/0.256, allocations: 2.706 MB / 486.5 MB, free: 6.074 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.256, allocations: 28.09 kB / 486.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.256, allocations: 7.984 kB / 486.6 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.256, allocations: 11.95 kB / 486.6 MB, free: 6.027 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006015/0.262, allocations: 4.36 MB / 490.9 MB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.523e-06/0.262, allocations: 3.984 kB / 490.9 MB, free: 1.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008533/0.2629, allocations: 433.3 kB / 491.4 MB, free: 1.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002837/0.2657, allocations: 1.101 MB / 492.5 MB, free: 372 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001455/0.2659, allocations: 95.94 kB / 492.6 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004779/0.2706, allocations: 7.727 MB / 0.4886 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2707, allocations: 7.984 kB / 0.4886 GB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004745/0.2754, allocations: 3.184 MB / 0.4917 GB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.2755, allocations: 173.7 kB / 0.4918 GB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001619/0.2757, allocations: 55.98 kB / 0.4919 GB, free: 4.758 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005431/0.2762, allocations: 60 kB / 0.492 GB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/0.2765, allocations: 241.4 kB / 0.4922 GB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.2766, allocations: 95.94 kB / 0.4923 GB, free: 4.371 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003313/0.277, allocations: 0.5685 MB / 0.4928 GB, free: 3.855 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.277, allocations: 0 / 0.4928 GB, free: 3.855 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002381/0.2793, allocations: 1.442 MB / 0.4942 GB, free: 2.41 MB / 378.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.001653/0.281, allocations: 1.573 MB / 0.4958 GB, free: 1.016 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002605/0.2836, allocations: 2.531 MB / 0.4983 GB, free: 14.53 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2836, allocations: 0 / 0.4983 GB, free: 14.53 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00165/0.2852, allocations: 1.59 MB / 0.4998 GB, free: 12.95 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009825/0.2862, allocations: 444.8 kB / 0.5002 GB, free: 12.52 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.004719/0.2909, allocations: 4.268 MB / 0.5044 GB, free: 8.199 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.2913, allocations: 443.7 kB / 0.5048 GB, free: 7.738 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001006/0.2923, allocations: 484.4 kB / 0.5053 GB, free: 7.262 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/0.2935, allocations: 0.7053 MB / 0.506 GB, free: 6.566 MB / 394.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2935, allocations: 0 / 0.506 GB, free: 6.566 MB / 394.7 MB Notification: Performance of Templates: time 0.1604/0.4539, allocations: 60.5 MB / 0.5651 GB, free: 154 MB / 442.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 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.43223758880049]