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.0009966/0.0009966, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001735/0.001735, allocations: 173.3 kB / 23.5 MB, free: 1.055 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.9544/0.9544, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.1106/0.1106, allocations: 17.38 MB / 277.7 MB, free: 11.71 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.343e-06/1.343e-06, allocations: 0 / 353.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.741e-05/2.876e-05, allocations: 8.641 kB / 353.5 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009854/0.009883, allocations: 11.52 MB / 365 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0267/0.03658, allocations: 33.88 MB / 398.9 MB, free: 12.73 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001743/0.03833, allocations: 39.69 kB / 398.9 MB, free: 12.69 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.03985, allocations: 0.6859 MB / 399.6 MB, free: 12 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006415/0.04627, allocations: 2.862 MB / 402.4 MB, free: 9.113 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009266/0.05553, allocations: 4.628 MB / 407.1 MB, free: 4.457 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004329/0.05986, allocations: 3.537 MB / 410.6 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1494/0.2093, allocations: 1.748 MB / 412.4 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004336/0.2136, allocations: 2.361 MB / 414.7 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003051/0.2167, allocations: 1.56 MB / 416.3 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.2177, allocations: 322.6 kB / 416.6 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01036/0.228, allocations: 3.577 MB / 420.2 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001147/0.2292, allocations: 0.777 MB / 420.9 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002035/0.2312, allocations: 1.156 MB / 422.1 MB, free: 19.96 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01304/0.2443, allocations: 6.712 MB / 428.8 MB, free: 19.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2443, allocations: 0 / 428.8 MB, free: 19.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2443, allocations: 3.25 kB / 428.8 MB, free: 19.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.293e-05/0.2444, allocations: 0 / 428.8 MB, free: 19.32 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.005722/0.2501, allocations: 3.814 MB / 432.6 MB, free: 17.62 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.2501, allocations: 13.56 kB / 432.6 MB, free: 17.62 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002629/0.2527, allocations: 1.061 MB / 433.7 MB, free: 17.28 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002118/0.2549, allocations: 1.465 MB / 435.2 MB, free: 16.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.255, allocations: 306 kB / 435.5 MB, free: 16.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003822/0.2554, allocations: 276.4 kB / 435.7 MB, free: 16.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/0.259, allocations: 2.498 MB / 438.2 MB, free: 16.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.485e-05/0.259, allocations: 0 / 438.2 MB, free: 16.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/0.2592, allocations: 113.5 kB / 438.4 MB, free: 16.23 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.183e-05/0.2593, allocations: 62.22 kB / 438.4 MB, free: 16.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003938/0.2632, allocations: 2.544 MB / 441 MB, free: 15.85 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.01052/0.2737, allocations: 7.562 MB / 448.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002994/0.2767, allocations: 2.539 MB / 451.1 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009021/0.2776, allocations: 0.8041 MB / 451.9 MB, free: 7.023 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007167/0.2848, allocations: 5.647 MB / 457.5 MB, free: 1.449 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.002e-05/0.2848, allocations: 55.39 kB / 457.6 MB, free: 1.387 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005633/0.2854, allocations: 221.6 kB / 457.8 MB, free: 1.172 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 5.24e-06/0.2854, allocations: 3.938 kB / 457.8 MB, free: 1.168 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.02176/0.3072, allocations: 9.383 MB / 467.2 MB, free: 7.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.3072, allocations: 81.39 kB / 467.2 MB, free: 7.711 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001103/0.3083, allocations: 1.139 MB / 468.4 MB, free: 6.535 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001629/0.3085, allocations: 73.7 kB / 468.5 MB, free: 6.457 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006227/0.3091, allocations: 1.242 MB / 469.7 MB, free: 5.211 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006159/0.3097, allocations: 0.8939 MB / 470.6 MB, free: 4.328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006157/0.3103, allocations: 0.5722 MB / 471.2 MB, free: 3.742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.3104, allocations: 476.8 kB / 471.6 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/0.3114, allocations: 0.5955 MB / 472.2 MB, free: 2.676 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.313, allocations: 1.851 MB / 474.1 MB, free: 312 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002725/0.3157, allocations: 2.738 MB / 476.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-05/0.3157, allocations: 12 kB / 476.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005855/0.3216, allocations: 3.228 MB / 480.1 MB, free: 10 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.3216, allocations: 22.75 kB / 480.1 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/0.3216, allocations: 28 kB / 480.1 MB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003601/0.3252, allocations: 1.21 MB / 481.3 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.3267, allocations: 0.6499 MB / 482 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00643/0.3331, allocations: 8.212 MB / 490.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.3345, allocations: 99.98 kB / 490.3 MB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002383/0.3347, allocations: 171.9 kB / 490.4 MB, free: 15.3 MB / 378.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.0007145/0.3354, allocations: 346.6 kB / 490.8 MB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004277/0.3358, allocations: 270.8 kB / 491 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005063/0.3409, allocations: 2.95 MB / 494 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.223e-05/0.3409, allocations: 28.08 kB / 494 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.3409, allocations: 4 kB / 494 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/0.341, allocations: 15.94 kB / 494 MB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007525/0.3485, allocations: 4.57 MB / 498.6 MB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.3485, allocations: 4 kB / 498.6 MB, free: 7.031 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009998/0.3495, allocations: 441.4 kB / 499 MB, free: 6.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003419/0.3529, allocations: 1.12 MB / 0.4884 GB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002467/0.3532, allocations: 99.88 kB / 0.4885 GB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00576/0.3589, allocations: 7.873 MB / 0.4962 GB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3589, allocations: 4 kB / 0.4962 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006303/0.3652, allocations: 3.559 MB / 0.4997 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003837/0.3656, allocations: 174.6 kB / 0.4999 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002391/0.3658, allocations: 56 kB / 0.4999 GB, free: 9.219 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000693/0.3665, allocations: 59.98 kB / 0.5 GB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003912/0.3669, allocations: 241 kB / 0.5002 GB, free: 8.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001653/0.3671, allocations: 111.9 kB / 0.5003 GB, free: 8.816 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005891/0.3677, allocations: 0.603 MB / 0.5009 GB, free: 8.211 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3677, allocations: 4 kB / 0.5009 GB, free: 8.207 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003156/0.3708, allocations: 1.5 MB / 0.5024 GB, free: 6.703 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.002714/0.3736, allocations: 1.603 MB / 0.5039 GB, free: 5.297 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004336/0.3779, allocations: 2.774 MB / 0.5067 GB, free: 2.527 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.3779, allocations: 4.062 kB / 0.5067 GB, free: 2.523 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002261/0.3802, allocations: 1.701 MB / 0.5083 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.3816, allocations: 447.5 kB / 0.5087 GB, free: 368 kB / 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.006844/0.3884, allocations: 4.356 MB / 0.513 GB, free: 11.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003847/0.3888, allocations: 436.3 kB / 0.5134 GB, free: 11.47 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001355/0.3902, allocations: 0.5002 MB / 0.5139 GB, free: 10.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008574/0.391, allocations: 340.7 kB / 0.5142 GB, free: 10.64 MB / 410.7 MB Notification: Performance of SimCode: time 2.104e-06/0.391, allocations: 0 / 0.5142 GB, free: 10.64 MB / 410.7 MB Notification: Performance of Templates: time 0.1864/0.5774, allocations: 54.83 MB / 0.5678 GB, free: 125.6 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.878971570869908]