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.000961/0.000961, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001273/0.001273, allocations: 181 kB / 23.36 MB, free: 1.133 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.95/0.95, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.09031/0.09031, allocations: 17.39 MB / 277.6 MB, free: 11.53 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.312e-06/1.312e-06, allocations: 0 / 300.6 MB, free: 1.922 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.901e-05/2.032e-05, allocations: 3.625 kB / 300.6 MB, free: 1.918 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008672/0.008693, allocations: 11.29 MB / 311.9 MB, free: 9.098 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02953/0.03822, allocations: 31.12 MB / 343 MB, free: 9.855 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001414/0.03963, allocations: 39.69 kB / 343.1 MB, free: 9.816 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.04076, allocations: 0.6509 MB / 343.7 MB, free: 9.16 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004932/0.04569, allocations: 2.839 MB / 346.6 MB, free: 6.301 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007766/0.05346, allocations: 4.283 MB / 350.8 MB, free: 1.992 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002859/0.05632, allocations: 3.523 MB / 354.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.05756, allocations: 1.771 MB / 356.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001504/0.05906, allocations: 2.426 MB / 358.6 MB, free: 10.19 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.06033, allocations: 1.567 MB / 360.1 MB, free: 8.621 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002749/0.06061, allocations: 323.9 kB / 360.5 MB, free: 8.305 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005917/0.06652, allocations: 3.314 MB / 363.8 MB, free: 4.984 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004317/0.06696, allocations: 0.7827 MB / 364.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008159/0.06777, allocations: 1.177 MB / 365.7 MB, free: 3.02 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007614/0.07539, allocations: 6.436 MB / 372.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.07539, allocations: 0 / 372.2 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.07539, allocations: 7.938 kB / 372.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.677e-05/0.07541, allocations: 0 / 372.2 MB, free: 12.55 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.00359/0.079, allocations: 3.625 MB / 375.8 MB, free: 8.879 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.07903, allocations: 12.03 kB / 375.8 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001467/0.0805, allocations: 0.95 MB / 376.8 MB, free: 7.914 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.08165, allocations: 0.9718 MB / 377.7 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001509/0.0818, allocations: 308.6 kB / 378 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002754/0.08208, allocations: 276.3 kB / 378.3 MB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.08403, allocations: 2.305 MB / 380.6 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.345e-05/0.08406, allocations: 3.938 kB / 380.6 MB, free: 3.922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001584/0.08422, allocations: 111.9 kB / 380.7 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.179e-05/0.08425, allocations: 64 kB / 380.8 MB, free: 3.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002212/0.08646, allocations: 1.921 MB / 382.7 MB, free: 1.797 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.00711/0.09357, allocations: 5.916 MB / 388.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.09594, allocations: 2.25 MB / 390.9 MB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/0.09651, allocations: 0.5866 MB / 391.5 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006424/0.1029, allocations: 5.002 MB / 396.5 MB, free: 3.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.365e-05/0.103, allocations: 48.56 kB / 396.5 MB, free: 3.801 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006577/0.1036, allocations: 222.6 kB / 396.7 MB, free: 3.582 MB / 362.7 MB Notification: Performance of pre-optimization done (n=177): time 3.386e-06/0.1036, allocations: 0 / 396.7 MB, free: 3.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=251): time 0.01821/0.1218, allocations: 9.049 MB / 405.8 MB, free: 10.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.1219, allocations: 77.41 kB / 405.8 MB, free: 10.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005959/0.1225, allocations: 1.025 MB / 406.9 MB, free: 9.352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000106/0.1226, allocations: 65.7 kB / 406.9 MB, free: 9.281 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/0.123, allocations: 1.064 MB / 408 MB, free: 8.203 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004323/0.1234, allocations: 0.9024 MB / 408.9 MB, free: 7.293 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004907/0.1239, allocations: 0.5572 MB / 409.5 MB, free: 6.727 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.328e-05/0.124, allocations: 305.1 kB / 409.8 MB, free: 6.426 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004788/0.1245, allocations: 406.2 kB / 410.2 MB, free: 6.023 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.1255, allocations: 1.303 MB / 411.5 MB, free: 4.328 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001596/0.1271, allocations: 2.093 MB / 413.5 MB, free: 1.812 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.1271, allocations: 11.94 kB / 413.6 MB, free: 1.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.003484/0.1306, allocations: 2.334 MB / 415.9 MB, free: 15.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.1306, allocations: 23.94 kB / 415.9 MB, free: 15.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.202e-05/0.1307, allocations: 28 kB / 415.9 MB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002936/0.1336, allocations: 1.174 MB / 417.1 MB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.135, allocations: 0.6435 MB / 417.8 MB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004416/0.1394, allocations: 5.757 MB / 423.5 MB, free: 7.488 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008252/0.1402, allocations: 95.98 kB / 423.6 MB, free: 7.395 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001609/0.1404, allocations: 143.9 kB / 423.8 MB, free: 7.254 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.0004748/0.1408, allocations: 307.7 kB / 424.1 MB, free: 6.941 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.1411, allocations: 191.8 kB / 424.2 MB, free: 6.754 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00351/0.1446, allocations: 2.26 MB / 426.5 MB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.1446, allocations: 24 kB / 426.5 MB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1446, allocations: 4 kB / 426.5 MB, free: 4.418 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.1446, allocations: 11.95 kB / 426.5 MB, free: 4.406 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004918/0.1495, allocations: 3.475 MB / 430 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.1496, allocations: 0 / 430 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008288/0.1504, allocations: 439.7 kB / 430.4 MB, free: 388 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002658/0.153, allocations: 1.078 MB / 431.5 MB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.1532, allocations: 91.94 kB / 431.6 MB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003729/0.1569, allocations: 5.468 MB / 437.1 MB, free: 9.434 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1569, allocations: 7.938 kB / 437.1 MB, free: 9.426 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003736/0.1606, allocations: 2.647 MB / 439.7 MB, free: 6.629 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.1608, allocations: 170.6 kB / 439.9 MB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/0.161, allocations: 52 kB / 440 MB, free: 6.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005096/0.1615, allocations: 55.98 kB / 440 MB, free: 6.355 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.1617, allocations: 237.4 kB / 440.2 MB, free: 6.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.1619, allocations: 91.92 kB / 440.3 MB, free: 6.031 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003088/0.1622, allocations: 453.1 kB / 440.8 MB, free: 5.582 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1622, allocations: 4 kB / 440.8 MB, free: 5.578 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002729/0.1649, allocations: 1.446 MB / 442.2 MB, free: 4.129 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.001719/0.1666, allocations: 1.566 MB / 443.8 MB, free: 2.551 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002362/0.169, allocations: 2.194 MB / 446 MB, free: 292 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.601e-05/0.169, allocations: 21.81 kB / 446 MB, free: 268 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1085/0.2775, allocations: 1.307 MB / 447.3 MB, free: 125.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.2787, allocations: 442 kB / 447.7 MB, free: 125.4 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.005104/0.2838, allocations: 4.177 MB / 451.9 MB, free: 123.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.2842, allocations: 431.9 kB / 452.3 MB, free: 123.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001254/0.2854, allocations: 486.4 kB / 452.8 MB, free: 123.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/0.2865, allocations: 0.6385 MB / 453.5 MB, free: 123.4 MB / 410.7 MB Notification: Performance of SimCode: time 9.32e-07/0.2865, allocations: 0 / 453.5 MB, free: 123.4 MB / 410.7 MB Notification: Performance of Templates: time 0.05088/0.3374, allocations: 60.42 MB / 0.5018 GB, free: 76.26 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 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.484176440164447]