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.000847/0.000847, allocations: 90.75 kB / 15.36 MB, free: 0.7383 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.005368/0.005368, allocations: 172.3 kB / 16.26 MB, free: 6.676 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.33/1.33, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1777/0.1777, allocations: 15.27 MB / 306.7 MB, free: 15.67 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003096, allocations: 8 kB / 372.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2646, allocations: 54.61 MB / 426.7 MB, free: 40.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.008603/0.2732, allocations: 12.78 MB / 439.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02615/0.2994, allocations: 33.33 MB / 472.8 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001807/0.3012, allocations: 50.78 kB / 472.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001544/0.3028, allocations: 0.6643 MB / 473.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007629/0.3104, allocations: 2.454 MB / 476 MB, free: 8.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01107/0.3215, allocations: 3.866 MB / 479.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00407/0.3256, allocations: 3.291 MB / 483.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00206/0.3277, allocations: 1.688 MB / 484.8 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001864/0.3296, allocations: 1.522 MB / 486.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00198/0.3316, allocations: 1.71 MB / 488.1 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003462/0.3319, allocations: 171.3 kB / 488.2 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/0.3423, allocations: 3.603 MB / 491.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007151/0.343, allocations: 0.5995 MB / 492.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001715/0.3447, allocations: 1.433 MB / 493.9 MB, free: 296 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01476/0.3595, allocations: 6.725 MB / 0.4889 GB, free: 12.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3595, allocations: 0 / 0.4889 GB, free: 12.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3596, allocations: 0 / 0.4889 GB, free: 12.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.408e-05/0.3596, allocations: 0 / 0.4889 GB, free: 12.02 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.006433/0.366, allocations: 3.069 MB / 0.4919 GB, free: 8.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3661, allocations: 8.031 kB / 0.4919 GB, free: 8.879 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002422/0.3685, allocations: 0.6201 MB / 0.4925 GB, free: 8.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00218/0.3707, allocations: 1.416 MB / 0.4939 GB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/0.3709, allocations: 257 kB / 0.4941 GB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00045/0.3714, allocations: 275.8 kB / 0.4944 GB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005157/0.3766, allocations: 3.124 MB / 0.4974 GB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.306e-05/0.3766, allocations: 0 / 0.4974 GB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002627/0.3769, allocations: 108 kB / 0.4975 GB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.366e-05/0.377, allocations: 67.94 kB / 0.4976 GB, free: 2.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006192/0.3832, allocations: 3.846 MB / 0.5013 GB, free: 15.03 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.0159/0.3991, allocations: 9.865 MB / 0.511 GB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004704/0.4038, allocations: 3.46 MB / 0.5143 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00202/0.4059, allocations: 1.344 MB / 0.5157 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01462/0.4205, allocations: 10.65 MB / 0.5261 GB, free: 4.039 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.4206, allocations: 48.56 kB / 0.5261 GB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009546/0.4215, allocations: 209.9 kB / 0.5263 GB, free: 3.773 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 6.242e-06/0.4216, allocations: 0 / 0.5263 GB, free: 3.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04851/0.4701, allocations: 12.41 MB / 0.5384 GB, free: 7.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.358e-05/0.4702, allocations: 77.41 kB / 0.5385 GB, free: 7.117 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.4718, allocations: 1.16 MB / 0.5396 GB, free: 5.945 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002903/0.4721, allocations: 69.7 kB / 0.5397 GB, free: 5.871 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007552/0.4729, allocations: 1.149 MB / 0.5408 GB, free: 4.707 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008083/0.4737, allocations: 0.8549 MB / 0.5417 GB, free: 3.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003848/0.4741, allocations: 248 kB / 0.5419 GB, free: 3.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.4742, allocations: 301.1 kB / 0.5422 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001855/0.4761, allocations: 1.017 MB / 0.5432 GB, free: 2.273 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002527/0.4786, allocations: 1.905 MB / 0.545 GB, free: 15.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004987/0.4836, allocations: 3.196 MB / 0.5482 GB, free: 12.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.368e-05/0.4837, allocations: 12 kB / 0.5482 GB, free: 12.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01142/0.4951, allocations: 4.14 MB / 0.5522 GB, free: 8.141 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.671e-05/0.4952, allocations: 28.3 kB / 0.5522 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.113e-05/0.4953, allocations: 32 kB / 0.5523 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006713/0.502, allocations: 1.364 MB / 0.5536 GB, free: 6.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002578/0.5046, allocations: 0.6514 MB / 0.5542 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.5166, allocations: 7.723 MB / 0.5618 GB, free: 13.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00281/0.5194, allocations: 175.6 kB / 0.5619 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006568/0.5201, allocations: 171.9 kB / 0.5621 GB, free: 13.56 MB / 446.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.001598/0.5217, allocations: 0.5163 MB / 0.5626 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005388/0.5223, allocations: 197.5 kB / 0.5628 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0114/0.5337, allocations: 3.893 MB / 0.5666 GB, free: 8.867 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.509e-05/0.5338, allocations: 24 kB / 0.5666 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.5338, allocations: 4 kB / 0.5666 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.629e-05/0.5339, allocations: 15.94 kB / 0.5666 GB, free: 8.824 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/0.5495, allocations: 6.335 MB / 0.5728 GB, free: 2.332 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.5495, allocations: 4 kB / 0.5728 GB, free: 2.328 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001935/0.5515, allocations: 447.7 kB / 0.5733 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006211/0.5577, allocations: 1.278 MB / 0.5745 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003526/0.5581, allocations: 107.9 kB / 0.5746 GB, free: 0.4922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/0.5682, allocations: 7.245 MB / 0.5817 GB, free: 8.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.5682, allocations: 0 / 0.5817 GB, free: 8.82 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/0.5815, allocations: 5.05 MB / 0.5866 GB, free: 3.613 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006465/0.5822, allocations: 250.6 kB / 0.5869 GB, free: 3.348 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005456/0.5827, allocations: 59.92 kB / 0.5869 GB, free: 3.289 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001769/0.5845, allocations: 95.8 kB / 0.587 GB, free: 3.195 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006684/0.5852, allocations: 221.8 kB / 0.5872 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000347/0.5856, allocations: 111.9 kB / 0.5873 GB, free: 2.867 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.5868, allocations: 0.7312 MB / 0.588 GB, free: 2.137 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5868, allocations: 0 / 0.588 GB, free: 2.137 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005504/0.5923, allocations: 1.468 MB / 0.5895 GB, free: 0.668 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.1704/0.7628, allocations: 1.497 MB / 0.5909 GB, free: 135.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00632/0.7692, allocations: 3.495 MB / 0.5943 GB, free: 135.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.7692, allocations: 0 / 0.5943 GB, free: 135.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003127/0.7723, allocations: 2.024 MB / 0.5963 GB, free: 134.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.7748, allocations: 368.4 kB / 0.5967 GB, free: 134.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008018/0.7828, allocations: 6.072 MB / 0.6026 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009349/0.7838, allocations: 1.6 MB / 0.6042 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002457/0.7863, allocations: 0.5019 MB / 0.6047 GB, free: 131 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007598/0.787, allocations: 353.3 kB / 0.605 GB, free: 131 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7871, allocations: 0 / 0.605 GB, free: 131 MB / 462.1 MB Notification: Performance of Templates: time 0.07852/0.8656, allocations: 52.18 MB / 0.656 GB, free: 102.9 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)