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.00126/0.00126, allocations: 75.75 kB / 19.76 MB, free: 1.875 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.001381/0.001381, allocations: 156.2 kB / 23.01 MB, free: 4.602 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.322/1.322, allocations: 177.2 MB / 203.4 MB, free: 8.906 MB / 190.1 MB " [Timeout remaining time 179] 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.1202/0.1202, allocations: 17.36 MB / 277.1 MB, free: 15.27 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.001983/0.001983, allocations: 67.89 kB / 412.4 MB, free: 5.715 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1024, allocations: 59.85 MB / 472.3 MB, free: 9.75 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.1946/0.297, allocations: 10.24 MB / 482.5 MB, free: 43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02337/0.3204, allocations: 29.73 MB / 0.5002 GB, free: 26.95 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.3218, allocations: 38.5 kB / 0.5003 GB, free: 26.93 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.3234, allocations: 0.6857 MB / 0.501 GB, free: 26.57 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006644/0.33, allocations: 2.754 MB / 0.5036 GB, free: 24.92 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01049/0.3405, allocations: 4.507 MB / 0.508 GB, free: 22.29 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003804/0.3443, allocations: 3.421 MB / 0.5114 GB, free: 20.61 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001469/0.3458, allocations: 1.674 MB / 0.513 GB, free: 19.81 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.347, allocations: 1.68 MB / 0.5147 GB, free: 19.18 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001744/0.3488, allocations: 1.686 MB / 0.5163 GB, free: 18.6 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003596/0.3491, allocations: 322.3 kB / 0.5166 GB, free: 18.6 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007953/0.3571, allocations: 3.545 MB / 0.5201 GB, free: 17.83 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005395/0.3576, allocations: 0.7559 MB / 0.5208 GB, free: 17.35 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.3588, allocations: 1.341 MB / 0.5221 GB, free: 16.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01128/0.3701, allocations: 7.487 MB / 0.5294 GB, free: 13.5 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3701, allocations: 0.6562 kB / 0.5294 GB, free: 13.5 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3701, allocations: 0 / 0.5294 GB, free: 13.5 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.946e-05/0.3702, allocations: 1.438 kB / 0.5294 GB, free: 13.5 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.006428/0.3766, allocations: 3.699 MB / 0.533 GB, free: 11.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.3766, allocations: 10.77 kB / 0.5331 GB, free: 11.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002388/0.379, allocations: 0.6283 MB / 0.5337 GB, free: 11.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.3815, allocations: 1.451 MB / 0.5351 GB, free: 10.44 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.3817, allocations: 312.8 kB / 0.5354 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003889/0.3821, allocations: 271.3 kB / 0.5356 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004559/0.3867, allocations: 3.159 MB / 0.5387 GB, free: 8.875 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.185e-05/0.3867, allocations: 5 kB / 0.5387 GB, free: 8.871 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000246/0.387, allocations: 105.9 kB / 0.5388 GB, free: 8.789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-05/0.387, allocations: 67.5 kB / 0.5389 GB, free: 8.785 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005468/0.3925, allocations: 3.819 MB / 0.5426 GB, free: 7.656 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.01287/0.4053, allocations: 7.878 MB / 0.5503 GB, free: 3.449 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003476/0.4088, allocations: 2.773 MB / 0.553 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001564/0.4104, allocations: 1.231 MB / 0.5542 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01351/0.4239, allocations: 6.033 MB / 0.5601 GB, free: 9.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.4239, allocations: 52.56 kB / 0.5602 GB, free: 9.512 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009335/0.4249, allocations: 218.6 kB / 0.5604 GB, free: 9.297 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.177e-06/0.4249, allocations: 4 kB / 0.5604 GB, free: 9.293 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.044/0.4689, allocations: 11.84 MB / 0.572 GB, free: 13.41 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.4689, allocations: 85.41 kB / 0.572 GB, free: 13.31 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001601/0.4705, allocations: 1.107 MB / 0.5731 GB, free: 12.19 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003446/0.4709, allocations: 69.7 kB / 0.5732 GB, free: 12.11 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009044/0.4718, allocations: 1.184 MB / 0.5743 GB, free: 10.92 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009926/0.4728, allocations: 0.9064 MB / 0.5752 GB, free: 10 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001123/0.4739, allocations: 0.5652 MB / 0.5758 GB, free: 9.43 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.474, allocations: 301.1 kB / 0.5761 GB, free: 9.133 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.476, allocations: 1.013 MB / 0.577 GB, free: 8.117 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002772/0.4788, allocations: 1.901 MB / 0.5789 GB, free: 5.824 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005125/0.4839, allocations: 3.2 MB / 0.582 GB, free: 2.203 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-05/0.4839, allocations: 8 kB / 0.582 GB, free: 2.195 MB / 478.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01059/0.4945, allocations: 4.111 MB / 0.5861 GB, free: 14.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.275e-05/0.4946, allocations: 19.94 kB / 0.5861 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.783e-05/0.4946, allocations: 28 kB / 0.5861 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006038/0.5006, allocations: 1.361 MB / 0.5874 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002294/0.5029, allocations: 0.6553 MB / 0.5881 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/0.5148, allocations: 7.82 MB / 0.5957 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.5168, allocations: 111.9 kB / 0.5958 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003603/0.5171, allocations: 170.7 kB / 0.596 GB, free: 3.512 MB / 494.1 MB 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.001089/0.5182, allocations: 0.5086 MB / 0.5965 GB, free: 2.992 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004782/0.5187, allocations: 198.7 kB / 0.5967 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/0.5288, allocations: 3.869 MB / 0.6004 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/0.5288, allocations: 24 kB / 0.6005 GB, free: 14.85 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.5288, allocations: 4 kB / 0.6005 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-05/0.5289, allocations: 11.95 kB / 0.6005 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/0.5424, allocations: 5.684 MB / 0.606 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.5424, allocations: 352 / 0.606 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.5443, allocations: 435.4 kB / 0.6064 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00602/0.5504, allocations: 1.264 MB / 0.6077 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005601/0.5509, allocations: 95.94 kB / 0.6078 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.5614, allocations: 7.339 MB / 0.6149 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.5614, allocations: 4.719 kB / 0.6149 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01206/0.5735, allocations: 5.02 MB / 0.6198 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005055/0.574, allocations: 178.7 kB / 0.62 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003649/0.5744, allocations: 52 kB / 0.6201 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/0.5757, allocations: 63.97 kB / 0.6201 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004756/0.5762, allocations: 237.6 kB / 0.6204 GB, free: 9.855 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/0.5764, allocations: 111.9 kB / 0.6205 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009652/0.5774, allocations: 0.6578 MB / 0.6211 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.5774, allocations: 0 / 0.6211 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00435/0.5817, allocations: 1.5 MB / 0.6226 GB, free: 7.582 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.003321/0.5851, allocations: 1.55 MB / 0.6241 GB, free: 6.02 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006602/0.5917, allocations: 3.253 MB / 0.6273 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5917, allocations: 3.938 kB / 0.6273 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003508/0.5952, allocations: 1.833 MB / 0.629 GB, free: 0.8125 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.5969, allocations: 395.6 kB / 0.6294 GB, free: 444 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009006/0.6059, allocations: 4.823 MB / 0.6341 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00127/0.6072, allocations: 1.029 MB / 0.6351 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001818/0.609, allocations: 0.5003 MB / 0.6356 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007981/0.6098, allocations: 349.3 kB / 0.636 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of SimCode: time 6.81e-07/0.6098, allocations: 0 / 0.636 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of Templates: time 0.08416/0.694, allocations: 54.13 MB / 0.6888 GB, free: 3.785 MB / 0.5762 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 -s ida -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.898108527995646] Failed to read output from testmodel.py, exit status != 0: 0.7025731609901413 0.8623048879999999 0.48951726100000004 Calling exit ...