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.001116/0.001116, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001174/0.001174, allocations: 192.4 kB / 16.14 MB, free: 6.703 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.374/1.374, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2358/0.2358, allocations: 15.31 MB / 305.3 MB, free: 15.33 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 55.91 kB / 369.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1121, allocations: 53.61 MB / 423.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01309/0.1253, allocations: 13.31 MB / 436.6 MB, free: 1.445 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2092/0.3346, allocations: 33.7 MB / 470.3 MB, free: 27.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00242/0.337, allocations: 52.19 kB / 470.3 MB, free: 27.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001829/0.3389, allocations: 0.6674 MB / 471 MB, free: 26.78 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006423/0.3453, allocations: 2.443 MB / 473.4 MB, free: 25.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01032/0.3557, allocations: 3.875 MB / 477.3 MB, free: 23.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003689/0.3594, allocations: 3.299 MB / 480.6 MB, free: 21.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001672/0.3611, allocations: 1.789 MB / 482.4 MB, free: 20.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001888/0.363, allocations: 1.605 MB / 484 MB, free: 20.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002113/0.3651, allocations: 1.824 MB / 485.8 MB, free: 19.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005399/0.3657, allocations: 216.6 kB / 486 MB, free: 19.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01094/0.3766, allocations: 3.648 MB / 489.7 MB, free: 18.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001192/0.3778, allocations: 0.6552 MB / 490.3 MB, free: 18.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002141/0.38, allocations: 1.491 MB / 491.8 MB, free: 17.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01433/0.3943, allocations: 6.811 MB / 498.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3943, allocations: 5.031 kB / 498.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3943, allocations: 0 / 498.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001021/0.3945, allocations: 0 / 498.6 MB, free: 14.45 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.009883/0.4043, allocations: 3.703 MB / 0.4906 GB, free: 12.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.4044, allocations: 9.844 kB / 0.4906 GB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003102/0.4075, allocations: 0.6143 MB / 0.4912 GB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002982/0.4105, allocations: 1.452 MB / 0.4926 GB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.4107, allocations: 255.9 kB / 0.4928 GB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004771/0.4112, allocations: 279.2 kB / 0.4931 GB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005191/0.4164, allocations: 3.116 MB / 0.4961 GB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.064e-05/0.4165, allocations: 0 / 0.4961 GB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002498/0.4167, allocations: 111 kB / 0.4963 GB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.621e-05/0.4168, allocations: 63.47 kB / 0.4963 GB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005164/0.4219, allocations: 3.847 MB / 0.5001 GB, free: 7.242 MB / 366.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.01427/0.4362, allocations: 9.912 MB / 0.5098 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004714/0.441, allocations: 3.47 MB / 0.5131 GB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/0.443, allocations: 1.34 MB / 0.5144 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01547/0.4585, allocations: 10.87 MB / 0.5251 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.736e-05/0.4585, allocations: 52.56 kB / 0.5251 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001128/0.4597, allocations: 209.9 kB / 0.5253 GB, free: 11.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 3.607e-06/0.4597, allocations: 4 kB / 0.5253 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04636/0.506, allocations: 12.26 MB / 0.5373 GB, free: 15.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.5061, allocations: 77.41 kB / 0.5374 GB, free: 15.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.5076, allocations: 1.171 MB / 0.5385 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001866/0.5078, allocations: 65.7 kB / 0.5386 GB, free: 13.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006592/0.5085, allocations: 1.149 MB / 0.5397 GB, free: 12.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000731/0.5092, allocations: 0.8626 MB / 0.5405 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008276/0.5101, allocations: 0.565 MB / 0.5411 GB, free: 11.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.173e-05/0.5101, allocations: 301.1 kB / 0.5414 GB, free: 11.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001764/0.5119, allocations: 1.013 MB / 0.5424 GB, free: 10.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002365/0.5143, allocations: 1.901 MB / 0.5442 GB, free: 7.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004511/0.5188, allocations: 3.2 MB / 0.5473 GB, free: 4.109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.486e-05/0.5188, allocations: 8 kB / 0.5474 GB, free: 4.102 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01018/0.529, allocations: 4.129 MB / 0.5514 GB, free: 15.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.949e-05/0.5291, allocations: 20 kB / 0.5514 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.469e-05/0.5291, allocations: 28 kB / 0.5514 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006219/0.5353, allocations: 1.357 MB / 0.5528 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002252/0.5376, allocations: 0.6474 MB / 0.5534 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.5485, allocations: 7.695 MB / 0.5609 GB, free: 5.727 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/0.5512, allocations: 171.7 kB / 0.5611 GB, free: 5.559 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003714/0.5516, allocations: 171.9 kB / 0.5612 GB, free: 5.391 MB / 430.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.001213/0.5528, allocations: 0.5163 MB / 0.5617 GB, free: 4.863 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004966/0.5533, allocations: 193.6 kB / 0.5619 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/0.5636, allocations: 3.891 MB / 0.5657 GB, free: 0.7109 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/0.5637, allocations: 24 kB / 0.5657 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.5637, allocations: 8 kB / 0.5658 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.701e-05/0.5637, allocations: 15.95 kB / 0.5658 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/0.5776, allocations: 6.335 MB / 0.572 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.5776, allocations: 4 kB / 0.572 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/0.5796, allocations: 443.4 kB / 0.5724 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00617/0.5857, allocations: 1.271 MB / 0.5736 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004688/0.5862, allocations: 91.94 kB / 0.5737 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00977/0.596, allocations: 7.217 MB / 0.5808 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.596, allocations: 4 kB / 0.5808 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.012/0.6081, allocations: 5.031 MB / 0.5857 GB, free: 11.52 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006387/0.6087, allocations: 250.8 kB / 0.5859 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003281/0.6091, allocations: 56 kB / 0.586 GB, free: 11.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/0.6105, allocations: 99.72 kB / 0.5861 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005148/0.611, allocations: 229.7 kB / 0.5863 GB, free: 10.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002285/0.6113, allocations: 111.9 kB / 0.5864 GB, free: 10.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009888/0.6123, allocations: 0.7311 MB / 0.5871 GB, free: 10.04 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6123, allocations: 0 / 0.5871 GB, free: 10.04 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004646/0.6169, allocations: 1.472 MB / 0.5885 GB, free: 8.566 MB / 462.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.003708/0.6206, allocations: 1.511 MB / 0.59 GB, free: 7.055 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006896/0.6275, allocations: 3.49 MB / 0.5934 GB, free: 3.477 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6276, allocations: 0 / 0.5934 GB, free: 3.477 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003652/0.6312, allocations: 2.032 MB / 0.5954 GB, free: 1.383 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/0.6334, allocations: 370.7 kB / 0.5958 GB, free: 1.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1763/0.8097, allocations: 5.927 MB / 0.6016 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009068/0.8106, allocations: 1.596 MB / 0.6031 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00249/0.8131, allocations: 0.5062 MB / 0.6036 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000851/0.814, allocations: 359.4 kB / 0.6039 GB, free: 131.1 MB / 462.1 MB Notification: Performance of SimCode: time 2.154e-06/0.814, allocations: 3.562 kB / 0.6039 GB, free: 131.1 MB / 462.1 MB Notification: Performance of Templates: time 0.0713/0.8853, allocations: 52.46 MB / 0.6552 GB, free: 108.8 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 -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)