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.001347/0.001347, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.00151/0.00151, allocations: 216.1 kB / 22.99 MB, free: 4.945 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.481/1.481, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1469/0.1469, allocations: 23.99 MB / 337.2 MB, free: 10.84 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.002218/0.002218, allocations: 67.89 kB / 472.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3266/0.3288, allocations: 59.9 MB / 0.52 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01041/0.3392, allocations: 10.25 MB / 0.53 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04189/0.3811, allocations: 29.73 MB / 0.559 GB, free: 14.28 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002545/0.3837, allocations: 39.62 kB / 0.559 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002694/0.3863, allocations: 0.6821 MB / 0.5597 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.3966, allocations: 2.756 MB / 0.5624 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01539/0.412, allocations: 4.51 MB / 0.5668 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005808/0.4178, allocations: 3.417 MB / 0.5701 GB, free: 6.051 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003134/0.4209, allocations: 1.661 MB / 0.5718 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003221/0.4241, allocations: 1.687 MB / 0.5734 GB, free: 2.648 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003556/0.4277, allocations: 1.689 MB / 0.5751 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001037/0.4287, allocations: 320 kB / 0.5754 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01186/0.4406, allocations: 3.545 MB / 0.5788 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.4419, allocations: 0.7595 MB / 0.5796 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002801/0.4447, allocations: 1.338 MB / 0.5809 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01829/0.463, allocations: 7.49 MB / 0.5882 GB, free: 3.465 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.463, allocations: 0 / 0.5882 GB, free: 3.465 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.463, allocations: 0 / 0.5882 GB, free: 3.465 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.068e-05/0.4631, allocations: 4 kB / 0.5882 GB, free: 3.461 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.007809/0.4709, allocations: 3.705 MB / 0.5918 GB, free: 15.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.4709, allocations: 8.031 kB / 0.5918 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002676/0.4736, allocations: 0.627 MB / 0.5924 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003062/0.4767, allocations: 1.446 MB / 0.5938 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002883/0.477, allocations: 316.4 kB / 0.5941 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004904/0.4775, allocations: 268 kB / 0.5944 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005634/0.4831, allocations: 3.157 MB / 0.5975 GB, free: 9.754 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.939e-05/0.4831, allocations: 0 / 0.5975 GB, free: 9.754 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002638/0.4834, allocations: 108 kB / 0.5976 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.677e-05/0.4835, allocations: 60 kB / 0.5976 GB, free: 9.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006664/0.4901, allocations: 3.811 MB / 0.6014 GB, free: 5.766 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.01713/0.5073, allocations: 7.889 MB / 0.6091 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004882/0.5121, allocations: 2.776 MB / 0.6118 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002111/0.5142, allocations: 1.246 MB / 0.613 GB, free: 9.707 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01431/0.5286, allocations: 6.003 MB / 0.6189 GB, free: 3.664 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.039e-05/0.5286, allocations: 52.56 kB / 0.6189 GB, free: 3.605 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001018/0.5296, allocations: 230.6 kB / 0.6191 GB, free: 3.379 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.13e-06/0.5296, allocations: 0 / 0.6191 GB, free: 3.379 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04598/0.5756, allocations: 11.84 MB / 0.6307 GB, free: 7.492 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.945e-05/0.5757, allocations: 81.41 kB / 0.6308 GB, free: 7.402 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001588/0.5773, allocations: 1.114 MB / 0.6319 GB, free: 6.27 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003516/0.5776, allocations: 73.7 kB / 0.6319 GB, free: 6.191 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000865/0.5785, allocations: 1.18 MB / 0.6331 GB, free: 5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009298/0.5794, allocations: 0.9025 MB / 0.634 GB, free: 4.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008555/0.5803, allocations: 0.5691 MB / 0.6345 GB, free: 3.512 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.5804, allocations: 301.1 kB / 0.6348 GB, free: 3.215 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001898/0.5823, allocations: 1.009 MB / 0.6358 GB, free: 2.203 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002776/0.5851, allocations: 1.909 MB / 0.6377 GB, free: 15.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005187/0.5903, allocations: 3.203 MB / 0.6408 GB, free: 12.28 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.533e-05/0.5903, allocations: 8 kB / 0.6408 GB, free: 12.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01069/0.601, allocations: 4.107 MB / 0.6448 GB, free: 8.098 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.294e-05/0.601, allocations: 20.31 kB / 0.6448 GB, free: 8.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.776e-05/0.6011, allocations: 32 kB / 0.6448 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006236/0.6073, allocations: 1.354 MB / 0.6462 GB, free: 6.676 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/0.61, allocations: 0.6514 MB / 0.6468 GB, free: 6.023 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/0.6221, allocations: 7.833 MB / 0.6545 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/0.6244, allocations: 107.9 kB / 0.6546 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004178/0.6248, allocations: 175.9 kB / 0.6547 GB, free: 13.58 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.00117/0.626, allocations: 0.5163 MB / 0.6552 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005034/0.6265, allocations: 194.7 kB / 0.6554 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/0.6368, allocations: 3.854 MB / 0.6592 GB, free: 8.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.539e-05/0.6369, allocations: 24 kB / 0.6592 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.6369, allocations: 8 kB / 0.6592 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-05/0.6369, allocations: 16.09 kB / 0.6592 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01415/0.6511, allocations: 5.676 MB / 0.6648 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-05/0.6511, allocations: 4 kB / 0.6648 GB, free: 3.074 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002359/0.6535, allocations: 439.7 kB / 0.6652 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005796/0.6593, allocations: 1.264 MB / 0.6664 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004617/0.6597, allocations: 103.9 kB / 0.6665 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.6701, allocations: 7.343 MB / 0.6737 GB, free: 9.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/0.6702, allocations: 3.938 kB / 0.6737 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/0.6824, allocations: 5.004 MB / 0.6786 GB, free: 4.434 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005664/0.6829, allocations: 174.7 kB / 0.6788 GB, free: 4.262 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003708/0.6833, allocations: 59.98 kB / 0.6788 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.6846, allocations: 55.98 kB / 0.6789 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005073/0.6851, allocations: 233.6 kB / 0.6791 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002567/0.6854, allocations: 115.9 kB / 0.6792 GB, free: 3.805 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009512/0.6863, allocations: 0.6578 MB / 0.6798 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6863, allocations: 0 / 0.6798 GB, free: 3.145 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004405/0.6907, allocations: 1.5 MB / 0.6813 GB, free: 1.641 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.003222/0.6939, allocations: 1.553 MB / 0.6828 GB, free: 72 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007131/0.7011, allocations: 3.255 MB / 0.686 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.7011, allocations: 448 / 0.686 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003731/0.7048, allocations: 1.836 MB / 0.6878 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.7067, allocations: 390.4 kB / 0.6882 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008944/0.7157, allocations: 4.882 MB / 0.6929 GB, free: 5.516 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001175/0.7169, allocations: 1.033 MB / 0.6939 GB, free: 4.441 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/0.7181, allocations: 442.1 kB / 0.6944 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of SimCode: time 7.41e-07/0.7181, allocations: 4 kB / 0.6944 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of Templates: time 0.3235/1.042, allocations: 91.22 MB / 0.7834 GB, free: 147.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.389332871884108] Failed to read output from testmodel.py, exit status != 0: 1.0508944811299443 1.059569847 0.594117232 Calling exit ...