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.001804/0.001804, allocations: 116.8 kB / 17.17 MB, free: 6 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.002181/0.002181, allocations: 214.3 kB / 20.13 MB, free: 3.055 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.584/1.584, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1437/0.1437, allocations: 23.89 MB / 333.4 MB, free: 1.168 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.LeadAcidBattery,fileNamePrefix="Chemical_master_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.002156/0.002156, allocations: 66.56 kB / 466.7 MB, free: 30.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1102, allocations: 59.84 MB / 0.5142 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01511/0.1253, allocations: 11.73 MB / 0.5257 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04388/0.1692, allocations: 33.91 MB / 0.5588 GB, free: 15.19 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002598/0.1718, allocations: 39.69 kB / 0.5588 GB, free: 15.15 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003139/0.1749, allocations: 0.7484 MB / 0.5596 GB, free: 14.4 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01066/0.1856, allocations: 2.782 MB / 0.5623 GB, free: 11.6 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01374/0.1993, allocations: 4.458 MB / 0.5666 GB, free: 7.113 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005838/0.2052, allocations: 3.418 MB / 0.57 GB, free: 3.68 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003185/0.2083, allocations: 1.723 MB / 0.5717 GB, free: 1.906 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003208/0.2116, allocations: 1.691 MB / 0.5733 GB, free: 216 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004191/0.2157, allocations: 1.892 MB / 0.5752 GB, free: 14.31 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001315/0.2171, allocations: 324 kB / 0.5755 GB, free: 14 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01277/0.2298, allocations: 3.775 MB / 0.5792 GB, free: 10.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001516/0.2313, allocations: 0.7556 MB / 0.5799 GB, free: 9.457 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00338/0.2347, allocations: 1.579 MB / 0.5814 GB, free: 7.871 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01989/0.2546, allocations: 7.51 MB / 0.5888 GB, free: 340 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.2546, allocations: 0 / 0.5888 GB, free: 340 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.2546, allocations: 0 / 0.5888 GB, free: 340 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001535/0.2548, allocations: 0 / 0.5888 GB, free: 340 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.2477/0.5025, allocations: 3.78 MB / 0.5925 GB, free: 65.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/0.5025, allocations: 10.5 kB / 0.5925 GB, free: 65.72 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001406/0.5027, allocations: 70.25 kB / 0.5925 GB, free: 65.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008521/0.5035, allocations: 363.2 kB / 0.5929 GB, free: 65.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003295/0.5068, allocations: 0.6311 MB / 0.5935 GB, free: 65.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003392/0.5102, allocations: 1.52 MB / 0.595 GB, free: 64.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000273/0.5105, allocations: 251.6 kB / 0.5952 GB, free: 64.46 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008874/0.5114, allocations: 272.9 kB / 0.5955 GB, free: 64.37 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006211/0.5176, allocations: 3.132 MB / 0.5985 GB, free: 63.15 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.698e-05/0.5176, allocations: 0.5 kB / 0.5985 GB, free: 63.15 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/0.5179, allocations: 106.3 kB / 0.5987 GB, free: 63.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.242e-05/0.518, allocations: 63.53 kB / 0.5987 GB, free: 63.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007248/0.5252, allocations: 3.854 MB / 0.6025 GB, free: 61.95 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.01737/0.5426, allocations: 9.968 MB / 0.6122 GB, free: 55.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004189/0.5468, allocations: 3.328 MB / 0.6155 GB, free: 53.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001913/0.5487, allocations: 1.236 MB / 0.6167 GB, free: 52.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01288/0.5616, allocations: 10.92 MB / 0.6273 GB, free: 43.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.5616, allocations: 53.09 kB / 0.6274 GB, free: 43.26 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001039/0.5626, allocations: 234.5 kB / 0.6276 GB, free: 43.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.187e-06/0.5627, allocations: 2.969 kB / 0.6276 GB, free: 43.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=251): time 0.04401/0.6067, allocations: 12.31 MB / 0.6396 GB, free: 31.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.6067, allocations: 77.41 kB / 0.6397 GB, free: 31.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.608, allocations: 1.176 MB / 0.6409 GB, free: 30.01 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004658/0.6085, allocations: 69.7 kB / 0.6409 GB, free: 29.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005097/0.609, allocations: 1.183 MB / 0.6421 GB, free: 28.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007961/0.6098, allocations: 0.908 MB / 0.643 GB, free: 27.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007234/0.6105, allocations: 0.5652 MB / 0.6435 GB, free: 27.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.6e-05/0.6106, allocations: 309.1 kB / 0.6438 GB, free: 26.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.6121, allocations: 1.006 MB / 0.6448 GB, free: 25.97 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.614, allocations: 1.905 MB / 0.6467 GB, free: 23.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003872/0.6179, allocations: 3.201 MB / 0.6498 GB, free: 20.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.716e-05/0.6179, allocations: 8 kB / 0.6498 GB, free: 20.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009571/0.6275, allocations: 4.111 MB / 0.6538 GB, free: 15.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.976e-05/0.6275, allocations: 18.97 kB / 0.6538 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.261e-05/0.6276, allocations: 31.94 kB / 0.6538 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005924/0.6335, allocations: 1.361 MB / 0.6552 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/0.6362, allocations: 0.6549 MB / 0.6558 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009786/0.646, allocations: 8.277 MB / 0.6639 GB, free: 5.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002792/0.6488, allocations: 95.98 kB / 0.664 GB, free: 4.992 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005372/0.6493, allocations: 171.9 kB / 0.6642 GB, free: 4.824 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.001239/0.6506, allocations: 0.5097 MB / 0.6647 GB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006394/0.6512, allocations: 214.6 kB / 0.6649 GB, free: 4.094 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00927/0.6605, allocations: 3.861 MB / 0.6686 GB, free: 164 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.206e-05/0.6605, allocations: 28 kB / 0.6687 GB, free: 136 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.6605, allocations: 0 / 0.6687 GB, free: 136 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-05/0.6606, allocations: 15.95 kB / 0.6687 GB, free: 120 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/0.6769, allocations: 6.312 MB / 0.6748 GB, free: 9.707 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.627e-05/0.6769, allocations: 4 kB / 0.6748 GB, free: 9.703 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002226/0.6791, allocations: 443.7 kB / 0.6753 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00619/0.6853, allocations: 1.27 MB / 0.6765 GB, free: 7.988 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005475/0.6859, allocations: 103.9 kB / 0.6766 GB, free: 7.887 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.6977, allocations: 7.784 MB / 0.6842 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.6977, allocations: 0 / 0.6842 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/0.7113, allocations: 5.028 MB / 0.6891 GB, free: 10.49 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006718/0.712, allocations: 259.7 kB / 0.6894 GB, free: 10.21 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005805/0.7126, allocations: 56 kB / 0.6894 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/0.7142, allocations: 59.97 kB / 0.6895 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005948/0.7148, allocations: 229.7 kB / 0.6897 GB, free: 9.875 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002611/0.715, allocations: 107.9 kB / 0.6898 GB, free: 9.77 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001154/0.7162, allocations: 0.7311 MB / 0.6905 GB, free: 9.039 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7162, allocations: 0 / 0.6905 GB, free: 9.039 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005177/0.7214, allocations: 1.496 MB / 0.692 GB, free: 7.539 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.01751/0.7389, allocations: 7.036 MB / 0.6988 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008347/0.7472, allocations: 3.33 MB / 0.7021 GB, free: 13.11 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.7472, allocations: 0 / 0.7021 GB, free: 13.11 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004353/0.7516, allocations: 1.911 MB / 0.704 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.754, allocations: 404.1 kB / 0.7043 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0467/0.8007, allocations: 20.18 MB / 0.7241 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001603/0.8023, allocations: 1.607 MB / 0.7256 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002098/0.8044, allocations: 0.5047 MB / 0.7261 GB, free: 3.266 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00186/0.8063, allocations: 1.182 MB / 0.7273 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of SimCode: time 1.002e-06/0.8063, allocations: 4 kB / 0.7273 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2234/1.03, allocations: 74.88 MB / 0.8004 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.76/27.78, allocations: 4.062 kB / 0.8004 GB, free: 7.48 MB / 0.5762 GB " [Timeout remaining time 632] (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: 31.425726799003314] Failed to read output from testmodel.py, exit status != 0: 27.99291432701284 28.246098186 27.988046038 Calling exit ...