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.0-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001225/0.001225, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001437/0.001437, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1866/0.1866, allocations: 15.25 MB / 306.2 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.000331/0.0003311, allocations: 8 kB / 371.4 MB, free: 4.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3214, allocations: 54.62 MB / 426 MB, free: 40.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.009089/0.3306, allocations: 10.63 MB / 436.6 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02488/0.3555, allocations: 28.51 MB / 465.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001918/0.3574, allocations: 47.47 kB / 465.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001606/0.3591, allocations: 0.6982 MB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006312/0.3654, allocations: 2.815 MB / 468.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009433/0.3748, allocations: 3.953 MB / 472.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00363/0.3785, allocations: 2.263 MB / 474.9 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002329/0.3808, allocations: 1.619 MB / 476.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.3832, allocations: 1.221 MB / 477.7 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002916/0.3861, allocations: 1.607 MB / 479.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008181/0.387, allocations: 170.8 kB / 479.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01321/0.4002, allocations: 4.072 MB / 483.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001239/0.4014, allocations: 0.5814 MB / 484.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001677/0.4031, allocations: 0.5146 MB / 484.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01141/0.4146, allocations: 4.351 MB / 489 MB, free: 4.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4146, allocations: 0 / 489 MB, free: 4.988 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4146, allocations: 3.938 kB / 489 MB, free: 4.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001814/0.4148, allocations: 0 / 489 MB, free: 4.984 MB / 350.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.01102/0.4258, allocations: 3.071 MB / 492.1 MB, free: 3.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.4259, allocations: 9.438 kB / 492.1 MB, free: 3.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004098/0.43, allocations: 0.6248 MB / 492.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003707/0.4337, allocations: 1.347 MB / 494.1 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000231/0.434, allocations: 252.7 kB / 494.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001035/0.435, allocations: 283.8 kB / 494.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006584/0.4416, allocations: 3.082 MB / 497.7 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.924e-05/0.4417, allocations: 3.938 kB / 497.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002795/0.442, allocations: 111.9 kB / 497.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.122e-05/0.442, allocations: 60 kB / 497.9 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00673/0.4488, allocations: 3.827 MB / 0.4899 GB, free: 10.16 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.02163/0.4705, allocations: 9.832 MB / 0.4995 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004658/0.4752, allocations: 3.441 MB / 0.5029 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/0.4903, allocations: 10.58 MB / 0.5132 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.821e-05/0.4904, allocations: 56.56 kB / 0.5133 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001018/0.4915, allocations: 205.9 kB / 0.5135 GB, free: 404 kB / 382.1 MB Notification: Performance of pre-optimization done (n=177): time 3.106e-06/0.4915, allocations: 0 / 0.5135 GB, free: 404 kB / 382.1 MB Notification: Performance of matching and sorting (n=251): time 0.04348/0.535, allocations: 12.38 MB / 0.5256 GB, free: 3.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.535, allocations: 77.41 kB / 0.5256 GB, free: 3.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001487/0.5365, allocations: 1.156 MB / 0.5268 GB, free: 2.598 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002069/0.5368, allocations: 69.64 kB / 0.5268 GB, free: 2.523 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007299/0.5375, allocations: 1.153 MB / 0.5279 GB, free: 1.355 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006908/0.5382, allocations: 0.8587 MB / 0.5288 GB, free: 496 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001626/0.5384, allocations: 64 kB / 0.5288 GB, free: 432 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.5386, allocations: 424.3 kB / 0.5293 GB, free: 0 / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/0.5403, allocations: 0.9977 MB / 0.5302 GB, free: 15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002239/0.5425, allocations: 1.877 MB / 0.5321 GB, free: 12.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00203/0.5446, allocations: 1.272 MB / 0.5333 GB, free: 11.44 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.275e-05/0.5446, allocations: 8 kB / 0.5333 GB, free: 11.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009642/0.5542, allocations: 4.113 MB / 0.5373 GB, free: 7.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.5543, allocations: 16 kB / 0.5373 GB, free: 7.234 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.46e-05/0.5543, allocations: 28 kB / 0.5374 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006248/0.5606, allocations: 1.38 MB / 0.5387 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/0.5634, allocations: 0.6514 MB / 0.5394 GB, free: 5.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/0.5745, allocations: 7.812 MB / 0.547 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00279/0.5774, allocations: 163.8 kB / 0.5471 GB, free: 12.76 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003723/0.5778, allocations: 171.9 kB / 0.5473 GB, free: 12.59 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 25,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001226/0.579, allocations: 0.5169 MB / 0.5478 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004116/0.5794, allocations: 197.5 kB / 0.548 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/0.5897, allocations: 3.905 MB / 0.5518 GB, free: 7.891 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.517e-05/0.5898, allocations: 28 kB / 0.5518 GB, free: 7.863 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.5898, allocations: 0 / 0.5518 GB, free: 7.863 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.697e-05/0.5899, allocations: 15.95 kB / 0.5519 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01386/0.6037, allocations: 6.308 MB / 0.558 GB, free: 1.387 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.6038, allocations: 352 / 0.558 GB, free: 1.387 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001835/0.6056, allocations: 439.4 kB / 0.5584 GB, free: 0.957 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006053/0.6117, allocations: 1.291 MB / 0.5597 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003705/0.6121, allocations: 99.89 kB / 0.5598 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009642/0.6217, allocations: 7.333 MB / 0.5669 GB, free: 7.793 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.6218, allocations: 7.938 kB / 0.567 GB, free: 7.785 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01149/0.6333, allocations: 5.176 MB / 0.572 GB, free: 2.371 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006712/0.634, allocations: 250.6 kB / 0.5722 GB, free: 2.105 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003218/0.6343, allocations: 56 kB / 0.5723 GB, free: 2.051 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00135/0.6357, allocations: 95.8 kB / 0.5724 GB, free: 1.957 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004658/0.6361, allocations: 233.7 kB / 0.5726 GB, free: 1.727 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002171/0.6364, allocations: 111.9 kB / 0.5727 GB, free: 1.617 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000993/0.6374, allocations: 0.7155 MB / 0.5734 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6374, allocations: 0 / 0.5734 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004547/0.6419, allocations: 1.444 MB / 0.5748 GB, free: 15.46 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,66.7%) 15,(1,100.0%) 3} * Non-linear torn systems: 2 {2 27,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002982/0.6449, allocations: 1.453 MB / 0.5763 GB, free: 14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006363/0.6513, allocations: 3.475 MB / 0.5796 GB, free: 10.43 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.6513, allocations: 4.312 kB / 0.5796 GB, free: 10.43 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003331/0.6547, allocations: 2.017 MB / 0.5816 GB, free: 8.352 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/0.6564, allocations: 331 kB / 0.5819 GB, free: 8.023 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008408/0.6649, allocations: 5.807 MB / 0.5876 GB, free: 2.145 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.6661, allocations: 1.646 MB / 0.5892 GB, free: 472 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.1925/0.8585, allocations: 0.5023 MB / 0.5897 GB, free: 134.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/0.8597, allocations: 351.3 kB / 0.59 GB, free: 134.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.8597, allocations: 0 / 0.59 GB, free: 134.1 MB / 462.1 MB Notification: Performance of Templates: time 0.0696/0.9293, allocations: 49.95 MB / 0.6388 GB, free: 115.1 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: