Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001299/0.001299, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001391/0.001391, allocations: 220.3 kB / 22.25 MB, free: 5.102 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.389/1.389, allocations: 230.6 MB / 256 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1336/0.1336, allocations: 23.92 MB / 336.4 MB, free: 10.92 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery",fmuType="me",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.002829/0.002829, allocations: 67.91 kB / 471.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3109, allocations: 59.88 MB / 0.5186 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009426/0.3203, allocations: 10.25 MB / 0.5286 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03904/0.3593, allocations: 29.73 MB / 0.5577 GB, free: 13.99 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0022/0.3615, allocations: 34.62 kB / 0.5577 GB, free: 13.98 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.364, allocations: 0.6879 MB / 0.5584 GB, free: 13.44 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009728/0.3737, allocations: 2.753 MB / 0.561 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01317/0.3869, allocations: 4.509 MB / 0.5655 GB, free: 7.902 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005322/0.3922, allocations: 3.417 MB / 0.5688 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002516/0.3947, allocations: 1.707 MB / 0.5705 GB, free: 4.371 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0025/0.3972, allocations: 1.687 MB / 0.5721 GB, free: 2.68 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.4002, allocations: 1.892 MB / 0.574 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00055/0.4007, allocations: 324 kB / 0.5743 GB, free: 476 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01257/0.4133, allocations: 3.635 MB / 0.5778 GB, free: 12.82 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00134/0.4146, allocations: 0.7594 MB / 0.5786 GB, free: 12.06 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002263/0.4169, allocations: 1.335 MB / 0.5799 GB, free: 10.72 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01825/0.4351, allocations: 7.482 MB / 0.5872 GB, free: 3.211 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.4351, allocations: 0 / 0.5872 GB, free: 3.211 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4351, allocations: 0 / 0.5872 GB, free: 3.211 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001345/0.4353, allocations: 0 / 0.5872 GB, free: 3.211 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.008543/0.4438, allocations: 3.716 MB / 0.5908 GB, free: 15.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.4439, allocations: 8.031 kB / 0.5908 GB, free: 15.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004532/0.4443, allocations: 363.2 kB / 0.5911 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002641/0.447, allocations: 0.627 MB / 0.5918 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002871/0.4498, allocations: 1.442 MB / 0.5932 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002828/0.4501, allocations: 316.1 kB / 0.5935 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004822/0.4506, allocations: 271.9 kB / 0.5937 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005598/0.4562, allocations: 3.157 MB / 0.5968 GB, free: 9.129 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.07e-05/0.4562, allocations: 0 / 0.5968 GB, free: 9.129 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002741/0.4565, allocations: 108 kB / 0.5969 GB, free: 9.023 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-05/0.4566, allocations: 64 kB / 0.597 GB, free: 8.961 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006464/0.463, allocations: 3.811 MB / 0.6007 GB, free: 5.137 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.01666/0.4797, allocations: 8.19 MB / 0.6087 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004657/0.4844, allocations: 2.775 MB / 0.6114 GB, free: 10.02 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001926/0.4863, allocations: 1.23 MB / 0.6126 GB, free: 8.781 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/0.5004, allocations: 6.038 MB / 0.6185 GB, free: 2.703 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.856e-05/0.5004, allocations: 48.56 kB / 0.6185 GB, free: 2.648 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001052/0.5015, allocations: 234.5 kB / 0.6188 GB, free: 2.418 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.438e-06/0.5015, allocations: 0 / 0.6188 GB, free: 2.418 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04966/0.5512, allocations: 11.84 MB / 0.6303 GB, free: 6.527 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.282e-05/0.5512, allocations: 77.41 kB / 0.6304 GB, free: 6.441 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.553, allocations: 1.214 MB / 0.6316 GB, free: 5.215 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003203/0.5533, allocations: 73.69 kB / 0.6317 GB, free: 5.137 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009813/0.5543, allocations: 1.188 MB / 0.6328 GB, free: 3.938 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009095/0.5552, allocations: 0.9025 MB / 0.6337 GB, free: 3.027 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008926/0.5561, allocations: 0.5613 MB / 0.6343 GB, free: 2.457 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.5562, allocations: 305.1 kB / 0.6345 GB, free: 2.156 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001841/0.558, allocations: 1.017 MB / 0.6355 GB, free: 1.137 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002599/0.5606, allocations: 1.909 MB / 0.6374 GB, free: 14.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004852/0.5655, allocations: 3.196 MB / 0.6405 GB, free: 11.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.965e-05/0.5655, allocations: 8 kB / 0.6405 GB, free: 11.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01085/0.5764, allocations: 4.118 MB / 0.6446 GB, free: 7.027 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.5764, allocations: 16.38 kB / 0.6446 GB, free: 7.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-05/0.5764, allocations: 32 kB / 0.6446 GB, free: 6.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006866/0.5833, allocations: 1.358 MB / 0.6459 GB, free: 5.605 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/0.586, allocations: 0.6514 MB / 0.6466 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/0.5983, allocations: 7.924 MB / 0.6543 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002258/0.6005, allocations: 99.97 kB / 0.6544 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003516/0.6009, allocations: 171.9 kB / 0.6546 GB, free: 12.39 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.001044/0.6019, allocations: 0.5126 MB / 0.6551 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004542/0.6024, allocations: 210.6 kB / 0.6553 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01058/0.613, allocations: 3.855 MB / 0.659 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.409e-05/0.613, allocations: 28 kB / 0.6591 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.613, allocations: 7.984 kB / 0.6591 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.869e-05/0.613, allocations: 11.95 kB / 0.6591 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01422/0.6273, allocations: 5.948 MB / 0.6649 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.351e-05/0.6273, allocations: 4 kB / 0.6649 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002257/0.6296, allocations: 435.7 kB / 0.6653 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006447/0.636, allocations: 1.264 MB / 0.6665 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004421/0.6365, allocations: 103.9 kB / 0.6666 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.647, allocations: 7.406 MB / 0.6739 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.647, allocations: 11.92 kB / 0.6739 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/0.6592, allocations: 5.032 MB / 0.6788 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005687/0.6598, allocations: 182.6 kB / 0.679 GB, free: 2.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003524/0.6601, allocations: 56 kB / 0.679 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/0.6615, allocations: 55.98 kB / 0.6791 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005068/0.662, allocations: 237.6 kB / 0.6793 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002533/0.6623, allocations: 115.9 kB / 0.6794 GB, free: 2.172 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001031/0.6633, allocations: 0.7312 MB / 0.6801 GB, free: 1.441 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6633, allocations: 0 / 0.6801 GB, free: 1.441 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004236/0.6676, allocations: 1.5 MB / 0.6816 GB, free: 15.93 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.01579/0.6833, allocations: 7.027 MB / 0.6884 GB, free: 8.742 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007719/0.6911, allocations: 3.253 MB / 0.6916 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.6911, allocations: 0 / 0.6916 GB, free: 5.418 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004164/0.6952, allocations: 1.83 MB / 0.6934 GB, free: 3.543 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002187/0.6974, allocations: 404.6 kB / 0.6938 GB, free: 3.152 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04122/0.7386, allocations: 20.2 MB / 0.7135 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001091/0.7397, allocations: 1.026 MB / 0.7145 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001812/0.7415, allocations: 0.5086 MB / 0.715 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001666/0.7432, allocations: 1.185 MB / 0.7162 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of SimCode: time 8.41e-07/0.7432, allocations: 4 kB / 0.7162 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3292/1.072, allocations: 77.09 MB / 0.7915 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.58/16.66, allocations: 10.72 kB / 0.7915 GB, free: 137.7 MB / 0.5606 GB " [Timeout remaining time 643] (rm -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery_fmu --startTime=0 --stopTime=47800 --stepSize=19.12 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_LeadAcidBattery.fmu > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.23200153899961] Failed to read output from testmodel.py, exit status != 0: 16.815475512994453 16.824108657 16.386606505 Calling exit ...