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.001655/0.001655, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002198/0.002198, allocations: 222.5 kB / 22.25 MB, free: 5.258 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.555/1.555, allocations: 230.6 MB / 256 MB, free: 7.805 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.155/0.155, allocations: 23.89 MB / 336.3 MB, free: 11.07 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.002065/0.002065, allocations: 63.91 kB / 471.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3589, allocations: 59.87 MB / 0.519 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01078/0.3697, allocations: 10.24 MB / 0.529 GB, free: 2.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04188/0.4115, allocations: 29.73 MB / 0.5581 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002582/0.4141, allocations: 38.72 kB / 0.5581 GB, free: 14.27 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002432/0.4165, allocations: 0.6788 MB / 0.5588 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009811/0.4264, allocations: 2.76 MB / 0.5615 GB, free: 11.65 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01429/0.4406, allocations: 4.506 MB / 0.5659 GB, free: 8.203 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00657/0.4472, allocations: 3.418 MB / 0.5692 GB, free: 6.172 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002929/0.4501, allocations: 1.708 MB / 0.5709 GB, free: 4.527 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002924/0.4531, allocations: 1.687 MB / 0.5725 GB, free: 2.836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003069/0.4561, allocations: 1.888 MB / 0.5744 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005857/0.4567, allocations: 324 kB / 0.5747 GB, free: 0.625 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01258/0.4693, allocations: 3.639 MB / 0.5782 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001566/0.4709, allocations: 0.7556 MB / 0.579 GB, free: 12.22 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003973/0.4748, allocations: 1.346 MB / 0.5803 GB, free: 10.87 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02136/0.4962, allocations: 7.479 MB / 0.5876 GB, free: 3.363 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.4962, allocations: 0 / 0.5876 GB, free: 3.363 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4962, allocations: 0 / 0.5876 GB, free: 3.363 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001769/0.4964, allocations: 0 / 0.5876 GB, free: 3.363 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.009182/0.5056, allocations: 3.705 MB / 0.5912 GB, free: 15.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.5056, allocations: 8.031 kB / 0.5912 GB, free: 15.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002829/0.5084, allocations: 0.6309 MB / 0.5918 GB, free: 14.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003252/0.5117, allocations: 1.446 MB / 0.5932 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003136/0.512, allocations: 312.4 kB / 0.5935 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005614/0.5126, allocations: 271.9 kB / 0.5938 GB, free: 12.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005896/0.5185, allocations: 3.157 MB / 0.5969 GB, free: 9.652 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-05/0.5185, allocations: 3.938 kB / 0.5969 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002593/0.5188, allocations: 104 kB / 0.597 GB, free: 9.547 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.514e-05/0.5188, allocations: 64 kB / 0.597 GB, free: 9.484 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006978/0.5258, allocations: 3.815 MB / 0.6008 GB, free: 5.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.01818/0.544, allocations: 7.885 MB / 0.6085 GB, free: 13.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005084/0.5491, allocations: 2.779 MB / 0.6112 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002009/0.5511, allocations: 1.231 MB / 0.6124 GB, free: 9.613 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/0.5656, allocations: 6.019 MB / 0.6182 GB, free: 3.555 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.624e-05/0.5656, allocations: 56.56 kB / 0.6183 GB, free: 3.492 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001052/0.5667, allocations: 226.6 kB / 0.6185 GB, free: 3.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5e-06/0.5667, allocations: 0 / 0.6185 GB, free: 3.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04621/0.6129, allocations: 11.84 MB / 0.6301 GB, free: 7.379 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.748e-05/0.613, allocations: 81.39 kB / 0.6302 GB, free: 7.289 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.6147, allocations: 1.111 MB / 0.6312 GB, free: 6.16 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002966/0.615, allocations: 65.7 kB / 0.6313 GB, free: 6.09 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009722/0.616, allocations: 1.184 MB / 0.6325 GB, free: 4.895 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001035/0.617, allocations: 0.9103 MB / 0.6334 GB, free: 3.977 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/0.6181, allocations: 0.5652 MB / 0.6339 GB, free: 3.402 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.6182, allocations: 301.1 kB / 0.6342 GB, free: 3.105 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.6202, allocations: 1.006 MB / 0.6352 GB, free: 2.098 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00288/0.6231, allocations: 1.913 MB / 0.637 GB, free: 15.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005309/0.6284, allocations: 3.192 MB / 0.6402 GB, free: 12.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.271e-05/0.6284, allocations: 8 kB / 0.6402 GB, free: 12.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01156/0.64, allocations: 4.111 MB / 0.6442 GB, free: 7.996 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.793e-05/0.64, allocations: 20.03 kB / 0.6442 GB, free: 7.977 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.364e-05/0.6401, allocations: 28 kB / 0.6442 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006043/0.6461, allocations: 1.356 MB / 0.6456 GB, free: 6.578 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002688/0.6488, allocations: 0.6553 MB / 0.6462 GB, free: 5.922 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01263/0.6614, allocations: 7.838 MB / 0.6538 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002249/0.6637, allocations: 107.9 kB / 0.6539 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005607/0.6643, allocations: 167.9 kB / 0.6541 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.001462/0.6657, allocations: 0.5163 MB / 0.6546 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006892/0.6664, allocations: 194.7 kB / 0.6548 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/0.6777, allocations: 3.858 MB / 0.6586 GB, free: 8.82 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.22e-05/0.6777, allocations: 32 kB / 0.6586 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.777e-05/0.6777, allocations: 4 kB / 0.6586 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.685e-05/0.6778, allocations: 15.94 kB / 0.6586 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/0.6921, allocations: 5.683 MB / 0.6642 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.6922, allocations: 7.938 kB / 0.6642 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/0.6941, allocations: 435.8 kB / 0.6646 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005784/0.6999, allocations: 1.264 MB / 0.6658 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000367/0.7003, allocations: 95.94 kB / 0.6659 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/0.7117, allocations: 7.337 MB / 0.6731 GB, free: 9.496 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.894e-06/0.7117, allocations: 7.938 kB / 0.6731 GB, free: 9.488 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01326/0.725, allocations: 5.016 MB / 0.678 GB, free: 4.316 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005913/0.7256, allocations: 170.7 kB / 0.6781 GB, free: 4.148 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004588/0.726, allocations: 52 kB / 0.6782 GB, free: 4.098 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/0.7275, allocations: 59.98 kB / 0.6783 GB, free: 4.039 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005379/0.728, allocations: 237.6 kB / 0.6785 GB, free: 3.805 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002532/0.7282, allocations: 119.9 kB / 0.6786 GB, free: 3.688 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.0009897/0.7292, allocations: 0.6578 MB / 0.6792 GB, free: 3.027 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1e-07/0.7292, allocations: 0 / 0.6792 GB, free: 3.027 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.004422/0.7337, allocations: 1.5 MB / 0.6807 GB, free: 1.523 MB / 0.5138 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.003133/0.7368, allocations: 1.542 MB / 0.6822 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007233/0.744, allocations: 3.251 MB / 0.6854 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.744, allocations: 4.062 kB / 0.6854 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003939/0.748, allocations: 1.828 MB / 0.6872 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/0.75, allocations: 401.4 kB / 0.6876 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009189/0.7592, allocations: 4.833 MB / 0.6923 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.7604, allocations: 1.033 MB / 0.6933 GB, free: 4.383 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002047/0.7625, allocations: 0.4925 MB / 0.6938 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008306/0.7633, allocations: 348.5 kB / 0.6941 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of SimCode: time 1.212e-06/0.7633, allocations: 0 / 0.6941 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of Templates: time 0.3321/1.095, allocations: 58.37 MB / 0.7511 GB, free: 172 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.917597449850291] Failed to read output from testmodel.py, exit status != 0: 1.1054959022440016 1.115856088 0.617034606 Calling exit ...