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.0009519/0.0009519, 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.0009819/0.0009819, allocations: 169 kB / 23.03 MB, free: 1.547 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.924/0.924, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.08808/0.08808, allocations: 17.38 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.443e-06/1.443e-06, allocations: 0 / 353.4 MB, free: 9.988 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.438e-05/2.582e-05, allocations: 6.25 kB / 353.4 MB, free: 9.98 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008973/0.008999, allocations: 11.48 MB / 364.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02483/0.03383, allocations: 31.48 MB / 396.4 MB, free: 14.85 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001703/0.03553, allocations: 35.75 kB / 396.4 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.03712, allocations: 0.6508 MB / 397.1 MB, free: 14.16 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006197/0.04332, allocations: 2.812 MB / 399.9 MB, free: 11.33 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01221/0.05553, allocations: 4.232 MB / 404.1 MB, free: 7.07 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.06556, allocations: 3.541 MB / 407.7 MB, free: 3.512 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002154/0.06771, allocations: 1.756 MB / 409.4 MB, free: 1.715 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1662/0.2339, allocations: 2.414 MB / 411.8 MB, free: 22.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003454/0.2374, allocations: 1.585 MB / 413.4 MB, free: 22.46 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001378/0.2387, allocations: 321.3 kB / 413.7 MB, free: 22.46 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009107/0.2479, allocations: 3.318 MB / 417.1 MB, free: 22.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00182/0.2497, allocations: 0.7771 MB / 417.8 MB, free: 22.46 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002909/0.2526, allocations: 1.17 MB / 419 MB, free: 22.46 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01307/0.2657, allocations: 6.438 MB / 425.4 MB, free: 22 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.2657, allocations: 0 / 425.4 MB, free: 22 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2657, allocations: 0 / 425.4 MB, free: 22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001137/0.2658, allocations: 0 / 425.4 MB, free: 22 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.0051/0.2709, allocations: 3.789 MB / 429.2 MB, free: 20.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.2709, allocations: 8.094 kB / 429.2 MB, free: 20.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002067/0.273, allocations: 1.005 MB / 430.2 MB, free: 19.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001664/0.2746, allocations: 1.3 MB / 431.5 MB, free: 19.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00017/0.2748, allocations: 308 kB / 431.8 MB, free: 19.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002849/0.2751, allocations: 269.3 kB / 432.1 MB, free: 19.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002955/0.2781, allocations: 2.502 MB / 434.6 MB, free: 19.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.2781, allocations: 0 / 434.6 MB, free: 19.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001681/0.2783, allocations: 105.9 kB / 434.7 MB, free: 19.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-05/0.2783, allocations: 64 kB / 434.8 MB, free: 19.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.2813, allocations: 2.547 MB / 437.3 MB, free: 19.13 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.01329/0.2946, allocations: 7.561 MB / 444.9 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00382/0.2984, allocations: 2.549 MB / 447.4 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/0.2997, allocations: 0.8002 MB / 448.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008876/0.3086, allocations: 5.651 MB / 453.9 MB, free: 6.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.3087, allocations: 66.69 kB / 454 MB, free: 6.109 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005669/0.3092, allocations: 210.6 kB / 454.2 MB, free: 5.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 3.466e-06/0.3092, allocations: 0 / 454.2 MB, free: 5.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.02181/0.331, allocations: 9.395 MB / 463.6 MB, free: 12.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/0.3311, allocations: 81.41 kB / 463.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.3323, allocations: 1.139 MB / 464.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.3324, allocations: 69.7 kB / 464.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006737/0.3331, allocations: 1.246 MB / 466.1 MB, free: 9.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006426/0.3337, allocations: 0.8967 MB / 467 MB, free: 9.059 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006041/0.3343, allocations: 0.5683 MB / 467.6 MB, free: 8.477 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3345, allocations: 480.8 kB / 468 MB, free: 8.004 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009211/0.3354, allocations: 0.5916 MB / 468.6 MB, free: 7.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001567/0.3369, allocations: 1.85 MB / 470.5 MB, free: 5.035 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002795/0.3397, allocations: 2.742 MB / 473.2 MB, free: 1.844 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.548e-05/0.3398, allocations: 8 kB / 473.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005639/0.3454, allocations: 3.226 MB / 476.4 MB, free: 14.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.3454, allocations: 19.94 kB / 476.5 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.371e-05/0.3455, allocations: 28 kB / 476.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00356/0.349, allocations: 1.211 MB / 477.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.3504, allocations: 0.6466 MB / 478.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006629/0.357, allocations: 8.215 MB / 486.6 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001401/0.3584, allocations: 99.98 kB / 486.7 MB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/0.3586, allocations: 171.9 kB / 486.8 MB, free: 4.027 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.0007101/0.3593, allocations: 354 kB / 487.2 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003848/0.3597, allocations: 270.7 kB / 487.4 MB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00491/0.3646, allocations: 2.946 MB / 490.4 MB, free: 456 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.3647, allocations: 24 kB / 490.4 MB, free: 432 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.3647, allocations: 4 kB / 490.4 MB, free: 428 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.645e-05/0.3647, allocations: 11.95 kB / 490.4 MB, free: 416 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007183/0.3719, allocations: 4.578 MB / 495 MB, free: 11.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.3719, allocations: 4 kB / 495 MB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009661/0.3728, allocations: 437.5 kB / 495.4 MB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003296/0.3761, allocations: 1.12 MB / 496.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002249/0.3764, allocations: 103.9 kB / 496.6 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00622/0.3826, allocations: 7.874 MB / 0.4927 GB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3826, allocations: 4 kB / 0.4927 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006089/0.3887, allocations: 3.555 MB / 0.4962 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005169/0.3892, allocations: 170.7 kB / 0.4963 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002042/0.3894, allocations: 56 kB / 0.4964 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006785/0.3901, allocations: 59.98 kB / 0.4964 GB, free: 13.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004483/0.3905, allocations: 237.4 kB / 0.4967 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/0.3907, allocations: 119.9 kB / 0.4968 GB, free: 13.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006389/0.3913, allocations: 0.603 MB / 0.4974 GB, free: 12.95 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3913, allocations: 0 / 0.4974 GB, free: 12.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003393/0.3947, allocations: 1.442 MB / 0.4988 GB, free: 11.5 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.00261/0.3973, allocations: 1.498 MB / 0.5002 GB, free: 10.18 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004405/0.4017, allocations: 2.783 MB / 0.503 GB, free: 7.406 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.4018, allocations: 0 / 0.503 GB, free: 7.406 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002105/0.4039, allocations: 1.709 MB / 0.5046 GB, free: 5.68 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.4053, allocations: 450.3 kB / 0.5051 GB, free: 5.242 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.006628/0.4119, allocations: 4.346 MB / 0.5093 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.4123, allocations: 444.3 kB / 0.5097 GB, free: 356 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001374/0.4136, allocations: 0.4926 MB / 0.5102 GB, free: 15.85 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006103/0.4143, allocations: 342.5 kB / 0.5105 GB, free: 15.52 MB / 410.7 MB Notification: Performance of SimCode: time 3.236e-06/0.4143, allocations: 0 / 0.5105 GB, free: 15.52 MB / 410.7 MB Notification: Performance of Templates: time 0.197/0.6113, allocations: 59.62 MB / 0.5688 GB, free: 154.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.661765248049051]