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.001365/0.001365, allocations: 116.8 kB / 17.17 MB, free: 5.977 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.001383/0.001383, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.493/1.493, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.1482/0.1482, allocations: 23.86 MB / 333.4 MB, free: 1.219 MB / 254.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: "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="cs",version="2.0",platforms={"static"}) [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.001991/0.001991, allocations: 73.66 kB / 466.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09739, allocations: 59.83 MB / 0.5142 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01348/0.1109, allocations: 11.74 MB / 0.5256 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04222/0.1531, allocations: 33.91 MB / 0.5588 GB, free: 15.12 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00157/0.1547, allocations: 39.69 kB / 0.5588 GB, free: 15.09 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002257/0.1569, allocations: 0.7484 MB / 0.5595 GB, free: 14.33 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007884/0.1648, allocations: 2.786 MB / 0.5623 GB, free: 11.53 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01227/0.1771, allocations: 4.454 MB / 0.5666 GB, free: 7.047 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005655/0.1827, allocations: 3.418 MB / 0.5699 GB, free: 3.613 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00299/0.1857, allocations: 1.723 MB / 0.5716 GB, free: 1.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00316/0.1889, allocations: 1.687 MB / 0.5733 GB, free: 152 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003725/0.1926, allocations: 1.896 MB / 0.5751 GB, free: 14.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00108/0.1937, allocations: 324 kB / 0.5754 GB, free: 13.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01104/0.2047, allocations: 3.768 MB / 0.5791 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.2059, allocations: 0.7556 MB / 0.5798 GB, free: 9.398 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002073/0.2079, allocations: 1.591 MB / 0.5814 GB, free: 7.801 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01629/0.2242, allocations: 7.51 MB / 0.5887 GB, free: 268 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.2242, allocations: 0 / 0.5887 GB, free: 268 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2242, allocations: 0 / 0.5887 GB, free: 268 kB / 446.1 MB Notification: Performance of Transformations before backend: time 9.13e-05/0.2243, allocations: 0 / 0.5887 GB, free: 268 kB / 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.239/0.4633, allocations: 3.776 MB / 0.5924 GB, free: 65.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.4634, allocations: 10.19 kB / 0.5924 GB, free: 65.72 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001562/0.4635, allocations: 69.12 kB / 0.5925 GB, free: 65.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001201/0.4647, allocations: 362.8 kB / 0.5928 GB, free: 65.66 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004074/0.4688, allocations: 0.6343 MB / 0.5935 GB, free: 65.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004111/0.4729, allocations: 1.519 MB / 0.5949 GB, free: 64.69 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/0.4732, allocations: 255.3 kB / 0.5952 GB, free: 64.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/0.4743, allocations: 270 kB / 0.5954 GB, free: 64.45 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008186/0.4825, allocations: 3.134 MB / 0.5985 GB, free: 63.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.771e-05/0.4826, allocations: 4.562 kB / 0.5985 GB, free: 63.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007008/0.4833, allocations: 105.8 kB / 0.5986 GB, free: 63.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.161e-05/0.4833, allocations: 64.06 kB / 0.5987 GB, free: 63.14 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008563/0.4919, allocations: 3.853 MB / 0.6024 GB, free: 62.02 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.01951/0.5114, allocations: 9.965 MB / 0.6122 GB, free: 55.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004569/0.516, allocations: 3.325 MB / 0.6154 GB, free: 53.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001928/0.5179, allocations: 1.234 MB / 0.6166 GB, free: 52.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01362/0.5315, allocations: 10.92 MB / 0.6273 GB, free: 43.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.5316, allocations: 56.23 kB / 0.6273 GB, free: 43.36 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001069/0.5326, allocations: 235.1 kB / 0.6276 GB, free: 43.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.971e-06/0.5326, allocations: 0 / 0.6276 GB, free: 43.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=251): time 0.04314/0.5758, allocations: 12.31 MB / 0.6396 GB, free: 31.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.5758, allocations: 77.41 kB / 0.6397 GB, free: 31.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.5771, allocations: 1.168 MB / 0.6408 GB, free: 30.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002803/0.5773, allocations: 69.7 kB / 0.6409 GB, free: 29.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004775/0.5778, allocations: 1.198 MB / 0.642 GB, free: 28.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006923/0.5785, allocations: 0.8966 MB / 0.6429 GB, free: 27.89 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008936/0.5794, allocations: 0.5652 MB / 0.6435 GB, free: 27.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.668e-05/0.5795, allocations: 305.1 kB / 0.6438 GB, free: 27.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/0.5811, allocations: 1.009 MB / 0.6447 GB, free: 26 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001987/0.5831, allocations: 1.901 MB / 0.6466 GB, free: 23.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003727/0.5868, allocations: 3.205 MB / 0.6497 GB, free: 20.09 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.758e-05/0.5869, allocations: 8 kB / 0.6497 GB, free: 20.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009143/0.596, allocations: 4.114 MB / 0.6537 GB, free: 15.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.235e-05/0.596, allocations: 22.44 kB / 0.6538 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/0.5961, allocations: 28 kB / 0.6538 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005794/0.6019, allocations: 1.356 MB / 0.6551 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002272/0.6041, allocations: 0.6553 MB / 0.6558 GB, free: 13.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009461/0.6136, allocations: 8.276 MB / 0.6638 GB, free: 5.117 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/0.6159, allocations: 104 kB / 0.6639 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004334/0.6164, allocations: 167.9 kB / 0.6641 GB, free: 4.852 MB / 446.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.001105/0.6175, allocations: 0.5218 MB / 0.6646 GB, free: 4.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006061/0.6181, allocations: 202.7 kB / 0.6648 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009666/0.6277, allocations: 3.863 MB / 0.6686 GB, free: 188 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.6278, allocations: 24 kB / 0.6686 GB, free: 164 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/0.6278, allocations: 4 kB / 0.6686 GB, free: 160 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/0.6278, allocations: 11.95 kB / 0.6686 GB, free: 148 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/0.6437, allocations: 6.317 MB / 0.6748 GB, free: 9.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/0.6437, allocations: 4 kB / 0.6748 GB, free: 9.727 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002079/0.6458, allocations: 439.7 kB / 0.6752 GB, free: 9.297 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006046/0.6518, allocations: 1.274 MB / 0.6765 GB, free: 8.012 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004027/0.6522, allocations: 95.94 kB / 0.6765 GB, free: 7.918 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/0.6632, allocations: 7.79 MB / 0.6842 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.176e-06/0.6632, allocations: 7.984 kB / 0.6842 GB, free: 15.69 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01252/0.6757, allocations: 5.024 MB / 0.6891 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006734/0.6764, allocations: 255.7 kB / 0.6893 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003595/0.6767, allocations: 56 kB / 0.6894 GB, free: 10.19 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.6781, allocations: 55.98 kB / 0.6894 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005364/0.6786, allocations: 229.7 kB / 0.6896 GB, free: 9.906 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002284/0.6788, allocations: 111.9 kB / 0.6897 GB, free: 9.797 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00103/0.6799, allocations: 0.7311 MB / 0.6905 GB, free: 9.066 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6799, allocations: 192 / 0.6905 GB, free: 9.066 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004191/0.684, allocations: 1.5 MB / 0.6919 GB, free: 7.562 MB / 478.1 MB 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.01574/0.6998, allocations: 7.038 MB / 0.6988 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007407/0.7072, allocations: 3.333 MB / 0.702 GB, free: 13.13 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.7072, allocations: 0 / 0.702 GB, free: 13.13 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00386/0.7111, allocations: 1.912 MB / 0.7039 GB, free: 11.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002058/0.7131, allocations: 389.7 kB / 0.7043 GB, free: 10.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04154/0.7547, allocations: 20.19 MB / 0.724 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/0.7561, allocations: 1.603 MB / 0.7256 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001941/0.758, allocations: 0.5061 MB / 0.7261 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001774/0.7598, allocations: 1.191 MB / 0.7272 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of SimCode: time 9.01e-07/0.7598, allocations: 0 / 0.7272 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1448/0.9046, allocations: 74.87 MB / 0.8003 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.45/27.36, allocations: 12 kB / 0.8004 GB, free: 7.5 MB / 0.5762 GB " [Timeout remaining time 632] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 30.9485467710183] Failed to read output from testmodel.py, exit status != 0: 27.552684940048493 27.787262421 27.559920247 Calling exit ...