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.001486/0.001486, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001671/0.001671, allocations: 210.6 kB / 22.99 MB, free: 4.984 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.367/1.367, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.1322/0.1322, allocations: 23.92 MB / 337.1 MB, free: 10.92 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.001968/0.001968, allocations: 67.91 kB / 472.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2819, allocations: 59.87 MB / 0.5198 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009298/0.2912, allocations: 10.24 MB / 0.5298 GB, free: 2.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03739/0.3286, allocations: 29.73 MB / 0.5589 GB, free: 14.26 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002091/0.3306, allocations: 34 kB / 0.5589 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.3327, allocations: 0.6873 MB / 0.5596 GB, free: 13.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008515/0.3412, allocations: 2.752 MB / 0.5623 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01387/0.3551, allocations: 4.506 MB / 0.5667 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004928/0.36, allocations: 3.418 MB / 0.57 GB, free: 6.145 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002262/0.3623, allocations: 1.707 MB / 0.5717 GB, free: 4.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.3645, allocations: 1.687 MB / 0.5733 GB, free: 2.738 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00243/0.3669, allocations: 1.888 MB / 0.5752 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004963/0.3674, allocations: 324 kB / 0.5755 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01003/0.3774, allocations: 3.639 MB / 0.579 GB, free: 12.88 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008472/0.3783, allocations: 0.7556 MB / 0.5798 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001694/0.38, allocations: 1.338 MB / 0.5811 GB, free: 10.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01485/0.3948, allocations: 7.482 MB / 0.5884 GB, free: 3.27 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3948, allocations: 4 kB / 0.5884 GB, free: 3.266 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3948, allocations: 0 / 0.5884 GB, free: 3.266 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.682e-05/0.3949, allocations: 3.938 kB / 0.5884 GB, free: 3.262 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.007113/0.402, allocations: 3.705 MB / 0.592 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.402, allocations: 8.031 kB / 0.592 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002661/0.4047, allocations: 0.6309 MB / 0.5926 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002742/0.4074, allocations: 1.45 MB / 0.594 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/0.4077, allocations: 308.4 kB / 0.5943 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004619/0.4081, allocations: 271.9 kB / 0.5946 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005241/0.4134, allocations: 3.157 MB / 0.5977 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.783e-05/0.4134, allocations: 0 / 0.5977 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.4137, allocations: 104 kB / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.387e-05/0.4137, allocations: 64 kB / 0.5978 GB, free: 9.387 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00611/0.4199, allocations: 3.819 MB / 0.6016 GB, free: 5.555 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.0151/0.435, allocations: 7.882 MB / 0.6093 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004636/0.4396, allocations: 2.78 MB / 0.612 GB, free: 10.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.4415, allocations: 1.238 MB / 0.6132 GB, free: 9.508 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/0.455, allocations: 6.01 MB / 0.6191 GB, free: 3.457 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.513e-05/0.455, allocations: 52.56 kB / 0.6191 GB, free: 3.398 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009593/0.456, allocations: 226.6 kB / 0.6193 GB, free: 3.176 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 3.957e-06/0.456, allocations: 0 / 0.6193 GB, free: 3.176 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04662/0.5026, allocations: 11.84 MB / 0.6309 GB, free: 7.285 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.542e-05/0.5027, allocations: 77.41 kB / 0.631 GB, free: 7.199 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.5041, allocations: 1.118 MB / 0.632 GB, free: 6.062 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001865/0.5043, allocations: 69.7 kB / 0.6321 GB, free: 5.988 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008092/0.5051, allocations: 1.184 MB / 0.6333 GB, free: 4.793 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007957/0.5059, allocations: 0.9064 MB / 0.6342 GB, free: 3.879 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00087/0.5067, allocations: 0.5613 MB / 0.6347 GB, free: 3.309 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.5069, allocations: 305.1 kB / 0.635 GB, free: 3.008 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001815/0.5087, allocations: 1.009 MB / 0.636 GB, free: 1.996 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002613/0.5113, allocations: 1.913 MB / 0.6378 GB, free: 15.69 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004815/0.5161, allocations: 3.196 MB / 0.641 GB, free: 12.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/0.5161, allocations: 8 kB / 0.641 GB, free: 12.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01063/0.5267, allocations: 4.111 MB / 0.645 GB, free: 7.891 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.5268, allocations: 16 kB / 0.645 GB, free: 7.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.675e-05/0.5268, allocations: 28 kB / 0.645 GB, free: 7.848 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006567/0.5334, allocations: 1.361 MB / 0.6464 GB, free: 6.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/0.5357, allocations: 0.6514 MB / 0.647 GB, free: 5.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.5477, allocations: 7.839 MB / 0.6547 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.5498, allocations: 119.8 kB / 0.6548 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003136/0.5501, allocations: 167.9 kB / 0.6549 GB, free: 13.36 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.00105/0.5511, allocations: 0.5086 MB / 0.6554 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004213/0.5516, allocations: 194.7 kB / 0.6556 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01059/0.5621, allocations: 3.862 MB / 0.6594 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/0.5622, allocations: 24 kB / 0.6594 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.5622, allocations: 4 kB / 0.6594 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.509e-05/0.5622, allocations: 15.94 kB / 0.6594 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01363/0.5758, allocations: 5.676 MB / 0.665 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.5758, allocations: 3.984 kB / 0.665 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/0.5777, allocations: 439.7 kB / 0.6654 GB, free: 2.434 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006274/0.584, allocations: 1.264 MB / 0.6666 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002485/0.5843, allocations: 99.88 kB / 0.6667 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.5945, allocations: 7.342 MB / 0.6739 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.5945, allocations: 7.875 kB / 0.6739 GB, free: 9.383 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/0.6066, allocations: 5.012 MB / 0.6788 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004459/0.6071, allocations: 178.7 kB / 0.679 GB, free: 4.039 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003129/0.6074, allocations: 56 kB / 0.679 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.6087, allocations: 55.98 kB / 0.6791 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004825/0.6092, allocations: 237.6 kB / 0.6793 GB, free: 3.695 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002362/0.6094, allocations: 115.9 kB / 0.6794 GB, free: 3.582 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009136/0.6103, allocations: 0.6578 MB / 0.68 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6103, allocations: 0 / 0.68 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003963/0.6143, allocations: 1.5 MB / 0.6815 GB, free: 1.418 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.002868/0.6172, allocations: 1.54 MB / 0.683 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006715/0.6239, allocations: 3.262 MB / 0.6862 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.6239, allocations: 0 / 0.6862 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003502/0.6274, allocations: 1.829 MB / 0.688 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.001728/0.6291, allocations: 389.6 kB / 0.6884 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008306/0.6374, allocations: 4.829 MB / 0.6931 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.6385, allocations: 1.037 MB / 0.6941 GB, free: 4.289 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001744/0.6402, allocations: 0.4886 MB / 0.6946 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008189/0.6411, allocations: 351.5 kB / 0.6949 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of SimCode: time 1.082e-06/0.6411, allocations: 0 / 0.6949 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of Templates: time 0.2657/0.9067, allocations: 58.38 MB / 0.7519 GB, free: 171.9 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 -s gbode -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] Could not SIGINT process: 2912974. Could not SIGINT process: 2912975. Could not SIGINT process: 2912978. Could not SIGINT process: 2912661. [Calling os._exit(0), Time elapsed: 487.0809587419935] Failed to read output from testmodel.py, exit status != 0: 0.9154267919948325 0.924669276 0.527581611 Calling exit ...