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.001361/0.001361, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.00148/0.00148, allocations: 207.2 kB / 22.99 MB, free: 4.957 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.511/1.511, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1363/0.1363, allocations: 23.88 MB / 337.1 MB, free: 10.97 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.002057/0.002057, allocations: 67.89 kB / 472.4 MB, free: 7.008 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3275, allocations: 59.86 MB / 0.5198 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01088/0.3384, allocations: 10.25 MB / 0.5298 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0425/0.3809, allocations: 29.73 MB / 0.5588 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002699/0.3836, allocations: 41.91 kB / 0.5588 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.3859, allocations: 0.6767 MB / 0.5595 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01006/0.396, allocations: 2.755 MB / 0.5622 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01451/0.4105, allocations: 4.514 MB / 0.5666 GB, free: 8.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005757/0.4163, allocations: 3.421 MB / 0.5699 GB, free: 6.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002956/0.4192, allocations: 1.71 MB / 0.5716 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003114/0.4223, allocations: 1.687 MB / 0.5733 GB, free: 2.801 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002975/0.4253, allocations: 1.888 MB / 0.5751 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005682/0.4259, allocations: 327.9 kB / 0.5754 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01047/0.4363, allocations: 3.631 MB / 0.579 GB, free: 12.95 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009669/0.4373, allocations: 0.7556 MB / 0.5797 GB, free: 12.19 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001943/0.4392, allocations: 1.346 MB / 0.581 GB, free: 10.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01788/0.4571, allocations: 7.486 MB / 0.5883 GB, free: 3.324 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.4571, allocations: 4 kB / 0.5883 GB, free: 3.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4571, allocations: 0 / 0.5883 GB, free: 3.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.623e-05/0.4572, allocations: 0 / 0.5883 GB, free: 3.32 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.008245/0.4655, allocations: 3.693 MB / 0.5919 GB, free: 15.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.4655, allocations: 12.03 kB / 0.5919 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002974/0.4685, allocations: 0.627 MB / 0.5926 GB, free: 14.93 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003088/0.4716, allocations: 1.45 MB / 0.594 GB, free: 13.45 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002948/0.4719, allocations: 312.4 kB / 0.5943 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005139/0.4724, allocations: 271.8 kB / 0.5945 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005941/0.4783, allocations: 3.153 MB / 0.5976 GB, free: 9.621 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.494e-05/0.4784, allocations: 3.938 kB / 0.5976 GB, free: 9.617 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002924/0.4787, allocations: 108 kB / 0.5977 GB, free: 9.512 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.643e-05/0.4787, allocations: 64 kB / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006774/0.4855, allocations: 3.811 MB / 0.6015 GB, free: 5.625 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.01704/0.5026, allocations: 7.889 MB / 0.6092 GB, free: 13.59 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005092/0.5076, allocations: 2.78 MB / 0.6119 GB, free: 10.82 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002163/0.5098, allocations: 1.227 MB / 0.6131 GB, free: 9.582 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0149/0.5247, allocations: 6.021 MB / 0.619 GB, free: 3.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.5248, allocations: 48.56 kB / 0.619 GB, free: 3.465 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001063/0.5258, allocations: 222.6 kB / 0.6193 GB, free: 3.246 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.809e-06/0.5258, allocations: 4 kB / 0.6193 GB, free: 3.242 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.05105/0.5769, allocations: 11.84 MB / 0.6308 GB, free: 7.348 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.433e-05/0.5769, allocations: 77.41 kB / 0.6309 GB, free: 7.262 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.5785, allocations: 1.114 MB / 0.632 GB, free: 6.129 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003934/0.5789, allocations: 65.7 kB / 0.632 GB, free: 6.059 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009485/0.5798, allocations: 1.188 MB / 0.6332 GB, free: 4.859 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001016/0.5808, allocations: 0.9025 MB / 0.6341 GB, free: 3.949 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009212/0.5818, allocations: 0.5652 MB / 0.6346 GB, free: 3.375 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5819, allocations: 301.1 kB / 0.6349 GB, free: 3.078 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.5838, allocations: 1.006 MB / 0.6359 GB, free: 2.07 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002799/0.5866, allocations: 1.917 MB / 0.6378 GB, free: 15.76 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005181/0.5918, allocations: 3.192 MB / 0.6409 GB, free: 12.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/0.5918, allocations: 8 kB / 0.6409 GB, free: 12.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01148/0.6033, allocations: 4.111 MB / 0.6449 GB, free: 7.965 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.089e-05/0.6033, allocations: 16 kB / 0.6449 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.104e-05/0.6034, allocations: 28 kB / 0.645 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007052/0.6104, allocations: 1.361 MB / 0.6463 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/0.6131, allocations: 0.6514 MB / 0.6469 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01274/0.6259, allocations: 7.847 MB / 0.6546 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002303/0.6282, allocations: 99.92 kB / 0.6547 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003641/0.6285, allocations: 171.9 kB / 0.6548 GB, free: 13.44 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.001105/0.6296, allocations: 0.511 MB / 0.6553 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005075/0.6301, allocations: 198.7 kB / 0.6555 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/0.6412, allocations: 3.862 MB / 0.6593 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.56e-05/0.6412, allocations: 24 kB / 0.6593 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.6412, allocations: 4 kB / 0.6593 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.593e-05/0.6412, allocations: 15.94 kB / 0.6594 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01468/0.6559, allocations: 5.679 MB / 0.6649 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.6559, allocations: 4.344 kB / 0.6649 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00212/0.658, allocations: 439.4 kB / 0.6653 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006543/0.6646, allocations: 1.264 MB / 0.6666 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003456/0.6649, allocations: 99.94 kB / 0.6666 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/0.6759, allocations: 7.339 MB / 0.6738 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.6759, allocations: 8.031 kB / 0.6738 GB, free: 9.453 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01271/0.6886, allocations: 5.02 MB / 0.6787 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004721/0.689, allocations: 174.7 kB / 0.6789 GB, free: 4.105 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003714/0.6894, allocations: 52 kB / 0.6789 GB, free: 4.055 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.6909, allocations: 59.98 kB / 0.679 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005241/0.6915, allocations: 233.6 kB / 0.6792 GB, free: 3.766 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002627/0.6917, allocations: 115.9 kB / 0.6793 GB, free: 3.652 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000964/0.6927, allocations: 0.6617 MB / 0.68 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6927, allocations: 0 / 0.68 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004309/0.697, allocations: 1.496 MB / 0.6814 GB, free: 1.488 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.003186/0.7002, allocations: 1.538 MB / 0.6829 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007292/0.7075, allocations: 3.253 MB / 0.6861 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.7075, allocations: 6 kB / 0.6861 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003913/0.7114, allocations: 1.828 MB / 0.6879 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.7134, allocations: 396 kB / 0.6883 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009073/0.7224, allocations: 4.826 MB / 0.693 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.7236, allocations: 1.033 MB / 0.694 GB, free: 4.363 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002015/0.7256, allocations: 0.5002 MB / 0.6945 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008737/0.7265, allocations: 347.2 kB / 0.6948 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/0.7265, allocations: 7.938 kB / 0.6948 GB, free: 3.52 MB / 0.5294 GB Notification: Performance of Templates: time 0.2831/1.01, allocations: 58.37 MB / 0.7518 GB, free: 172.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 -s gbode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] Could not SIGINT process: 2880071. Could not SIGINT process: 2880072. Could not SIGINT process: 2880075. Could not SIGINT process: 2879298. [Calling os._exit(0), Time elapsed: 487.49353460301063] Failed to read output from testmodel.py, exit status != 0: 1.0185407829994801 1.02754385 0.5679240139999999 Calling exit ...