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.001266/0.001266, allocations: 78.09 kB / 19.76 MB, free: 2.035 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.00137/0.00137, allocations: 157.2 kB / 23.01 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.343/1.343, allocations: 177.2 MB / 203.4 MB, free: 8.953 MB / 190.1 MB " [Timeout remaining time 179] 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.1387/0.1387, allocations: 17.45 MB / 277.2 MB, free: 15.18 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.002052/0.002052, allocations: 63.89 kB / 412.6 MB, free: 5.547 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.1005, allocations: 59.88 MB / 472.5 MB, free: 9.551 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.1914/0.2918, allocations: 10.23 MB / 482.7 MB, free: 43.02 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02353/0.3153, allocations: 29.73 MB / 0.5004 GB, free: 26.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.3168, allocations: 34.5 kB / 0.5005 GB, free: 26.71 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.3183, allocations: 0.6847 MB / 0.5011 GB, free: 26.35 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005798/0.3241, allocations: 2.762 MB / 0.5038 GB, free: 24.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008939/0.3331, allocations: 4.506 MB / 0.5082 GB, free: 22.07 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003317/0.3364, allocations: 3.418 MB / 0.5116 GB, free: 20.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.3379, allocations: 1.663 MB / 0.5132 GB, free: 19.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00142/0.3393, allocations: 1.686 MB / 0.5148 GB, free: 18.97 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001838/0.3412, allocations: 1.685 MB / 0.5165 GB, free: 18.38 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003702/0.3415, allocations: 323.7 kB / 0.5168 GB, free: 18.38 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008957/0.3505, allocations: 3.545 MB / 0.5202 GB, free: 17.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008942/0.3514, allocations: 0.7582 MB / 0.521 GB, free: 17.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001557/0.3529, allocations: 1.342 MB / 0.5223 GB, free: 16.44 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0131/0.366, allocations: 7.479 MB / 0.5296 GB, free: 13.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.366, allocations: 0.7031 kB / 0.5296 GB, free: 13.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.366, allocations: 1.156 kB / 0.5296 GB, free: 13.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001093/0.3662, allocations: 0 / 0.5296 GB, free: 13.29 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.008248/0.3744, allocations: 3.708 MB / 0.5332 GB, free: 11.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.3744, allocations: 9.188 kB / 0.5332 GB, free: 11.22 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002836/0.3773, allocations: 0.6314 MB / 0.5338 GB, free: 11.01 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003174/0.3804, allocations: 1.45 MB / 0.5353 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002063/0.3807, allocations: 309 kB / 0.5356 GB, free: 10 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005428/0.3812, allocations: 266.8 kB / 0.5358 GB, free: 9.914 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005321/0.3865, allocations: 3.167 MB / 0.5389 GB, free: 8.656 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.249e-05/0.3866, allocations: 1 kB / 0.5389 GB, free: 8.656 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002457/0.3868, allocations: 105.7 kB / 0.539 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.993e-05/0.3869, allocations: 63.41 kB / 0.5391 GB, free: 8.574 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005834/0.3927, allocations: 3.814 MB / 0.5428 GB, free: 7.449 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.0132/0.4059, allocations: 7.88 MB / 0.5505 GB, free: 3.242 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003454/0.4094, allocations: 2.789 MB / 0.5532 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.4111, allocations: 1.232 MB / 0.5544 GB, free: 15.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01318/0.4243, allocations: 6.019 MB / 0.5603 GB, free: 9.305 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.4243, allocations: 48.56 kB / 0.5603 GB, free: 9.25 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009474/0.4253, allocations: 226.6 kB / 0.5606 GB, free: 9.027 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 3.697e-06/0.4253, allocations: 0 / 0.5606 GB, free: 9.027 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04442/0.4697, allocations: 11.85 MB / 0.5721 GB, free: 13.13 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.4697, allocations: 77.41 kB / 0.5722 GB, free: 13.05 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.4713, allocations: 1.114 MB / 0.5733 GB, free: 11.91 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002722/0.4716, allocations: 65.7 kB / 0.5733 GB, free: 11.84 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008665/0.4724, allocations: 1.187 MB / 0.5745 GB, free: 10.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008656/0.4733, allocations: 0.9102 MB / 0.5754 GB, free: 9.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009379/0.4742, allocations: 0.5574 MB / 0.5759 GB, free: 9.164 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4744, allocations: 305.1 kB / 0.5762 GB, free: 8.863 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/0.4762, allocations: 1.013 MB / 0.5772 GB, free: 7.848 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002576/0.4788, allocations: 1.901 MB / 0.5791 GB, free: 5.555 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004895/0.4837, allocations: 3.203 MB / 0.5822 GB, free: 1.93 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.771e-05/0.4837, allocations: 8 kB / 0.5822 GB, free: 1.922 MB / 478.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01044/0.4941, allocations: 4.107 MB / 0.5862 GB, free: 13.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.916e-05/0.4942, allocations: 16 kB / 0.5862 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.943e-05/0.4942, allocations: 36.3 kB / 0.5863 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006082/0.5003, allocations: 1.353 MB / 0.5876 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/0.5028, allocations: 0.6591 MB / 0.5882 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/0.5148, allocations: 7.833 MB / 0.5959 GB, free: 3.512 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/0.5171, allocations: 104.8 kB / 0.596 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003536/0.5174, allocations: 167.9 kB / 0.5961 GB, free: 3.246 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.001115/0.5186, allocations: 0.5164 MB / 0.5966 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004566/0.519, allocations: 194.7 kB / 0.5968 GB, free: 2.527 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01016/0.5292, allocations: 3.867 MB / 0.6006 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.572e-05/0.5292, allocations: 24 kB / 0.6006 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.5292, allocations: 8 kB / 0.6006 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.642e-05/0.5292, allocations: 11.95 kB / 0.6007 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0137/0.5429, allocations: 5.677 MB / 0.6062 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.543, allocations: 4 kB / 0.6062 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/0.5448, allocations: 435.4 kB / 0.6066 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005663/0.5505, allocations: 1.273 MB / 0.6079 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002485/0.5507, allocations: 103.9 kB / 0.608 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/0.561, allocations: 7.328 MB / 0.6151 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/0.561, allocations: 11.88 kB / 0.6151 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/0.5732, allocations: 5.012 MB / 0.62 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005722/0.5738, allocations: 174.7 kB / 0.6202 GB, free: 9.938 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006053/0.5744, allocations: 52 kB / 0.6202 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00229/0.5767, allocations: 68.16 kB / 0.6203 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007601/0.5774, allocations: 237.6 kB / 0.6205 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004388/0.5779, allocations: 111.9 kB / 0.6206 GB, free: 9.477 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001631/0.5795, allocations: 0.6656 MB / 0.6213 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5795, allocations: 0 / 0.6213 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006979/0.5865, allocations: 1.5 MB / 0.6227 GB, free: 7.305 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.004987/0.5914, allocations: 1.532 MB / 0.6242 GB, free: 5.758 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01135/0.6028, allocations: 3.262 MB / 0.6274 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.6028, allocations: 384 / 0.6274 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005909/0.6087, allocations: 1.836 MB / 0.6292 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003564/0.6123, allocations: 382.2 kB / 0.6296 GB, free: 176 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.6249, allocations: 4.816 MB / 0.6343 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.6262, allocations: 1.037 MB / 0.6353 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002013/0.6282, allocations: 0.4964 MB / 0.6358 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008709/0.6291, allocations: 349.4 kB / 0.6361 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of SimCode: time 8.72e-07/0.6291, allocations: 0 / 0.6361 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of Templates: time 0.08558/0.7146, allocations: 54.13 MB / 0.689 GB, free: 3.527 MB / 0.5762 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 ida -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.981813579099253] Failed to read output from testmodel.py, exit status != 0: 0.7236525419866666 0.887538326 0.518966687 Calling exit ...