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.001273/0.001273, 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.001416/0.001416, allocations: 207 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.426/1.426, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.1409/0.1409, allocations: 23.88 MB / 337.1 MB, free: 10.99 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.002035/0.002035, allocations: 75.88 kB / 472.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3051, 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.01041/0.3155, allocations: 10.24 MB / 0.5298 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03984/0.3553, allocations: 29.73 MB / 0.5588 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002368/0.3577, allocations: 38.19 kB / 0.5588 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.3601, allocations: 0.6866 MB / 0.5595 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009207/0.3693, allocations: 2.756 MB / 0.5622 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0137/0.383, allocations: 4.509 MB / 0.5666 GB, free: 8.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007393/0.3904, allocations: 3.418 MB / 0.5699 GB, free: 6.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002963/0.3934, allocations: 1.702 MB / 0.5716 GB, free: 4.523 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003142/0.3965, allocations: 1.695 MB / 0.5733 GB, free: 2.824 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003353/0.3999, allocations: 1.892 MB / 0.5751 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005561/0.4004, allocations: 324 kB / 0.5754 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01223/0.4126, allocations: 3.627 MB / 0.579 GB, free: 12.97 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.4137, allocations: 0.7594 MB / 0.5797 GB, free: 12.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.4158, allocations: 1.346 MB / 0.581 GB, free: 10.86 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01795/0.4337, allocations: 7.486 MB / 0.5883 GB, free: 3.348 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4338, allocations: 0 / 0.5883 GB, free: 3.348 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4338, allocations: 0 / 0.5883 GB, free: 3.348 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.471e-05/0.4338, allocations: 0 / 0.5883 GB, free: 3.348 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.007858/0.4417, allocations: 3.701 MB / 0.5919 GB, free: 15.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.4417, allocations: 12.03 kB / 0.5919 GB, free: 15.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002763/0.4445, allocations: 0.627 MB / 0.5926 GB, free: 14.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002995/0.4475, allocations: 1.442 MB / 0.594 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002833/0.4478, allocations: 312.4 kB / 0.5943 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004859/0.4482, allocations: 275.9 kB / 0.5945 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005721/0.454, allocations: 3.153 MB / 0.5976 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.007e-05/0.454, allocations: 0 / 0.5976 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002683/0.4543, allocations: 108 kB / 0.5977 GB, free: 9.539 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.669e-05/0.4543, allocations: 64 kB / 0.5978 GB, free: 9.477 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006389/0.4607, allocations: 3.815 MB / 0.6015 GB, free: 5.648 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.0169/0.4776, allocations: 7.897 MB / 0.6092 GB, free: 13.61 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00481/0.4824, allocations: 2.769 MB / 0.6119 GB, free: 10.84 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002039/0.4845, allocations: 1.231 MB / 0.6131 GB, free: 9.605 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01523/0.4997, allocations: 6.017 MB / 0.619 GB, free: 3.547 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.158e-05/0.4998, allocations: 52.56 kB / 0.619 GB, free: 3.488 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001086/0.5009, allocations: 218.6 kB / 0.6192 GB, free: 3.273 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 6.683e-06/0.5009, allocations: 7.984 kB / 0.6193 GB, free: 3.266 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04885/0.5497, allocations: 11.84 MB / 0.6308 GB, free: 7.371 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.679e-05/0.5498, allocations: 77.41 kB / 0.6309 GB, free: 7.285 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/0.5513, allocations: 1.111 MB / 0.632 GB, free: 6.156 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002789/0.5516, allocations: 65.7 kB / 0.632 GB, free: 6.086 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008916/0.5525, allocations: 1.188 MB / 0.6332 GB, free: 4.887 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009145/0.5534, allocations: 0.9025 MB / 0.6341 GB, free: 3.977 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008886/0.5543, allocations: 0.5691 MB / 0.6346 GB, free: 3.398 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.5544, allocations: 305.1 kB / 0.6349 GB, free: 3.098 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001837/0.5563, allocations: 1.009 MB / 0.6359 GB, free: 2.086 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002712/0.559, allocations: 1.905 MB / 0.6378 GB, free: 15.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004926/0.5639, allocations: 3.196 MB / 0.6409 GB, free: 12.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.123e-05/0.5639, allocations: 8 kB / 0.6409 GB, free: 12.16 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01088/0.5748, allocations: 4.107 MB / 0.6449 GB, free: 7.992 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.5749, allocations: 16.38 kB / 0.6449 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.576e-05/0.5749, allocations: 32 kB / 0.645 GB, free: 7.945 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00685/0.5817, allocations: 1.364 MB / 0.6463 GB, free: 6.566 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002716/0.5845, allocations: 0.6553 MB / 0.6469 GB, free: 5.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/0.5968, allocations: 7.831 MB / 0.6546 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00267/0.5994, allocations: 103.9 kB / 0.6547 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003839/0.5998, allocations: 167.9 kB / 0.6548 GB, free: 13.47 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.001251/0.6011, allocations: 0.5145 MB / 0.6553 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005872/0.6016, allocations: 194.7 kB / 0.6555 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/0.6122, allocations: 3.87 MB / 0.6593 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.481e-05/0.6122, allocations: 28 kB / 0.6593 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.148e-06/0.6123, allocations: 4 kB / 0.6593 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.773e-05/0.6123, allocations: 11.95 kB / 0.6593 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01409/0.6264, allocations: 5.679 MB / 0.6649 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/0.6264, allocations: 4 kB / 0.6649 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/0.6284, allocations: 435.7 kB / 0.6653 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006298/0.6347, allocations: 1.268 MB / 0.6666 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004486/0.6352, allocations: 95.94 kB / 0.6666 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01077/0.6459, allocations: 7.339 MB / 0.6738 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.6459, allocations: 7.938 kB / 0.6738 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/0.6586, allocations: 5.02 MB / 0.6787 GB, free: 4.309 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005068/0.6591, allocations: 170.7 kB / 0.6789 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/0.6595, allocations: 52.28 kB / 0.6789 GB, free: 4.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.6608, allocations: 63.92 kB / 0.679 GB, free: 4.027 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005218/0.6614, allocations: 241.5 kB / 0.6792 GB, free: 3.789 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002501/0.6616, allocations: 111.9 kB / 0.6793 GB, free: 3.68 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009971/0.6626, allocations: 0.6617 MB / 0.68 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6626, allocations: 0 / 0.68 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004374/0.667, allocations: 1.5 MB / 0.6814 GB, free: 1.512 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.003121/0.6701, allocations: 1.541 MB / 0.6829 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007058/0.6772, allocations: 3.255 MB / 0.6861 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.6772, allocations: 4.25 kB / 0.6861 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003846/0.681, allocations: 1.832 MB / 0.6879 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.683, allocations: 384.6 kB / 0.6883 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00919/0.6922, allocations: 4.839 MB / 0.693 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.6934, allocations: 1.029 MB / 0.694 GB, free: 4.387 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001942/0.6953, allocations: 0.4964 MB / 0.6945 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008364/0.6961, allocations: 347.6 kB / 0.6948 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of SimCode: time 1.182e-06/0.6961, allocations: 0 / 0.6948 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of Templates: time 0.2895/0.9856, 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 cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.3980122479988495] Failed to read output from testmodel.py, exit status != 0: 0.9949899329949403 1.004045145 0.568008431 Calling exit ...