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.001523/0.001523, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001678/0.001678, allocations: 219 kB / 22.25 MB, free: 5.121 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.368/1.368, allocations: 230.6 MB / 256 MB, free: 7.969 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.1281/0.1281, allocations: 23.85 MB / 336.3 MB, free: 11.17 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.001934/0.001934, allocations: 71.89 kB / 471.7 MB, free: 7.152 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.291, allocations: 59.85 MB / 0.5191 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009627/0.3006, allocations: 11.81 MB / 0.5306 GB, free: 1.383 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.044/0.3446, allocations: 33.97 MB / 0.5638 GB, free: 8.219 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002237/0.3468, allocations: 39.41 kB / 0.5638 GB, free: 8.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002374/0.3492, allocations: 0.7518 MB / 0.5645 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009238/0.3585, allocations: 2.812 MB / 0.5673 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01329/0.3717, allocations: 4.509 MB / 0.5717 GB, free: 2 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005781/0.3775, allocations: 3.42 MB / 0.575 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002462/0.38, allocations: 1.696 MB / 0.5767 GB, free: 14.72 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002661/0.3826, allocations: 1.681 MB / 0.5783 GB, free: 13.1 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003024/0.3857, allocations: 1.892 MB / 0.5802 GB, free: 11.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005324/0.3862, allocations: 324 kB / 0.5805 GB, free: 10.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01182/0.398, allocations: 3.775 MB / 0.5842 GB, free: 7.102 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009448/0.399, allocations: 0.7595 MB / 0.5849 GB, free: 6.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002276/0.4012, allocations: 1.575 MB / 0.5865 GB, free: 4.758 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01682/0.4181, allocations: 7.506 MB / 0.5938 GB, free: 13.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.4181, allocations: 0 / 0.5938 GB, free: 13.22 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4181, allocations: 0 / 0.5938 GB, free: 13.22 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001271/0.4182, allocations: 0 / 0.5938 GB, free: 13.22 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.008081/0.4263, allocations: 3.719 MB / 0.5974 GB, free: 9.453 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.4263, allocations: 12.02 kB / 0.5974 GB, free: 9.441 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002537/0.4289, allocations: 0.627 MB / 0.598 GB, free: 8.812 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002751/0.4316, allocations: 1.45 MB / 0.5995 GB, free: 7.328 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002701/0.4319, allocations: 304.4 kB / 0.5997 GB, free: 7.004 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004344/0.4323, allocations: 271.9 kB / 0.6 GB, free: 6.738 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005066/0.4374, allocations: 3.132 MB / 0.6031 GB, free: 3.535 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.4e-05/0.4374, allocations: 4 kB / 0.6031 GB, free: 3.531 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002536/0.4377, allocations: 104 kB / 0.6032 GB, free: 3.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.246e-05/0.4377, allocations: 67.94 kB / 0.6032 GB, free: 3.363 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006161/0.4439, allocations: 3.858 MB / 0.607 GB, free: 15.49 MB / 462.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.01654/0.4604, allocations: 9.874 MB / 0.6166 GB, free: 5.219 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004699/0.4651, allocations: 2.812 MB / 0.6194 GB, free: 2.414 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002002/0.4671, allocations: 1.231 MB / 0.6206 GB, free: 1.176 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01368/0.4808, allocations: 6.356 MB / 0.6268 GB, free: 10.78 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.4809, allocations: 56.5 kB / 0.6269 GB, free: 10.71 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009427/0.4818, allocations: 242.5 kB / 0.6271 GB, free: 10.48 MB / 478.1 MB Notification: Performance of pre-optimization done (n=177): time 3.266e-06/0.4818, allocations: 0 / 0.6271 GB, free: 10.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=251): time 0.04473/0.5265, allocations: 11.83 MB / 0.6386 GB, free: 14.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.5266, allocations: 81.34 kB / 0.6387 GB, free: 14.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.5282, allocations: 1.172 MB / 0.6399 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.5284, allocations: 65.7 kB / 0.6399 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009278/0.5293, allocations: 1.196 MB / 0.6411 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008285/0.5301, allocations: 0.8986 MB / 0.642 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008652/0.531, allocations: 0.5613 MB / 0.6425 GB, free: 10.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5311, allocations: 309.1 kB / 0.6428 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001876/0.533, allocations: 1.006 MB / 0.6438 GB, free: 9.254 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002676/0.5357, allocations: 1.905 MB / 0.6457 GB, free: 6.957 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004954/0.5406, allocations: 3.196 MB / 0.6488 GB, free: 3.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.471e-05/0.5406, allocations: 8 kB / 0.6488 GB, free: 3.332 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01053/0.5512, allocations: 4.122 MB / 0.6528 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.5512, allocations: 16 kB / 0.6528 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.016e-05/0.5512, allocations: 28 kB / 0.6528 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006177/0.5574, allocations: 1.369 MB / 0.6542 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/0.5598, allocations: 0.6514 MB / 0.6548 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.012/0.5718, allocations: 7.977 MB / 0.6626 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002067/0.5739, allocations: 99.98 kB / 0.6627 GB, free: 4.609 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002864/0.5742, allocations: 167.9 kB / 0.6629 GB, free: 4.445 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.001041/0.5752, allocations: 0.5169 MB / 0.6634 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/0.5756, allocations: 210.6 kB / 0.6636 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/0.5859, allocations: 3.867 MB / 0.6673 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/0.5859, allocations: 24 kB / 0.6674 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.586, allocations: 4 kB / 0.6674 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-05/0.586, allocations: 11.95 kB / 0.6674 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01381/0.5998, allocations: 6.307 MB / 0.6735 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.5998, allocations: 4 kB / 0.6735 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001827/0.6016, allocations: 439.8 kB / 0.674 GB, free: 8.848 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005695/0.6073, allocations: 1.264 MB / 0.6752 GB, free: 7.566 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000237/0.6076, allocations: 95.94 kB / 0.6753 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.6184, allocations: 7.489 MB / 0.6826 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.6184, allocations: 7.938 kB / 0.6826 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/0.6301, allocations: 5.021 MB / 0.6875 GB, free: 10.44 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004394/0.6305, allocations: 186.5 kB / 0.6877 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003093/0.6308, allocations: 56 kB / 0.6877 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.632, allocations: 59.98 kB / 0.6878 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00047/0.6325, allocations: 241.6 kB / 0.688 GB, free: 9.906 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002184/0.6327, allocations: 111.9 kB / 0.6881 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001027/0.6338, allocations: 0.7311 MB / 0.6889 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.6338, allocations: 0 / 0.6889 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003724/0.6375, allocations: 1.496 MB / 0.6903 GB, free: 7.566 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.002609/0.6401, allocations: 1.549 MB / 0.6918 GB, free: 6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006546/0.6466, allocations: 3.251 MB / 0.695 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.6466, allocations: 0 / 0.695 GB, free: 2.68 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003385/0.65, allocations: 1.836 MB / 0.6968 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.6517, allocations: 393.8 kB / 0.6972 GB, free: 420 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008256/0.66, allocations: 4.843 MB / 0.7019 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.6613, allocations: 1.599 MB / 0.7035 GB, free: 9.855 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001745/0.663, allocations: 0.5007 MB / 0.704 GB, free: 9.352 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000803/0.6638, allocations: 348.1 kB / 0.7043 GB, free: 9.02 MB / 0.545 GB Notification: Performance of SimCode: time 8.92e-07/0.6638, allocations: 0 / 0.7043 GB, free: 9.02 MB / 0.545 GB Notification: Performance of Templates: time 0.2678/0.9316, allocations: 58.16 MB / 0.7611 GB, free: 165.9 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: 7.152819528011605] Failed to read output from testmodel.py, exit status != 0: 0.9396029119379818 0.948354624 0.527993347 Calling exit ...