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.00706/0.00706, allocations: 98.97 kB / 15.73 MB, free: 6.012 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.001274/0.001274, allocations: 200.8 kB / 16.68 MB, free: 5.926 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09671/0.09671, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.91 kB / 425.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1083, allocations: 53.62 MB / 478.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01336/0.1217, allocations: 11.64 MB / 490.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3019/0.4237, allocations: 33.72 MB / 0.5119 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002822/0.4266, allocations: 28.97 kB / 0.5119 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002906/0.4295, allocations: 0.7441 MB / 0.5126 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01252/0.4421, allocations: 2.767 MB / 0.5153 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01855/0.4607, allocations: 4.419 MB / 0.5196 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007812/0.4686, allocations: 3.416 MB / 0.523 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003574/0.4722, allocations: 2.079 MB / 0.525 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003734/0.4759, allocations: 1.647 MB / 0.5266 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004315/0.4803, allocations: 1.862 MB / 0.5284 GB, free: 248 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008464/0.4811, allocations: 322.9 kB / 0.5287 GB, free: 248 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01845/0.4996, allocations: 3.723 MB / 0.5324 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001615/0.5012, allocations: 0.7528 MB / 0.5331 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002884/0.5041, allocations: 1.585 MB / 0.5347 GB, free: 13.97 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02365/0.5278, allocations: 7.289 MB / 0.5418 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.5278, allocations: 0 / 0.5418 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5279, allocations: 0 / 0.5418 GB, free: 10.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001251/0.528, allocations: 0 / 0.5418 GB, free: 10.07 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.008745/0.5367, allocations: 3.8 MB / 0.5455 GB, free: 7.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.5368, allocations: 12.03 kB / 0.5455 GB, free: 7.297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002622/0.5394, allocations: 0.6231 MB / 0.5461 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002553/0.542, allocations: 1.508 MB / 0.5476 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.5422, allocations: 253.6 kB / 0.5478 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004527/0.5427, allocations: 275.9 kB / 0.5481 GB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005176/0.5479, allocations: 3.128 MB / 0.5511 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.563e-05/0.5479, allocations: 3.938 kB / 0.5511 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/0.5482, allocations: 104 kB / 0.5512 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/0.5483, allocations: 64 kB / 0.5513 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005751/0.554, allocations: 3.842 MB / 0.5551 GB, free: 13.38 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.01553/0.5696, allocations: 9.878 MB / 0.5647 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004663/0.5742, allocations: 3.47 MB / 0.5681 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.5762, allocations: 1.337 MB / 0.5694 GB, free: 14.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01526/0.5915, allocations: 10.86 MB / 0.58 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.291e-05/0.5916, allocations: 56.56 kB / 0.5801 GB, free: 2.324 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008634/0.5925, allocations: 213.2 kB / 0.5803 GB, free: 2.117 MB / 430.1 MB Notification: Performance of pre-optimization done (n=177): time 3.907e-06/0.5925, allocations: 0 / 0.5803 GB, free: 2.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=251): time 0.04347/0.636, allocations: 12.32 MB / 0.5923 GB, free: 5.676 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.636, allocations: 77.41 kB / 0.5924 GB, free: 5.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.6375, allocations: 1.176 MB / 0.5935 GB, free: 4.402 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.6377, allocations: 65.7 kB / 0.5936 GB, free: 4.332 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007269/0.6384, allocations: 1.192 MB / 0.5947 GB, free: 3.141 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006816/0.6391, allocations: 0.8928 MB / 0.5956 GB, free: 2.258 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008237/0.64, allocations: 0.5691 MB / 0.5962 GB, free: 1.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.682e-05/0.6401, allocations: 301.1 kB / 0.5965 GB, free: 1.383 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001687/0.6418, allocations: 1.009 MB / 0.5974 GB, free: 380 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/0.6441, allocations: 1.907 MB / 0.5993 GB, free: 14.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004424/0.6486, allocations: 3.2 MB / 0.6024 GB, free: 10.46 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/0.6486, allocations: 8 kB / 0.6024 GB, free: 10.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009747/0.6583, allocations: 4.145 MB / 0.6065 GB, free: 6.242 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.6584, allocations: 16 kB / 0.6065 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-05/0.6584, allocations: 28 kB / 0.6065 GB, free: 6.199 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00586/0.6643, allocations: 1.356 MB / 0.6079 GB, free: 4.832 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002367/0.6667, allocations: 0.6553 MB / 0.6085 GB, free: 4.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/0.678, allocations: 8.286 MB / 0.6166 GB, free: 11.45 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002304/0.6803, allocations: 99.98 kB / 0.6167 GB, free: 11.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004627/0.6808, allocations: 167.9 kB / 0.6168 GB, free: 11.19 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.001435/0.6823, allocations: 0.5164 MB / 0.6173 GB, free: 10.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006994/0.683, allocations: 202.7 kB / 0.6175 GB, free: 10.46 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01038/0.6934, allocations: 3.902 MB / 0.6214 GB, free: 6.48 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.119e-05/0.6934, allocations: 24 kB / 0.6214 GB, free: 6.457 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.6934, allocations: 4 kB / 0.6214 GB, free: 6.453 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.318e-05/0.6935, allocations: 11.95 kB / 0.6214 GB, free: 6.441 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01589/0.7094, allocations: 6.329 MB / 0.6276 GB, free: 16 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.406e-05/0.7094, allocations: 4 kB / 0.6276 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001998/0.7114, allocations: 439.8 kB / 0.628 GB, free: 15.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005979/0.7174, allocations: 1.271 MB / 0.6292 GB, free: 14.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004888/0.7179, allocations: 95.92 kB / 0.6293 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/0.7281, allocations: 7.803 MB / 0.6369 GB, free: 5.969 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/0.7282, allocations: 4 kB / 0.637 GB, free: 5.965 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/0.7417, allocations: 5.044 MB / 0.6419 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/0.7423, allocations: 255.7 kB / 0.6421 GB, free: 0.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005534/0.7429, allocations: 52 kB / 0.6422 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.7444, allocations: 71.91 kB / 0.6422 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005734/0.745, allocations: 225.7 kB / 0.6425 GB, free: 160 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003026/0.7453, allocations: 111.9 kB / 0.6426 GB, free: 48 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001286/0.7466, allocations: 0.7311 MB / 0.6433 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7466, allocations: 0 / 0.6433 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005372/0.752, allocations: 1.496 MB / 0.6447 GB, free: 13.82 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.004038/0.7561, allocations: 1.525 MB / 0.6462 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007705/0.7638, allocations: 3.508 MB / 0.6497 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/0.7638, allocations: 4.125 kB / 0.6497 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003967/0.7678, allocations: 2.028 MB / 0.6516 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002612/0.7705, allocations: 394.5 kB / 0.652 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009517/0.78, allocations: 4.841 MB / 0.6567 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001609/0.7816, allocations: 1.599 MB / 0.6583 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001994/0.7836, allocations: 0.4969 MB / 0.6588 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008455/0.7845, allocations: 353.5 kB / 0.6591 GB, free: 15 MB / 0.5137 GB Notification: Performance of SimCode: time 7.32e-07/0.7845, allocations: 0 / 0.6591 GB, free: 15 MB / 0.5137 GB Notification: Performance of Templates: time 0.08169/0.8662, allocations: 54.97 MB / 0.7128 GB, free: 8.23 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)