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.001379/0.001379, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001646/0.001646, allocations: 212.9 kB / 22.25 MB, free: 5.262 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.412/1.412, allocations: 230.6 MB / 256 MB, free: 7.781 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.1354/0.1354, allocations: 23.89 MB / 336.3 MB, free: 10.94 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.002036/0.002036, allocations: 63.89 kB / 471.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3266, allocations: 59.85 MB / 0.519 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.0105/0.3371, allocations: 10.24 MB / 0.529 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03959/0.3767, allocations: 29.73 MB / 0.5581 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002357/0.3791, allocations: 39.91 kB / 0.5581 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002448/0.3815, allocations: 0.6791 MB / 0.5588 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009629/0.3911, allocations: 2.756 MB / 0.5614 GB, free: 11.69 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01558/0.4067, allocations: 4.51 MB / 0.5659 GB, free: 8.242 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005606/0.4123, allocations: 3.418 MB / 0.5692 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00274/0.4151, allocations: 1.672 MB / 0.5708 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003676/0.4187, allocations: 1.687 MB / 0.5725 GB, free: 2.832 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003974/0.4227, allocations: 1.677 MB / 0.5741 GB, free: 1.148 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009597/0.4237, allocations: 324 kB / 0.5744 GB, free: 0.832 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01178/0.4354, allocations: 3.549 MB / 0.5779 GB, free: 13.28 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00141/0.4368, allocations: 0.7595 MB / 0.5786 GB, free: 12.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00239/0.4392, allocations: 1.335 MB / 0.5799 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01827/0.4575, allocations: 7.486 MB / 0.5872 GB, free: 3.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4575, allocations: 0 / 0.5872 GB, free: 3.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4575, allocations: 0 / 0.5872 GB, free: 3.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.168e-05/0.4576, allocations: 0 / 0.5872 GB, free: 3.66 MB / 430.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.00767/0.4653, allocations: 3.713 MB / 0.5909 GB, free: 15.89 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.4653, allocations: 8.031 kB / 0.5909 GB, free: 15.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00268/0.468, allocations: 0.6231 MB / 0.5915 GB, free: 15.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003125/0.4711, allocations: 1.442 MB / 0.5929 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002846/0.4714, allocations: 308.4 kB / 0.5932 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005225/0.4719, allocations: 283.8 kB / 0.5935 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005748/0.4777, allocations: 3.153 MB / 0.5965 GB, free: 9.949 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.929e-05/0.4777, allocations: 0 / 0.5965 GB, free: 9.949 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002639/0.478, allocations: 108 kB / 0.5966 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-05/0.478, allocations: 68 kB / 0.5967 GB, free: 9.777 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006743/0.4848, allocations: 3.815 MB / 0.6004 GB, free: 5.949 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.01726/0.502, allocations: 7.885 MB / 0.6081 GB, free: 13.92 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004968/0.507, allocations: 2.776 MB / 0.6108 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002124/0.5091, allocations: 1.231 MB / 0.612 GB, free: 9.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/0.5234, allocations: 6.014 MB / 0.6179 GB, free: 3.855 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.46e-05/0.5234, allocations: 56.5 kB / 0.618 GB, free: 3.793 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009559/0.5244, allocations: 226.6 kB / 0.6182 GB, free: 3.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 3.997e-06/0.5244, allocations: 0 / 0.6182 GB, free: 3.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04383/0.5682, allocations: 11.84 MB / 0.6297 GB, free: 7.684 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.5683, allocations: 77.41 kB / 0.6298 GB, free: 7.598 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001594/0.5699, allocations: 1.111 MB / 0.6309 GB, free: 6.469 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003136/0.5702, allocations: 65.7 kB / 0.631 GB, free: 6.398 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009086/0.5711, allocations: 1.188 MB / 0.6321 GB, free: 5.199 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009005/0.572, allocations: 0.9064 MB / 0.633 GB, free: 4.285 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008517/0.5728, allocations: 0.5652 MB / 0.6336 GB, free: 3.711 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.573, allocations: 301.1 kB / 0.6339 GB, free: 3.414 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001854/0.5748, allocations: 1.009 MB / 0.6348 GB, free: 2.402 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002684/0.5775, allocations: 1.909 MB / 0.6367 GB, free: 104 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004962/0.5825, allocations: 3.192 MB / 0.6398 GB, free: 12.49 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-05/0.5825, allocations: 12 kB / 0.6398 GB, free: 12.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01024/0.5927, allocations: 4.103 MB / 0.6438 GB, free: 8.309 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.986e-05/0.5928, allocations: 22.97 kB / 0.6439 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-05/0.5928, allocations: 28 kB / 0.6439 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005927/0.5987, allocations: 1.362 MB / 0.6452 GB, free: 6.883 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002496/0.6012, allocations: 0.6553 MB / 0.6459 GB, free: 6.227 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/0.613, allocations: 7.85 MB / 0.6535 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/0.6152, allocations: 107.9 kB / 0.6536 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003095/0.6155, allocations: 167.9 kB / 0.6538 GB, free: 13.77 MB / 0.4981 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.001075/0.6166, allocations: 0.5106 MB / 0.6543 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004735/0.617, allocations: 198.7 kB / 0.6545 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009766/0.6268, allocations: 3.854 MB / 0.6582 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.588e-05/0.6268, allocations: 28 kB / 0.6583 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.6268, allocations: 4 kB / 0.6583 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.972e-05/0.6269, allocations: 15.89 kB / 0.6583 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/0.6401, allocations: 5.684 MB / 0.6638 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.6401, allocations: 7.969 kB / 0.6638 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/0.6419, allocations: 431.4 kB / 0.6643 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005933/0.6479, allocations: 1.271 MB / 0.6655 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004785/0.6483, allocations: 95.94 kB / 0.6656 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.6589, allocations: 7.34 MB / 0.6728 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.367e-05/0.6589, allocations: 7.938 kB / 0.6728 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/0.671, allocations: 5.012 MB / 0.6777 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005219/0.6715, allocations: 170.7 kB / 0.6778 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002941/0.6718, allocations: 52 kB / 0.6779 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.673, allocations: 63.97 kB / 0.6779 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005198/0.6735, allocations: 241.5 kB / 0.6782 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002356/0.6737, allocations: 111.9 kB / 0.6783 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009591/0.6747, allocations: 0.6578 MB / 0.6789 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.6747, allocations: 0 / 0.6789 GB, free: 3.324 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003945/0.6786, allocations: 1.5 MB / 0.6804 GB, free: 1.82 MB / 0.5137 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.002822/0.6815, allocations: 1.546 MB / 0.6819 GB, free: 264 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006756/0.6882, allocations: 3.255 MB / 0.6851 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.6882, allocations: 0 / 0.6851 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003538/0.6918, allocations: 1.824 MB / 0.6868 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.6936, allocations: 403.3 kB / 0.6872 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008737/0.7023, allocations: 4.839 MB / 0.692 GB, free: 5.758 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.7035, allocations: 1.029 MB / 0.693 GB, free: 4.688 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001954/0.7054, allocations: 0.5002 MB / 0.6934 GB, free: 4.184 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008669/0.7063, allocations: 346.2 kB / 0.6938 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of SimCode: time 6.71e-07/0.7063, allocations: 0 / 0.6938 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of Templates: time 0.2913/0.9977, allocations: 57.44 MB / 0.7499 GB, free: 172.2 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.32460505887866] Failed to read output from testmodel.py, exit status != 0: 1.0065886713564396 1.016212182 0.556394818 Calling exit ...