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.001406/0.001406, allocations: 99.75 kB / 18.94 MB, free: 2.832 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.001557/0.001557, allocations: 221.8 kB / 22.25 MB, free: 5.102 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.486/1.486, allocations: 230.6 MB / 256 MB, free: 7.816 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.1409/0.1409, allocations: 23.92 MB / 336.4 MB, free: 10.93 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.002109/0.002109, allocations: 67.89 kB / 471.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3291, allocations: 59.87 MB / 0.5191 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01035/0.3394, allocations: 10.24 MB / 0.5291 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05235/0.3918, allocations: 29.72 MB / 0.5581 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0029/0.3947, allocations: 39.59 kB / 0.5582 GB, free: 14.28 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003343/0.398, allocations: 0.6869 MB / 0.5588 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01321/0.4112, allocations: 2.753 MB / 0.5615 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01985/0.4311, allocations: 4.509 MB / 0.5659 GB, free: 8.211 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008129/0.4392, allocations: 3.43 MB / 0.5693 GB, free: 6.168 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003838/0.4431, allocations: 1.691 MB / 0.5709 GB, free: 4.438 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004501/0.4476, allocations: 1.695 MB / 0.5726 GB, free: 2.738 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005375/0.4529, allocations: 1.892 MB / 0.5744 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001114/0.454, allocations: 320 kB / 0.5747 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01592/0.47, allocations: 3.643 MB / 0.5783 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001796/0.4718, allocations: 0.7478 MB / 0.579 GB, free: 12.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003793/0.4756, allocations: 1.346 MB / 0.5803 GB, free: 10.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02567/0.5012, allocations: 7.479 MB / 0.5876 GB, free: 3.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.5012, allocations: 4 kB / 0.5876 GB, free: 3.266 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.5012, allocations: 4 kB / 0.5876 GB, free: 3.262 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001081/0.5013, allocations: 3.938 kB / 0.5877 GB, free: 3.258 MB / 430.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.01257/0.5139, allocations: 3.697 MB / 0.5913 GB, free: 15.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.514, allocations: 8.031 kB / 0.5913 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004625/0.5186, allocations: 0.6347 MB / 0.5919 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005176/0.5238, allocations: 1.446 MB / 0.5933 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000431/0.5242, allocations: 316.4 kB / 0.5936 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009689/0.5252, allocations: 267.9 kB / 0.5939 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009312/0.5345, allocations: 3.157 MB / 0.5969 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.04e-05/0.5345, allocations: 0 / 0.5969 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002769/0.5348, allocations: 108 kB / 0.597 GB, free: 9.445 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.308e-05/0.5349, allocations: 60 kB / 0.5971 GB, free: 9.387 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006722/0.5416, allocations: 3.815 MB / 0.6008 GB, free: 5.559 MB / 446.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.0174/0.559, allocations: 7.881 MB / 0.6085 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004993/0.564, allocations: 2.773 MB / 0.6112 GB, free: 10.77 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002268/0.5662, allocations: 1.234 MB / 0.6124 GB, free: 9.523 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/0.5814, allocations: 6.014 MB / 0.6183 GB, free: 3.469 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.606e-05/0.5814, allocations: 56.56 kB / 0.6184 GB, free: 3.406 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001083/0.5825, allocations: 226.6 kB / 0.6186 GB, free: 3.184 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.34e-06/0.5825, allocations: 0 / 0.6186 GB, free: 3.184 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.05176/0.6343, allocations: 11.84 MB / 0.6301 GB, free: 7.289 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.6343, allocations: 77.41 kB / 0.6302 GB, free: 7.203 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.636, allocations: 1.114 MB / 0.6313 GB, free: 6.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003829/0.6363, allocations: 69.7 kB / 0.6314 GB, free: 5.996 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.6374, allocations: 1.18 MB / 0.6325 GB, free: 4.805 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00125/0.6386, allocations: 0.9064 MB / 0.6334 GB, free: 3.891 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000942/0.6395, allocations: 0.5613 MB / 0.634 GB, free: 3.32 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.6397, allocations: 301.1 kB / 0.6342 GB, free: 3.023 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002012/0.6417, allocations: 1.017 MB / 0.6352 GB, free: 2.004 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002999/0.6447, allocations: 1.909 MB / 0.6371 GB, free: 15.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005371/0.6501, allocations: 3.199 MB / 0.6402 GB, free: 12.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.832e-05/0.6501, allocations: 8 kB / 0.6402 GB, free: 12.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01225/0.6623, allocations: 4.111 MB / 0.6443 GB, free: 7.898 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.363e-05/0.6624, allocations: 19.98 kB / 0.6443 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.249e-05/0.6625, allocations: 28 kB / 0.6443 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0073/0.6698, allocations: 1.35 MB / 0.6456 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/0.6728, allocations: 0.6514 MB / 0.6463 GB, free: 5.832 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/0.6866, allocations: 7.851 MB / 0.6539 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00264/0.6892, allocations: 111.8 kB / 0.654 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006804/0.6899, allocations: 167.9 kB / 0.6542 GB, free: 13.37 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.001738/0.6917, allocations: 0.5163 MB / 0.6547 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008763/0.6925, allocations: 198.7 kB / 0.6549 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/0.7051, allocations: 3.858 MB / 0.6586 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.541e-05/0.7052, allocations: 24 kB / 0.6587 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/0.7052, allocations: 7.938 kB / 0.6587 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.384e-05/0.7052, allocations: 11.95 kB / 0.6587 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01666/0.7219, allocations: 5.676 MB / 0.6642 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.167e-05/0.7219, allocations: 4 kB / 0.6642 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002268/0.7242, allocations: 443.7 kB / 0.6647 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00684/0.731, allocations: 1.252 MB / 0.6659 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005474/0.7316, allocations: 99.92 kB / 0.666 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.7431, allocations: 7.342 MB / 0.6731 GB, free: 9.398 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/0.7431, allocations: 8.172 kB / 0.6732 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01453/0.7576, allocations: 5.012 MB / 0.6781 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006418/0.7583, allocations: 174.7 kB / 0.6782 GB, free: 4.051 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006456/0.7589, allocations: 55.98 kB / 0.6783 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001911/0.7608, allocations: 64.17 kB / 0.6783 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007233/0.7616, allocations: 229.6 kB / 0.6786 GB, free: 3.707 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004192/0.762, allocations: 115.9 kB / 0.6787 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001334/0.7633, allocations: 0.6617 MB / 0.6793 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7633, allocations: 96 / 0.6793 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005626/0.7689, allocations: 1.5 MB / 0.6808 GB, free: 1.426 MB / 0.5137 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.004687/0.7736, allocations: 1.543 MB / 0.6823 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008463/0.7821, allocations: 3.258 MB / 0.6855 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.7821, allocations: 0 / 0.6855 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004406/0.7865, allocations: 1.832 MB / 0.6873 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002621/0.7891, allocations: 392.9 kB / 0.6876 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.7997, allocations: 4.83 MB / 0.6923 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.8013, allocations: 1.037 MB / 0.6934 GB, free: 4.289 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002378/0.8037, allocations: 0.4925 MB / 0.6938 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009823/0.8047, allocations: 339.8 kB / 0.6942 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of SimCode: time 9.31e-07/0.8047, allocations: 0 / 0.6942 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of Templates: time 0.2999/1.105, allocations: 58.38 MB / 0.7512 GB, free: 172.1 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 sys.exit(0), Time elapsed: 7.7308472422882915] Failed to read output from testmodel.py, exit status != 0: 1.113922130316496 1.123254975 0.619372692 Calling exit ...