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.0007651/0.0007651, allocations: 76.45 kB / 19.9 MB, free: 8 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.0007215/0.0007215, allocations: 169.9 kB / 23.18 MB, free: 1.375 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.93/0.93, allocations: 177.2 MB / 203.6 MB, free: 5.781 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.08724/0.08724, allocations: 17.38 MB / 277.4 MB, free: 11.88 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: 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.0008777/0.0008777, allocations: 63.91 kB / 412.8 MB, free: 15.88 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3561, allocations: 59.83 MB / 472.7 MB, free: 29.84 MB / 410.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01007/0.3662, allocations: 10.22 MB / 482.9 MB, free: 23.08 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.02538/0.3916, allocations: 29.74 MB / 0.5006 GB, free: 2.777 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001976/0.3936, allocations: 38.41 kB / 0.5006 GB, free: 2.758 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.3957, allocations: 0.6889 MB / 0.5013 GB, free: 2.391 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01038/0.406, allocations: 2.75 MB / 0.504 GB, free: 0.7461 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01974/0.4258, allocations: 4.523 MB / 0.5084 GB, free: 14.09 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.008775/0.4346, allocations: 3.42 MB / 0.5117 GB, free: 12.34 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003407/0.438, allocations: 1.67 MB / 0.5134 GB, free: 11.12 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00468/0.4426, allocations: 2.441 MB / 0.5158 GB, free: 9.727 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003964/0.4466, allocations: 1.682 MB / 0.5174 GB, free: 8.77 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001267/0.4479, allocations: 323.1 kB / 0.5177 GB, free: 8.77 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01749/0.4654, allocations: 3.567 MB / 0.5212 GB, free: 6.086 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00164/0.467, allocations: 0.7517 MB / 0.5219 GB, free: 5.332 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003538/0.4705, allocations: 1.338 MB / 0.5232 GB, free: 3.988 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02893/0.4995, allocations: 7.537 MB / 0.5306 GB, free: 12.42 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.304e-05/0.4995, allocations: 0 / 0.5306 GB, free: 12.42 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.4995, allocations: 0 / 0.5306 GB, free: 12.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002081/0.4997, allocations: 0 / 0.5306 GB, free: 12.42 MB / 442.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.009884/0.5096, allocations: 3.706 MB / 0.5342 GB, free: 8.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.793e-05/0.5097, allocations: 8.031 kB / 0.5342 GB, free: 8.652 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002263/0.5119, allocations: 0.627 MB / 0.5348 GB, free: 8.023 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002452/0.5144, allocations: 1.446 MB / 0.5363 GB, free: 6.543 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002525/0.5146, allocations: 312.4 kB / 0.5365 GB, free: 6.211 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003601/0.515, allocations: 275.8 kB / 0.5368 GB, free: 5.941 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004667/0.5197, allocations: 3.157 MB / 0.5399 GB, free: 2.707 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.194e-05/0.5197, allocations: 0 / 0.5399 GB, free: 2.707 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002005/0.5199, allocations: 108 kB / 0.54 GB, free: 2.602 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.602e-05/0.5199, allocations: 64 kB / 0.5401 GB, free: 2.539 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004871/0.5248, allocations: 3.811 MB / 0.5438 GB, free: 14.71 MB / 458.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.01157/0.5364, allocations: 7.888 MB / 0.5515 GB, free: 6.688 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003414/0.5398, allocations: 2.774 MB / 0.5542 GB, free: 3.922 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.5412, allocations: 1.235 MB / 0.5554 GB, free: 2.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009282/0.5505, allocations: 6.021 MB / 0.5613 GB, free: 12.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.5505, allocations: 52.56 kB / 0.5613 GB, free: 12.56 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006538/0.5512, allocations: 226.6 kB / 0.5615 GB, free: 12.34 MB / 474.7 MB Notification: Performance of pre-optimization done (n=177): time 6.402e-06/0.5512, allocations: 0 / 0.5615 GB, free: 12.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=251): time 0.02789/0.5791, allocations: 11.84 MB / 0.5731 GB, free: 464 kB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.342e-05/0.5791, allocations: 77.41 kB / 0.5732 GB, free: 376 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001457/0.5806, allocations: 1.114 MB / 0.5743 GB, free: 15.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002752/0.5808, allocations: 69.7 kB / 0.5743 GB, free: 15.16 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006291/0.5815, allocations: 1.184 MB / 0.5755 GB, free: 13.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007194/0.5822, allocations: 0.9064 MB / 0.5764 GB, free: 13.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006444/0.5828, allocations: 0.5613 MB / 0.5769 GB, free: 12.48 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.99e-05/0.5829, allocations: 301.1 kB / 0.5772 GB, free: 12.18 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/0.5844, allocations: 1.009 MB / 0.5782 GB, free: 11.17 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/0.5862, allocations: 1.917 MB / 0.5801 GB, free: 8.863 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003736/0.59, allocations: 3.196 MB / 0.5832 GB, free: 5.246 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.997e-05/0.59, allocations: 8 kB / 0.5832 GB, free: 5.238 MB / 490.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.006692/0.5967, allocations: 4.11 MB / 0.5872 GB, free: 1.062 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.612e-05/0.5967, allocations: 16 kB / 0.5872 GB, free: 1.047 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-05/0.5968, allocations: 28 kB / 0.5873 GB, free: 1.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003643/0.6004, allocations: 1.354 MB / 0.5886 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/0.6022, allocations: 0.6553 MB / 0.5892 GB, free: 14.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008356/0.6106, allocations: 7.834 MB / 0.5969 GB, free: 6.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/0.6126, allocations: 107.9 kB / 0.597 GB, free: 6.715 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003652/0.6129, allocations: 171.9 kB / 0.5971 GB, free: 6.547 MB / 0.4948 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.001322/0.6142, allocations: 0.5124 MB / 0.5976 GB, free: 6.023 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005598/0.6148, allocations: 198.7 kB / 0.5978 GB, free: 5.828 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006743/0.6215, allocations: 3.85 MB / 0.6016 GB, free: 1.902 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.028e-05/0.6216, allocations: 24 kB / 0.6016 GB, free: 1.879 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/0.6216, allocations: 8 kB / 0.6016 GB, free: 1.871 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.213e-05/0.6216, allocations: 19.83 kB / 0.6016 GB, free: 1.852 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00968/0.6313, allocations: 5.681 MB / 0.6072 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.6313, allocations: 0 / 0.6072 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.6326, allocations: 435.4 kB / 0.6076 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003661/0.6363, allocations: 1.26 MB / 0.6088 GB, free: 10.33 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003762/0.6366, allocations: 103.9 kB / 0.6089 GB, free: 10.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007314/0.6439, allocations: 7.343 MB / 0.6161 GB, free: 2.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.644, allocations: 3.938 kB / 0.6161 GB, free: 2.566 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008378/0.6523, allocations: 5.008 MB / 0.621 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005579/0.6529, allocations: 182.6 kB / 0.6212 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/0.6531, allocations: 55.98 kB / 0.6212 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007568/0.6539, allocations: 55.98 kB / 0.6213 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004213/0.6543, allocations: 237.7 kB / 0.6215 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002024/0.6545, allocations: 119.9 kB / 0.6216 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007594/0.6552, allocations: 0.6616 MB / 0.6223 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4e-07/0.6552, allocations: 0 / 0.6223 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004082/0.6593, allocations: 1.5 MB / 0.6237 GB, free: 10.59 MB / 0.5261 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.002942/0.6623, allocations: 1.546 MB / 0.6252 GB, free: 9.035 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005316/0.6676, allocations: 3.258 MB / 0.6284 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.6676, allocations: 0 / 0.6284 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00284/0.6704, allocations: 1.828 MB / 0.6302 GB, free: 3.832 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/0.6719, allocations: 385.8 kB / 0.6306 GB, free: 3.453 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2293/0.9012, allocations: 4.827 MB / 0.6353 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001212/0.9024, allocations: 1.038 MB / 0.6363 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001692/0.9041, allocations: 0.4936 MB / 0.6368 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007023/0.9048, allocations: 352.9 kB / 0.6371 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of SimCode: time 3.296e-06/0.9048, allocations: 1.219 kB / 0.6371 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of Templates: time 0.05949/0.9643, allocations: 54.19 MB / 0.69 GB, free: 114 MB / 0.5261 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.207480037934147] Failed to read output from testmodel.py, exit status != 0: 0.9710849780822173 0.97774377 0.476531345 Calling exit ...