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.001362/0.001362, 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.001543/0.001543, allocations: 212.1 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.405/1.405, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1356/0.1356, allocations: 23.92 MB / 337.1 MB, free: 10.93 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: translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery") translateModel(Chemical.Obsolete.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_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.001957/0.001957, allocations: 67.89 kB / 472.4 MB, free: 6.945 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.348, allocations: 59.88 MB / 0.5198 GB, free: 9.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01071/0.3587, allocations: 10.24 MB / 0.5298 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03986/0.3986, allocations: 29.73 MB / 0.5589 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.4008, allocations: 38.94 kB / 0.5589 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002275/0.4031, allocations: 0.6805 MB / 0.5596 GB, free: 13.76 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008982/0.412, allocations: 2.759 MB / 0.5623 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0136/0.4256, allocations: 4.506 MB / 0.5667 GB, free: 8.219 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005923/0.4316, allocations: 3.418 MB / 0.57 GB, free: 6.188 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00259/0.4342, allocations: 1.708 MB / 0.5717 GB, free: 4.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002504/0.4367, allocations: 1.691 MB / 0.5733 GB, free: 2.734 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002785/0.4394, allocations: 1.888 MB / 0.5752 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005476/0.44, allocations: 324 kB / 0.5755 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01087/0.4509, allocations: 3.631 MB / 0.579 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001052/0.4519, allocations: 0.7556 MB / 0.5798 GB, free: 12.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002016/0.4539, allocations: 1.342 MB / 0.5811 GB, free: 10.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01878/0.4727, allocations: 7.479 MB / 0.5884 GB, free: 3.273 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.4727, allocations: 4 kB / 0.5884 GB, free: 3.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4727, allocations: 0 / 0.5884 GB, free: 3.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.939e-05/0.4728, allocations: 0 / 0.5884 GB, free: 3.27 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.007627/0.4804, allocations: 3.705 MB / 0.592 GB, free: 15.51 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.4804, allocations: 12.03 kB / 0.592 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002669/0.4831, allocations: 0.627 MB / 0.5926 GB, free: 14.87 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002793/0.4859, allocations: 1.454 MB / 0.594 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/0.4862, allocations: 312.4 kB / 0.5943 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004877/0.4867, allocations: 275.9 kB / 0.5946 GB, free: 12.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005403/0.4921, allocations: 3.15 MB / 0.5977 GB, free: 9.555 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.857e-05/0.4921, allocations: 3.938 kB / 0.5977 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000273/0.4924, allocations: 104 kB / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-05/0.4924, allocations: 64 kB / 0.5978 GB, free: 9.387 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006305/0.4987, allocations: 3.815 MB / 0.6016 GB, free: 5.559 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.01718/0.5159, allocations: 7.889 MB / 0.6093 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004804/0.5207, allocations: 2.775 MB / 0.612 GB, free: 10.75 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002031/0.5228, allocations: 1.234 MB / 0.6132 GB, free: 9.512 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01445/0.5372, allocations: 6.019 MB / 0.6191 GB, free: 3.453 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.123e-05/0.5373, allocations: 52.56 kB / 0.6191 GB, free: 3.395 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001092/0.5384, allocations: 218.6 kB / 0.6193 GB, free: 3.18 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.819e-06/0.5384, allocations: 0 / 0.6193 GB, free: 3.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04855/0.5869, allocations: 11.85 MB / 0.6309 GB, free: 7.281 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.587, allocations: 77.41 kB / 0.631 GB, free: 7.195 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.5884, allocations: 1.114 MB / 0.6321 GB, free: 6.062 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002661/0.5887, allocations: 65.7 kB / 0.6321 GB, free: 5.992 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008407/0.5895, allocations: 1.184 MB / 0.6333 GB, free: 4.797 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008714/0.5904, allocations: 0.9025 MB / 0.6342 GB, free: 3.887 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008801/0.5913, allocations: 0.5691 MB / 0.6347 GB, free: 3.309 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.5914, allocations: 301.1 kB / 0.635 GB, free: 3.012 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/0.5932, allocations: 1.013 MB / 0.636 GB, free: 1.996 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002616/0.5958, allocations: 1.905 MB / 0.6379 GB, free: 15.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004839/0.6007, allocations: 3.199 MB / 0.641 GB, free: 12.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/0.6007, allocations: 8 kB / 0.641 GB, free: 12.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01077/0.6115, allocations: 4.107 MB / 0.645 GB, free: 7.898 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.16e-05/0.6115, allocations: 20 kB / 0.645 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-05/0.6115, allocations: 28 kB / 0.645 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006538/0.6181, allocations: 1.361 MB / 0.6464 GB, free: 6.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002585/0.6207, allocations: 0.6553 MB / 0.647 GB, free: 5.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.6328, allocations: 7.834 MB / 0.6547 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002331/0.6351, allocations: 107.9 kB / 0.6548 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004224/0.6356, allocations: 171.9 kB / 0.6549 GB, free: 13.37 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.001252/0.6368, allocations: 0.5086 MB / 0.6554 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005204/0.6373, allocations: 198.7 kB / 0.6556 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01063/0.648, allocations: 3.862 MB / 0.6594 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-05/0.648, allocations: 31.94 kB / 0.6594 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/0.648, allocations: 4 kB / 0.6594 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.395e-05/0.6481, allocations: 11.95 kB / 0.6594 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.6624, allocations: 5.679 MB / 0.665 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.6624, allocations: 4 kB / 0.665 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00205/0.6644, allocations: 439.7 kB / 0.6654 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006322/0.6707, allocations: 1.26 MB / 0.6666 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003972/0.6711, allocations: 95.94 kB / 0.6667 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01061/0.6818, allocations: 7.345 MB / 0.6739 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.6818, allocations: 7.938 kB / 0.6739 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01223/0.694, allocations: 5.008 MB / 0.6788 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005238/0.6945, allocations: 170.7 kB / 0.679 GB, free: 4.055 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/0.6948, allocations: 59.94 kB / 0.679 GB, free: 3.996 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/0.6962, allocations: 60.08 kB / 0.6791 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005114/0.6967, allocations: 241.5 kB / 0.6793 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/0.6969, allocations: 111.9 kB / 0.6794 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009058/0.6978, allocations: 0.6578 MB / 0.68 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6978, allocations: 0 / 0.68 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004207/0.702, allocations: 1.5 MB / 0.6815 GB, free: 1.426 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.003013/0.705, allocations: 1.546 MB / 0.683 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006936/0.712, allocations: 3.254 MB / 0.6862 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.712, allocations: 0 / 0.6862 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003724/0.7157, allocations: 1.829 MB / 0.688 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001962/0.7177, allocations: 393.6 kB / 0.6884 GB, free: 10.28 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008821/0.7265, allocations: 4.825 MB / 0.6931 GB, free: 5.375 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.7277, allocations: 1.037 MB / 0.6941 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002159/0.7298, allocations: 0.5002 MB / 0.6946 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009143/0.7307, allocations: 344.1 kB / 0.6949 GB, free: 3.465 MB / 0.5294 GB Notification: Performance of SimCode: time 1.823e-06/0.7307, allocations: 3.938 kB / 0.6949 GB, free: 3.461 MB / 0.5294 GB Notification: Performance of Templates: time 0.3012/1.032, allocations: 58.37 MB / 0.7519 GB, free: 172.1 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.makefile [Timeout 660] (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 & ./Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.4165024800022366] Failed to read output from testmodel.py, exit status != 0: 1.0407903759914916 1.049942313 0.574868836 Calling exit ...