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.001859/0.001859, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.002196/0.002196, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.525/1.525, allocations: 230.6 MB / 252.8 MB, free: 8.965 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.1464/0.1464, allocations: 23.88 MB / 332.7 MB, free: 12.31 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.002189/0.002189, allocations: 67.89 kB / 466.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.335, allocations: 59.83 MB / 0.514 GB, free: 9.176 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01029/0.3453, allocations: 11.75 MB / 0.5255 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04478/0.3901, allocations: 33.91 MB / 0.5586 GB, free: 8.074 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002603/0.3927, allocations: 43.53 kB / 0.5587 GB, free: 8.051 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002526/0.3952, allocations: 0.7524 MB / 0.5594 GB, free: 7.465 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009773/0.405, allocations: 2.787 MB / 0.5621 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01458/0.4196, allocations: 4.456 MB / 0.5665 GB, free: 1.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006899/0.4265, allocations: 3.424 MB / 0.5698 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003233/0.4297, allocations: 1.714 MB / 0.5715 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003695/0.4334, allocations: 1.688 MB / 0.5731 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004061/0.4375, allocations: 1.899 MB / 0.575 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009229/0.4384, allocations: 324 kB / 0.5753 GB, free: 12.14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01393/0.4523, allocations: 3.772 MB / 0.579 GB, free: 8.363 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001585/0.4539, allocations: 0.7517 MB / 0.5797 GB, free: 7.609 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002948/0.4569, allocations: 1.591 MB / 0.5813 GB, free: 6.012 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02068/0.4776, allocations: 7.502 MB / 0.5886 GB, free: 14.48 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.766e-06/0.4776, allocations: 0 / 0.5886 GB, free: 14.48 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4776, allocations: 0 / 0.5886 GB, free: 14.48 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001356/0.4777, allocations: 3.984 kB / 0.5886 GB, free: 14.47 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.009562/0.4873, allocations: 3.784 MB / 0.5923 GB, free: 10.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.4873, allocations: 8.031 kB / 0.5923 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003058/0.4904, allocations: 0.627 MB / 0.5929 GB, free: 9.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.4936, allocations: 1.514 MB / 0.5944 GB, free: 8.418 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002764/0.4938, allocations: 260.9 kB / 0.5946 GB, free: 8.148 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005846/0.4944, allocations: 279.9 kB / 0.5949 GB, free: 7.875 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006171/0.5006, allocations: 3.121 MB / 0.598 GB, free: 4.684 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.72e-05/0.5006, allocations: 3.938 kB / 0.598 GB, free: 4.68 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003016/0.5009, allocations: 116 kB / 0.5981 GB, free: 4.566 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.765e-05/0.501, allocations: 64 kB / 0.5981 GB, free: 4.504 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00723/0.5082, allocations: 3.85 MB / 0.6019 GB, free: 0.6406 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.02178/0.53, allocations: 9.969 MB / 0.6116 GB, free: 6.285 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006319/0.5363, allocations: 3.328 MB / 0.6149 GB, free: 2.832 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002697/0.539, allocations: 1.239 MB / 0.6161 GB, free: 1.582 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02061/0.5596, allocations: 10.92 MB / 0.6268 GB, free: 5.504 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.823e-05/0.5597, allocations: 52.56 kB / 0.6268 GB, free: 5.445 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001279/0.561, allocations: 234.5 kB / 0.627 GB, free: 5.215 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 9.839e-06/0.561, allocations: 0 / 0.627 GB, free: 5.215 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.05158/0.6126, allocations: 12.29 MB / 0.639 GB, free: 8.758 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/0.6126, allocations: 77.41 kB / 0.6391 GB, free: 8.672 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.6144, allocations: 1.172 MB / 0.6402 GB, free: 7.488 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003366/0.6147, allocations: 69.7 kB / 0.6403 GB, free: 7.414 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009761/0.6157, allocations: 1.188 MB / 0.6415 GB, free: 6.215 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/0.6168, allocations: 0.8948 MB / 0.6423 GB, free: 5.312 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009961/0.6178, allocations: 0.5652 MB / 0.6429 GB, free: 4.738 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.6179, allocations: 305.1 kB / 0.6432 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002091/0.62, allocations: 1.009 MB / 0.6442 GB, free: 3.426 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00305/0.623, allocations: 1.901 MB / 0.646 GB, free: 1.133 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005577/0.6286, allocations: 3.2 MB / 0.6492 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.482e-05/0.6286, allocations: 8 kB / 0.6492 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01127/0.6399, allocations: 4.13 MB / 0.6532 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.331e-05/0.64, allocations: 16 kB / 0.6532 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.72e-05/0.64, allocations: 28 kB / 0.6532 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0067/0.6467, allocations: 1.365 MB / 0.6546 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/0.6495, allocations: 0.6552 MB / 0.6552 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/0.6631, allocations: 8.281 MB / 0.6633 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002486/0.6655, allocations: 108 kB / 0.6634 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007054/0.6663, allocations: 171.9 kB / 0.6636 GB, free: 14.23 MB / 0.5137 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.001694/0.6679, allocations: 0.5087 MB / 0.6641 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000748/0.6687, allocations: 206.6 kB / 0.6643 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/0.6807, allocations: 3.859 MB / 0.668 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.111e-05/0.6808, allocations: 24 kB / 0.6681 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.818e-05/0.6808, allocations: 7.984 kB / 0.6681 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.226e-05/0.6809, allocations: 11.95 kB / 0.6681 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01797/0.6988, allocations: 6.327 MB / 0.6743 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-05/0.6989, allocations: 7.984 kB / 0.6743 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00215/0.701, allocations: 439.8 kB / 0.6747 GB, free: 2.613 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00627/0.7073, allocations: 1.264 MB / 0.6759 GB, free: 1.332 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005064/0.7078, allocations: 91.94 kB / 0.676 GB, free: 1.242 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01278/0.7206, allocations: 7.795 MB / 0.6836 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/0.7206, allocations: 4 kB / 0.6836 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/0.7357, allocations: 5.024 MB / 0.6885 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007851/0.7364, allocations: 259.6 kB / 0.6888 GB, free: 3.551 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007769/0.7372, allocations: 59.98 kB / 0.6888 GB, free: 3.492 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001884/0.7391, allocations: 55.98 kB / 0.6889 GB, free: 3.438 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007774/0.7399, allocations: 233.7 kB / 0.6891 GB, free: 3.207 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004028/0.7403, allocations: 111.9 kB / 0.6892 GB, free: 3.098 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001403/0.7417, allocations: 0.7311 MB / 0.6899 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7417, allocations: 0 / 0.6899 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005404/0.7471, allocations: 1.496 MB / 0.6914 GB, free: 0.8672 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.004353/0.7514, allocations: 1.557 MB / 0.6929 GB, free: 15.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008819/0.7603, allocations: 3.326 MB / 0.6962 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.386e-06/0.7603, allocations: 0 / 0.6962 GB, free: 11.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004547/0.7648, allocations: 1.903 MB / 0.698 GB, free: 9.914 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/0.7674, allocations: 407.5 kB / 0.6984 GB, free: 9.52 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.7779, allocations: 4.83 MB / 0.7031 GB, free: 4.609 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/0.7797, allocations: 1.591 MB / 0.7047 GB, free: 2.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002328/0.782, allocations: 0.4969 MB / 0.7052 GB, free: 2.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/0.783, allocations: 368.9 kB / 0.7055 GB, free: 2.129 MB / 0.545 GB Notification: Performance of SimCode: time 8.31e-07/0.783, allocations: 0 / 0.7055 GB, free: 2.129 MB / 0.545 GB Notification: Performance of Templates: time 0.3227/1.106, allocations: 56.16 MB / 0.7604 GB, free: 164.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 sys.exit(0), Time elapsed: 7.5860241567716] Failed to read output from testmodel.py, exit status != 0: 1.1154101779684424 1.12407837 0.644113257 Calling exit ...