Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001112, allocations: 102.4 kB / 16.35 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 191 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08378/0.08378, allocations: 15.32 MB / 306.5 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.95 kB / 371.7 MB, free: 50.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.0993, allocations: 53.61 MB / 425.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01058/0.1099, allocations: 11.65 MB / 437 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03736/0.1473, allocations: 33.74 MB / 470.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.1492, allocations: 31.81 kB / 470.8 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002232/0.1514, allocations: 0.7366 MB / 471.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008448/0.16, allocations: 2.77 MB / 474.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01244/0.1725, allocations: 4.419 MB / 478.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005031/0.1775, allocations: 3.421 MB / 482.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002507/0.1801, allocations: 2.082 MB / 484.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002132/0.1822, allocations: 1.644 MB / 485.8 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002493/0.1847, allocations: 1.861 MB / 487.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004866/0.1852, allocations: 320 kB / 488 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01102/0.1962, allocations: 3.729 MB / 491.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000905/0.1972, allocations: 0.7479 MB / 492.5 MB, free: 9.883 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001977/0.1992, allocations: 1.587 MB / 494.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01674/0.2159, allocations: 7.233 MB / 0.4896 GB, free: 1.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.216, allocations: 0 / 0.4896 GB, free: 1.031 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.216, allocations: 0 / 0.4896 GB, free: 1.031 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.777e-05/0.216, allocations: 0 / 0.4896 GB, free: 1.031 MB / 366.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.007041/0.2231, allocations: 3.702 MB / 0.4932 GB, free: 13.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.2231, allocations: 12.03 kB / 0.4932 GB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002579/0.2257, allocations: 0.6098 MB / 0.4938 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/0.2284, allocations: 1.494 MB / 0.4952 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002224/0.2286, allocations: 253 kB / 0.4955 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004276/0.229, allocations: 279.9 kB / 0.4958 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004903/0.234, allocations: 3.117 MB / 0.4988 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.075e-05/0.234, allocations: 0 / 0.4988 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.2343, allocations: 108 kB / 0.4989 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-05/0.2343, allocations: 60 kB / 0.499 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005698/0.24, allocations: 3.846 MB / 0.5027 GB, free: 3.355 MB / 382.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.2153/0.4553, allocations: 9.863 MB / 0.5123 GB, free: 74.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005066/0.4604, allocations: 3.465 MB / 0.5157 GB, free: 72.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00216/0.4626, allocations: 1.342 MB / 0.517 GB, free: 71.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01403/0.4766, allocations: 10.85 MB / 0.5276 GB, free: 63.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.4767, allocations: 51.84 kB / 0.5277 GB, free: 63.75 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000785/0.4775, allocations: 205.5 kB / 0.5279 GB, free: 63.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=177): time 4.138e-06/0.4775, allocations: 7.25 kB / 0.5279 GB, free: 63.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=251): time 0.04125/0.5187, allocations: 12.26 MB / 0.5399 GB, free: 57.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.5188, allocations: 85.33 kB / 0.5399 GB, free: 57.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.5202, allocations: 1.171 MB / 0.5411 GB, free: 55.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002724/0.5205, allocations: 69.7 kB / 0.5411 GB, free: 55.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000459/0.5209, allocations: 1.148 MB / 0.5423 GB, free: 54.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005724/0.5215, allocations: 0.8593 MB / 0.5431 GB, free: 53.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006772/0.5222, allocations: 0.5611 MB / 0.5437 GB, free: 53.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.346e-05/0.5223, allocations: 308.1 kB / 0.544 GB, free: 53.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.5237, allocations: 1.009 MB / 0.5449 GB, free: 52.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.5255, allocations: 1.905 MB / 0.5468 GB, free: 49.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003535/0.529, allocations: 3.193 MB / 0.5499 GB, free: 46.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.426e-05/0.5291, allocations: 12 kB / 0.5499 GB, free: 46.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.008833/0.5379, allocations: 4.129 MB / 0.554 GB, free: 41.9 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.538, allocations: 19.94 kB / 0.554 GB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/0.538, allocations: 28.38 kB / 0.554 GB, free: 41.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005538/0.5435, allocations: 1.364 MB / 0.5553 GB, free: 40.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002252/0.5458, allocations: 0.6513 MB / 0.556 GB, free: 39.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009098/0.5549, allocations: 8.264 MB / 0.564 GB, free: 31.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002019/0.5569, allocations: 103.9 kB / 0.5641 GB, free: 31.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003194/0.5573, allocations: 171.9 kB / 0.5643 GB, free: 30.86 MB / 382.1 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.0009626/0.5583, allocations: 0.5083 MB / 0.5648 GB, free: 30.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004733/0.5587, allocations: 199.8 kB / 0.565 GB, free: 30.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00888/0.5676, allocations: 3.898 MB / 0.5688 GB, free: 26.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.288e-05/0.5676, allocations: 24 kB / 0.5688 GB, free: 26.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.5677, allocations: 4 kB / 0.5688 GB, free: 26.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.115e-05/0.5677, allocations: 11.95 kB / 0.5688 GB, free: 26.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01174/0.5794, allocations: 6.334 MB / 0.575 GB, free: 19.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.5795, allocations: 8.031 kB / 0.575 GB, free: 19.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.5811, allocations: 435.4 kB / 0.5754 GB, free: 19.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005184/0.5863, allocations: 1.267 MB / 0.5767 GB, free: 18.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002628/0.5866, allocations: 95.94 kB / 0.5768 GB, free: 17.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007777/0.5944, allocations: 7.797 MB / 0.5844 GB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.5944, allocations: 4 kB / 0.5844 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/0.6049, allocations: 5.039 MB / 0.5893 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005114/0.6055, allocations: 254.4 kB / 0.5896 GB, free: 4.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004424/0.6059, allocations: 56 kB / 0.5896 GB, free: 4.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/0.6074, allocations: 55.98 kB / 0.5897 GB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004621/0.6079, allocations: 225.8 kB / 0.5899 GB, free: 3.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002286/0.6082, allocations: 111.9 kB / 0.59 GB, free: 3.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008727/0.609, allocations: 0.7389 MB / 0.5907 GB, free: 3.051 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.609, allocations: 0 / 0.5907 GB, free: 3.051 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003873/0.6129, allocations: 1.48 MB / 0.5922 GB, free: 1.727 MB / 382.1 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.003089/0.616, allocations: 1.512 MB / 0.5936 GB, free: 0.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006932/0.623, allocations: 3.504 MB / 0.5971 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.623, allocations: 0 / 0.5971 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003815/0.6268, allocations: 2.025 MB / 0.599 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.6292, allocations: 389.9 kB / 0.5994 GB, free: 10.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008384/0.6376, allocations: 4.749 MB / 0.604 GB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.6389, allocations: 1.599 MB / 0.6056 GB, free: 4.027 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001794/0.6407, allocations: 0.5046 MB / 0.6061 GB, free: 3.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007806/0.6415, allocations: 349 kB / 0.6064 GB, free: 3.188 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.6415, allocations: 0 / 0.6064 GB, free: 3.188 MB / 398.1 MB Notification: Performance of Templates: time 0.07936/0.7208, allocations: 54.36 MB / 0.6595 GB, free: 13.03 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & ./Chemical_Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)