Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001721/0.001721, allocations: 109.1 kB / 18.99 MB, free: 2.609 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.002085/0.002085, allocations: 217.7 kB / 22.3 MB, free: 5.281 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.1 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1496/0.1496, allocations: 23.89 MB / 336.4 MB, free: 10.9 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_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.002011/0.002011, allocations: 67.91 kB / 471.7 MB, free: 6.918 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.345, allocations: 59.85 MB / 0.5191 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.0103/0.3553, allocations: 10.25 MB / 0.5291 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04171/0.397, allocations: 29.73 MB / 0.5582 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002313/0.3993, allocations: 44.12 kB / 0.5582 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.4017, allocations: 0.6828 MB / 0.5589 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01016/0.4119, allocations: 2.756 MB / 0.5616 GB, free: 11.74 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02178/0.4337, allocations: 4.509 MB / 0.566 GB, free: 8.293 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00848/0.4422, allocations: 3.427 MB / 0.5693 GB, free: 6.184 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00398/0.4461, allocations: 1.662 MB / 0.5709 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004546/0.4507, allocations: 1.691 MB / 0.5726 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00519/0.4559, allocations: 1.677 MB / 0.5742 GB, free: 1.094 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001146/0.457, allocations: 324 kB / 0.5745 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01901/0.476, allocations: 3.549 MB / 0.578 GB, free: 13.22 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002057/0.4781, allocations: 0.7556 MB / 0.5787 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003712/0.4818, allocations: 1.335 MB / 0.58 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02936/0.5112, allocations: 7.494 MB / 0.5874 GB, free: 3.602 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.857e-06/0.5112, allocations: 3.984 kB / 0.5874 GB, free: 3.598 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5112, allocations: 0 / 0.5874 GB, free: 3.598 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001433/0.5113, allocations: 0 / 0.5874 GB, free: 3.598 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.01293/0.5242, allocations: 3.701 MB / 0.591 GB, free: 15.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.5243, allocations: 12.03 kB / 0.591 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004427/0.5287, allocations: 0.627 MB / 0.5916 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004333/0.533, allocations: 1.438 MB / 0.593 GB, free: 13.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004126/0.5335, allocations: 316.4 kB / 0.5933 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007773/0.5342, allocations: 271.9 kB / 0.5936 GB, free: 13.13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009332/0.5436, allocations: 3.157 MB / 0.5966 GB, free: 9.895 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.102e-05/0.5436, allocations: 4 kB / 0.5967 GB, free: 9.891 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003798/0.544, allocations: 104 kB / 0.5967 GB, free: 9.789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.517e-05/0.5441, allocations: 64 kB / 0.5968 GB, free: 9.727 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01051/0.5546, allocations: 3.819 MB / 0.6005 GB, free: 5.895 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.02498/0.5796, allocations: 7.897 MB / 0.6083 GB, free: 13.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00733/0.5869, allocations: 2.777 MB / 0.611 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003284/0.5902, allocations: 1.235 MB / 0.6122 GB, free: 9.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/0.6053, allocations: 6.016 MB / 0.618 GB, free: 3.781 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.588e-05/0.6054, allocations: 56.5 kB / 0.6181 GB, free: 3.719 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00116/0.6066, allocations: 226.6 kB / 0.6183 GB, free: 3.496 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.721e-06/0.6066, allocations: 4 kB / 0.6183 GB, free: 3.492 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04627/0.6528, allocations: 11.84 MB / 0.6299 GB, free: 7.609 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/0.6529, allocations: 81.41 kB / 0.63 GB, free: 7.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.6544, allocations: 1.111 MB / 0.631 GB, free: 6.391 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001906/0.6546, allocations: 65.7 kB / 0.6311 GB, free: 6.32 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008787/0.6555, allocations: 1.184 MB / 0.6323 GB, free: 5.125 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008668/0.6564, allocations: 0.9064 MB / 0.6331 GB, free: 4.211 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008675/0.6572, allocations: 0.5613 MB / 0.6337 GB, free: 3.641 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.6574, allocations: 305.1 kB / 0.634 GB, free: 3.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.6592, allocations: 1.009 MB / 0.635 GB, free: 2.328 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002664/0.6619, allocations: 1.901 MB / 0.6368 GB, free: 36 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004931/0.6668, allocations: 3.204 MB / 0.64 GB, free: 12.41 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.494e-05/0.6668, allocations: 8 kB / 0.64 GB, free: 12.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01037/0.6772, allocations: 4.11 MB / 0.644 GB, free: 8.227 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.6772, allocations: 20 kB / 0.644 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.999e-05/0.6773, allocations: 28 kB / 0.644 GB, free: 8.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00614/0.6834, allocations: 1.364 MB / 0.6454 GB, free: 6.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002381/0.6858, allocations: 0.6514 MB / 0.646 GB, free: 6.148 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01196/0.6978, allocations: 7.831 MB / 0.6536 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.6998, allocations: 103.9 kB / 0.6537 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003182/0.7001, allocations: 171.9 kB / 0.6539 GB, free: 13.7 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.001144/0.7013, allocations: 0.5203 MB / 0.6544 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004623/0.7017, allocations: 194.7 kB / 0.6546 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/0.712, allocations: 3.846 MB / 0.6584 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.215e-05/0.712, allocations: 28.14 kB / 0.6584 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.712, allocations: 4 kB / 0.6584 GB, free: 9.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.01e-05/0.712, allocations: 15.94 kB / 0.6584 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01358/0.7256, allocations: 5.68 MB / 0.6639 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.201e-05/0.7256, allocations: 8.281 kB / 0.664 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/0.7275, allocations: 439.4 kB / 0.6644 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005957/0.7334, allocations: 1.264 MB / 0.6656 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003053/0.7337, allocations: 95.92 kB / 0.6657 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.7446, allocations: 7.341 MB / 0.6729 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.7446, allocations: 15.91 kB / 0.6729 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/0.757, allocations: 5.004 MB / 0.6778 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005265/0.7576, allocations: 178.7 kB / 0.6779 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.7579, allocations: 52 kB / 0.678 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.7591, allocations: 63.97 kB / 0.678 GB, free: 4.27 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005576/0.7597, allocations: 237.6 kB / 0.6783 GB, free: 4.035 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002337/0.7599, allocations: 111.9 kB / 0.6784 GB, free: 3.926 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000985/0.7609, allocations: 0.6578 MB / 0.679 GB, free: 3.266 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.7609, allocations: 0 / 0.679 GB, free: 3.266 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004381/0.7653, allocations: 1.5 MB / 0.6805 GB, free: 1.762 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.003087/0.7684, allocations: 1.549 MB / 0.682 GB, free: 200 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007225/0.7756, allocations: 3.253 MB / 0.6852 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.7756, allocations: 4 kB / 0.6852 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003773/0.7794, allocations: 1.833 MB / 0.687 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001978/0.7814, allocations: 392 kB / 0.6873 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009225/0.7906, allocations: 4.828 MB / 0.6921 GB, free: 5.699 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.7918, allocations: 1.029 MB / 0.6931 GB, free: 4.629 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001959/0.7937, allocations: 0.4886 MB / 0.6935 GB, free: 4.137 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008457/0.7946, allocations: 354.9 kB / 0.6939 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of SimCode: time 1.292e-06/0.7946, allocations: 0 / 0.6939 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of Templates: time 0.3704/1.165, allocations: 54.12 MB / 0.7467 GB, free: 174.1 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.sim & ./Chemical_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.036829391494393] Failed to read output from testmodel.py, exit status != 0: 1.1743984464555979 1.185759432 0.671627824 Calling exit ...