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.007935/0.007935, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.001276/0.001276, allocations: 195.9 kB / 16.67 MB, free: 5.922 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1049/0.1049, allocations: 15.3 MB / 305.8 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 425.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1272, allocations: 53.61 MB / 478.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01286/0.1401, allocations: 11.64 MB / 490.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3656/0.5058, allocations: 33.73 MB / 0.5119 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002399/0.5082, allocations: 31.78 kB / 0.5119 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002654/0.5109, allocations: 0.7463 MB / 0.5126 GB, free: 3.242 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.5221, allocations: 2.764 MB / 0.5153 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01981/0.5419, allocations: 4.416 MB / 0.5196 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007936/0.5499, allocations: 3.421 MB / 0.523 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004464/0.5544, allocations: 2.075 MB / 0.525 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003912/0.5583, allocations: 1.658 MB / 0.5266 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004826/0.5632, allocations: 1.863 MB / 0.5284 GB, free: 0 / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001316/0.5646, allocations: 325.2 kB / 0.5288 GB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01958/0.5842, allocations: 3.73 MB / 0.5324 GB, free: 15.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002129/0.5863, allocations: 0.7494 MB / 0.5331 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003696/0.59, allocations: 1.582 MB / 0.5347 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02353/0.6136, allocations: 7.258 MB / 0.5418 GB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.6136, allocations: 0 / 0.5418 GB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.614e-06/0.6137, allocations: 0 / 0.5418 GB, free: 9.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.361e-05/0.6137, allocations: 1.312 kB / 0.5418 GB, free: 9.883 MB / 398.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.007891/0.6216, allocations: 3.701 MB / 0.5454 GB, free: 7.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.6217, allocations: 12.03 kB / 0.5454 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002578/0.6243, allocations: 0.6137 MB / 0.546 GB, free: 6.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002722/0.627, allocations: 1.488 MB / 0.5474 GB, free: 5.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.6273, allocations: 261.6 kB / 0.5477 GB, free: 4.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004289/0.6277, allocations: 271.9 kB / 0.548 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00509/0.6328, allocations: 3.12 MB / 0.551 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.6329, allocations: 0 / 0.551 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002725/0.6331, allocations: 104 kB / 0.5511 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.635e-05/0.6332, allocations: 68 kB / 0.5512 GB, free: 1.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006081/0.6393, allocations: 3.842 MB / 0.5549 GB, free: 13.43 MB / 414.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.01752/0.6568, allocations: 9.87 MB / 0.5646 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005085/0.6619, allocations: 3.457 MB / 0.5679 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/0.664, allocations: 1.341 MB / 0.5692 GB, free: 14.38 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01684/0.6809, allocations: 10.85 MB / 0.5798 GB, free: 2.457 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.6809, allocations: 53.78 kB / 0.5799 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009004/0.6818, allocations: 204.8 kB / 0.5801 GB, free: 2.199 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 4.739e-06/0.6819, allocations: 0 / 0.5801 GB, free: 2.199 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04457/0.7264, allocations: 12.28 MB / 0.5921 GB, free: 5.789 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.054e-05/0.7265, allocations: 77.41 kB / 0.5922 GB, free: 5.703 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001724/0.7283, allocations: 1.167 MB / 0.5933 GB, free: 4.523 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003143/0.7286, allocations: 69.7 kB / 0.5934 GB, free: 4.449 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007818/0.7294, allocations: 1.143 MB / 0.5945 GB, free: 3.301 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008559/0.7303, allocations: 0.8578 MB / 0.5953 GB, free: 2.449 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000965/0.7312, allocations: 0.5649 MB / 0.5959 GB, free: 1.875 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.7314, allocations: 305.1 kB / 0.5962 GB, free: 1.574 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.7332, allocations: 1.013 MB / 0.5971 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002961/0.7362, allocations: 1.908 MB / 0.599 GB, free: 14.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00535/0.7415, allocations: 3.2 MB / 0.6021 GB, free: 10.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-05/0.7416, allocations: 12 kB / 0.6021 GB, free: 10.63 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01095/0.7525, allocations: 4.116 MB / 0.6062 GB, free: 6.449 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.946e-05/0.7526, allocations: 20 kB / 0.6062 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.361e-05/0.7527, allocations: 28.38 kB / 0.6062 GB, free: 6.402 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0063/0.759, allocations: 1.365 MB / 0.6075 GB, free: 5.023 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002564/0.7616, allocations: 0.6509 MB / 0.6082 GB, free: 4.375 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01316/0.7747, allocations: 8.286 MB / 0.6163 GB, free: 11.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002731/0.7775, allocations: 99.98 kB / 0.6164 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000363/0.7779, allocations: 171.9 kB / 0.6165 GB, free: 11.38 MB / 478.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.001366/0.7793, allocations: 0.5047 MB / 0.617 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005387/0.7798, allocations: 193.6 kB / 0.6172 GB, free: 10.68 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01031/0.7901, allocations: 3.898 MB / 0.621 GB, free: 6.703 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/0.7902, allocations: 27.94 kB / 0.621 GB, free: 6.676 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.7902, allocations: 4 kB / 0.621 GB, free: 6.672 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.917e-05/0.7902, allocations: 11.95 kB / 0.6211 GB, free: 6.66 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01455/0.8048, allocations: 6.33 MB / 0.6272 GB, free: 240 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.8049, allocations: 8.031 kB / 0.6273 GB, free: 232 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002085/0.8069, allocations: 439.4 kB / 0.6277 GB, free: 15.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006033/0.813, allocations: 1.268 MB / 0.6289 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005325/0.8136, allocations: 95.94 kB / 0.629 GB, free: 14.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/0.825, allocations: 7.783 MB / 0.6366 GB, free: 6.203 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.825, allocations: 0 / 0.6366 GB, free: 6.203 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01164/0.8367, allocations: 5.049 MB / 0.6415 GB, free: 1.004 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007324/0.8374, allocations: 254.5 kB / 0.6418 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/0.8377, allocations: 52.09 kB / 0.6418 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.839, allocations: 71.91 kB / 0.6419 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005023/0.8395, allocations: 225.6 kB / 0.6421 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002324/0.8397, allocations: 111.9 kB / 0.6422 GB, free: 288 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001127/0.8409, allocations: 0.735 MB / 0.6429 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8409, allocations: 0 / 0.6429 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004696/0.8456, allocations: 1.476 MB / 0.6444 GB, free: 14.07 MB / 0.4981 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.003191/0.8488, allocations: 1.507 MB / 0.6458 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006677/0.8555, allocations: 3.508 MB / 0.6493 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.8555, allocations: 0 / 0.6493 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00367/0.8592, allocations: 2.025 MB / 0.6512 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.8615, allocations: 393.1 kB / 0.6516 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008502/0.87, allocations: 4.762 MB / 0.6563 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001465/0.8715, allocations: 1.595 MB / 0.6578 GB, free: 216 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001988/0.8735, allocations: 0.5008 MB / 0.6583 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007982/0.8743, allocations: 349.1 kB / 0.6587 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of SimCode: time 5.51e-07/0.8743, allocations: 0 / 0.6587 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of Templates: time 0.09065/0.965, allocations: 55.85 MB / 0.7132 GB, free: 7.719 MB / 0.5606 GB 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)