Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 105.8 kB / 19.69 MB, free: 2.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 217.4 kB / 23.01 MB, free: 5.113 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1472/0.1472, allocations: 23.89 MB / 337.1 MB, free: 11.21 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002083, allocations: 67.91 kB / 472.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3621, allocations: 59.87 MB / 0.5199 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.0111/0.3732, allocations: 11.81 MB / 0.5314 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05004/0.4232, allocations: 33.97 MB / 0.5646 GB, free: 8.211 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003373/0.4266, allocations: 38.84 kB / 0.5646 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003454/0.43, allocations: 0.7538 MB / 0.5654 GB, free: 7.594 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01282/0.4428, allocations: 2.807 MB / 0.5681 GB, free: 5.449 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01832/0.4612, allocations: 4.51 MB / 0.5725 GB, free: 1.996 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006836/0.468, allocations: 3.425 MB / 0.5759 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003114/0.4711, allocations: 1.699 MB / 0.5775 GB, free: 14.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004576/0.4757, allocations: 1.68 MB / 0.5792 GB, free: 13.11 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004475/0.4802, allocations: 1.896 MB / 0.581 GB, free: 11.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009798/0.4811, allocations: 327.9 kB / 0.5813 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01438/0.4955, allocations: 3.768 MB / 0.585 GB, free: 7.109 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001527/0.497, allocations: 0.7556 MB / 0.5857 GB, free: 6.352 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002916/0.5, allocations: 1.583 MB / 0.5873 GB, free: 4.762 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02111/0.5211, allocations: 7.498 MB / 0.5946 GB, free: 13.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.5211, allocations: 4 kB / 0.5946 GB, free: 13.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5211, allocations: 0 / 0.5946 GB, free: 13.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001395/0.5212, allocations: 0 / 0.5946 GB, free: 13.23 MB / 446.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.008605/0.5298, allocations: 3.715 MB / 0.5982 GB, free: 9.465 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.5299, allocations: 8.031 kB / 0.5982 GB, free: 9.457 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002877/0.5328, allocations: 0.6309 MB / 0.5989 GB, free: 8.824 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003344/0.5361, allocations: 1.45 MB / 0.6003 GB, free: 7.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003002/0.5364, allocations: 312.4 kB / 0.6006 GB, free: 7.008 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005603/0.537, allocations: 275.8 kB / 0.6008 GB, free: 6.738 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005723/0.5427, allocations: 3.128 MB / 0.6039 GB, free: 3.539 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.084e-05/0.5427, allocations: 7.938 kB / 0.6039 GB, free: 3.531 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002609/0.543, allocations: 100 kB / 0.604 GB, free: 3.434 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.344e-05/0.543, allocations: 68 kB / 0.6041 GB, free: 3.367 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006804/0.5498, allocations: 3.854 MB / 0.6078 GB, free: 15.5 MB / 462.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.01958/0.5694, allocations: 9.871 MB / 0.6175 GB, free: 5.23 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005238/0.5747, allocations: 2.808 MB / 0.6202 GB, free: 2.43 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002343/0.577, allocations: 1.238 MB / 0.6214 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01526/0.5923, allocations: 6.361 MB / 0.6276 GB, free: 10.78 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/0.5923, allocations: 48.56 kB / 0.6277 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001072/0.5934, allocations: 242.5 kB / 0.6279 GB, free: 10.49 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 4.899e-06/0.5934, allocations: 0 / 0.6279 GB, free: 10.49 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04767/0.6411, allocations: 11.84 MB / 0.6395 GB, free: 14.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.07e-05/0.6412, allocations: 77.41 kB / 0.6395 GB, free: 14.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001743/0.6429, allocations: 1.168 MB / 0.6407 GB, free: 13.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003763/0.6433, allocations: 65.7 kB / 0.6407 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009481/0.6442, allocations: 1.192 MB / 0.6419 GB, free: 12.06 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001031/0.6453, allocations: 0.9103 MB / 0.6428 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008886/0.6461, allocations: 0.5613 MB / 0.6433 GB, free: 10.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.6463, allocations: 301.1 kB / 0.6436 GB, free: 10.28 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001938/0.6482, allocations: 1.009 MB / 0.6446 GB, free: 9.266 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002863/0.6511, allocations: 1.909 MB / 0.6465 GB, free: 6.965 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005479/0.6566, allocations: 3.2 MB / 0.6496 GB, free: 3.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.058e-05/0.6566, allocations: 8 kB / 0.6496 GB, free: 3.336 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01091/0.6675, allocations: 4.118 MB / 0.6536 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.408e-05/0.6675, allocations: 20 kB / 0.6537 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.176e-05/0.6676, allocations: 28 kB / 0.6537 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006397/0.674, allocations: 1.365 MB / 0.655 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00281/0.6768, allocations: 0.6514 MB / 0.6556 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01321/0.69, allocations: 7.97 MB / 0.6634 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00278/0.6928, allocations: 108 kB / 0.6635 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004293/0.6932, allocations: 167.9 kB / 0.6637 GB, free: 4.453 MB / 0.4981 GB 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.001335/0.6945, allocations: 0.5092 MB / 0.6642 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006082/0.6952, allocations: 210.6 kB / 0.6644 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01079/0.7059, allocations: 3.867 MB / 0.6682 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.019e-05/0.706, allocations: 27.98 kB / 0.6682 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/0.706, allocations: 4 kB / 0.6682 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.761e-05/0.706, allocations: 15.89 kB / 0.6682 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01503/0.7211, allocations: 6.295 MB / 0.6744 GB, free: 9.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.837e-05/0.7211, allocations: 4 kB / 0.6744 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001968/0.723, allocations: 439.8 kB / 0.6748 GB, free: 8.863 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005774/0.7288, allocations: 1.264 MB / 0.676 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00044/0.7293, allocations: 95.94 kB / 0.6761 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/0.7402, allocations: 7.489 MB / 0.6834 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.7402, allocations: 8.031 kB / 0.6834 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/0.7526, allocations: 5.024 MB / 0.6883 GB, free: 10.45 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005704/0.7532, allocations: 186.5 kB / 0.6885 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004326/0.7536, allocations: 52.19 kB / 0.6886 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.7549, allocations: 59.98 kB / 0.6886 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005215/0.7555, allocations: 245.5 kB / 0.6889 GB, free: 9.918 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/0.7557, allocations: 111.9 kB / 0.689 GB, free: 9.809 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00108/0.7568, allocations: 0.7311 MB / 0.6897 GB, free: 9.078 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.7568, allocations: 0 / 0.6897 GB, free: 9.078 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004479/0.7613, allocations: 1.5 MB / 0.6911 GB, free: 7.574 MB / 0.5294 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.003362/0.7646, allocations: 1.545 MB / 0.6927 GB, free: 6.012 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00736/0.772, allocations: 3.249 MB / 0.6958 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.772, allocations: 1.875 kB / 0.6958 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003967/0.776, allocations: 1.836 MB / 0.6976 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.7781, allocations: 389.9 kB / 0.698 GB, free: 436 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009277/0.7873, allocations: 4.903 MB / 0.7028 GB, free: 11.44 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001398/0.7887, allocations: 1.587 MB / 0.7043 GB, free: 9.816 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/0.79, allocations: 447.4 kB / 0.7048 GB, free: 9.391 MB / 0.545 GB Notification: Performance of SimCode: time 9.51e-07/0.79, allocations: 0 / 0.7048 GB, free: 9.391 MB / 0.545 GB Notification: Performance of Templates: time 0.3303/1.12, allocations: 90.44 MB / 0.7931 GB, free: 136.4 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.sim & ./Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 12.634159117995296] Failed to read output from testmodel.py, exit status != 0: 1.1299934400012717 1.138723669 0.614910705 Calling exit ...