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.001686/0.001686, allocations: 101.6 kB / 16.45 MB, free: 6.5 MB / 14.72 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.002029/0.002029, allocations: 210.4 kB / 19.42 MB, free: 3.66 MB / 14.72 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.51/1.51, allocations: 230.6 MB / 252.8 MB, free: 8.973 MB / 206.1 MB " [Timeout remaining time 178] 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.1435/0.1435, allocations: 23.85 MB / 332.7 MB, free: 12.37 MB / 270.1 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: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002069/0.002069, allocations: 63.89 kB / 466.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3511, allocations: 59.83 MB / 0.514 GB, free: 9.188 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01301/0.3641, allocations: 11.74 MB / 0.5254 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04644/0.4106, allocations: 33.91 MB / 0.5585 GB, free: 8.109 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003582/0.4142, allocations: 38.84 kB / 0.5586 GB, free: 8.09 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003458/0.4176, allocations: 0.7556 MB / 0.5593 GB, free: 7.492 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01216/0.4298, allocations: 2.787 MB / 0.562 GB, free: 5.336 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01678/0.4466, allocations: 4.448 MB / 0.5664 GB, free: 1.875 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007663/0.4542, allocations: 3.425 MB / 0.5697 GB, free: 15.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002917/0.4571, allocations: 1.729 MB / 0.5714 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003155/0.4603, allocations: 1.681 MB / 0.5731 GB, free: 13.78 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004104/0.4644, allocations: 1.897 MB / 0.5749 GB, free: 12.55 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008122/0.4652, allocations: 324 kB / 0.5752 GB, free: 12.24 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01577/0.481, allocations: 3.775 MB / 0.5789 GB, free: 8.457 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001413/0.4824, allocations: 0.7556 MB / 0.5796 GB, free: 7.699 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002805/0.4852, allocations: 1.583 MB / 0.5812 GB, free: 6.109 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02013/0.5053, allocations: 7.502 MB / 0.5885 GB, free: 14.58 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.5053, allocations: 0 / 0.5885 GB, free: 14.58 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5053, allocations: 0 / 0.5885 GB, free: 14.58 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001291/0.5055, allocations: 0 / 0.5885 GB, free: 14.58 MB / 446.1 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.009366/0.5148, allocations: 3.788 MB / 0.5922 GB, free: 10.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.5149, allocations: 12.03 kB / 0.5922 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00293/0.5178, allocations: 0.6309 MB / 0.5928 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002797/0.5206, allocations: 1.51 MB / 0.5943 GB, free: 8.516 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003128/0.5209, allocations: 265 kB / 0.5946 GB, free: 8.242 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004782/0.5214, allocations: 271.9 kB / 0.5948 GB, free: 7.977 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005757/0.5272, allocations: 3.128 MB / 0.5979 GB, free: 4.777 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.691e-05/0.5272, allocations: 4 kB / 0.5979 GB, free: 4.773 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002825/0.5275, allocations: 104 kB / 0.598 GB, free: 4.672 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/0.5276, allocations: 68 kB / 0.5981 GB, free: 4.605 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00694/0.5346, allocations: 3.862 MB / 0.6018 GB, free: 0.7305 MB / 446.1 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.01789/0.5524, allocations: 9.965 MB / 0.6116 GB, free: 6.375 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005472/0.5579, allocations: 3.327 MB / 0.6148 GB, free: 2.922 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002298/0.5602, allocations: 1.231 MB / 0.616 GB, free: 1.68 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01863/0.5788, allocations: 10.92 MB / 0.6267 GB, free: 5.605 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.826e-05/0.5789, allocations: 52.56 kB / 0.6267 GB, free: 5.547 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001045/0.5799, allocations: 234.5 kB / 0.6269 GB, free: 5.316 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 5.911e-06/0.5799, allocations: 3.984 kB / 0.6269 GB, free: 5.312 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.05081/0.6308, allocations: 12.31 MB / 0.639 GB, free: 8.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.377e-05/0.6308, allocations: 77.41 kB / 0.639 GB, free: 8.754 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002631/0.6335, allocations: 1.172 MB / 0.6402 GB, free: 7.57 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004968/0.634, allocations: 69.7 kB / 0.6403 GB, free: 7.496 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001031/0.635, allocations: 1.184 MB / 0.6414 GB, free: 6.301 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001207/0.6362, allocations: 0.9064 MB / 0.6423 GB, free: 5.387 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001228/0.6374, allocations: 0.5652 MB / 0.6428 GB, free: 4.812 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.6376, allocations: 305.1 kB / 0.6431 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002376/0.64, allocations: 1.013 MB / 0.6441 GB, free: 3.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003093/0.643, allocations: 1.901 MB / 0.646 GB, free: 1.203 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005962/0.649, allocations: 3.2 MB / 0.6491 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.242e-05/0.649, allocations: 8 kB / 0.6491 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01253/0.6616, allocations: 4.114 MB / 0.6531 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.171e-05/0.6616, allocations: 20 kB / 0.6532 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-05/0.6617, allocations: 28 kB / 0.6532 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006826/0.6685, allocations: 1.357 MB / 0.6545 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002834/0.6713, allocations: 0.6591 MB / 0.6551 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01372/0.6851, allocations: 8.281 MB / 0.6632 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00249/0.6876, allocations: 95.98 kB / 0.6633 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006708/0.6882, allocations: 171.9 kB / 0.6635 GB, free: 14.32 MB / 0.5137 GB 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.001543/0.6898, allocations: 0.5087 MB / 0.664 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007221/0.6905, allocations: 206.6 kB / 0.6642 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01142/0.7019, allocations: 3.867 MB / 0.668 GB, free: 9.656 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/0.7019, allocations: 28 kB / 0.668 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/0.702, allocations: 4 kB / 0.668 GB, free: 9.625 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.809e-05/0.702, allocations: 11.95 kB / 0.668 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/0.7174, allocations: 6.315 MB / 0.6742 GB, free: 3.148 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.7174, allocations: 4 kB / 0.6742 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/0.7195, allocations: 443.8 kB / 0.6746 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006116/0.7256, allocations: 1.264 MB / 0.6758 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000363/0.726, allocations: 91.94 kB / 0.6759 GB, free: 1.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/0.7378, allocations: 7.788 MB / 0.6835 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.248e-05/0.7378, allocations: 11.97 kB / 0.6835 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01392/0.7517, allocations: 5.016 MB / 0.6884 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006179/0.7524, allocations: 267.6 kB / 0.6887 GB, free: 3.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003301/0.7527, allocations: 56 kB / 0.6887 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001365/0.754, allocations: 55.98 kB / 0.6888 GB, free: 3.535 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005549/0.7546, allocations: 233.7 kB / 0.689 GB, free: 3.305 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002684/0.7549, allocations: 111.9 kB / 0.6891 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001113/0.756, allocations: 0.7272 MB / 0.6898 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9e-08/0.756, allocations: 0 / 0.6898 GB, free: 2.469 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004367/0.7603, allocations: 1.496 MB / 0.6913 GB, free: 0.9688 MB / 0.5294 GB 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.003357/0.7637, allocations: 1.56 MB / 0.6928 GB, free: 15.39 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007848/0.7716, allocations: 3.334 MB / 0.6961 GB, free: 11.97 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.7716, allocations: 0 / 0.6961 GB, free: 11.97 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004095/0.7757, allocations: 1.899 MB / 0.6979 GB, free: 10.01 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002029/0.7777, allocations: 400 kB / 0.6983 GB, free: 9.617 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009524/0.7872, allocations: 4.849 MB / 0.703 GB, free: 4.695 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.7886, allocations: 1.591 MB / 0.7046 GB, free: 3.066 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002119/0.7908, allocations: 0.5046 MB / 0.7051 GB, free: 2.559 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009409/0.7917, allocations: 360.1 kB / 0.7054 GB, free: 2.215 MB / 0.545 GB Notification: Performance of SimCode: time 1.233e-06/0.7917, allocations: 4 kB / 0.7054 GB, free: 2.211 MB / 0.545 GB Notification: Performance of Templates: time 0.3222/1.114, allocations: 56.15 MB / 0.7603 GB, free: 164.4 MB / 0.5606 GB " [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=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.963789414614439] Failed to read output from testmodel.py, exit status != 0: 1.122971698641777 1.131324063 0.6234224660000001 Calling exit ...