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.001333/0.001333, allocations: 116.1 kB / 17.13 MB, free: 5.945 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.001419/0.001419, allocations: 209.5 kB / 20.09 MB, free: 2.996 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.452/1.452, 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.1415/0.1415, allocations: 23.86 MB / 333.4 MB, free: 1.215 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: 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.002233/0.002233, allocations: 63.7 kB / 467.2 MB, free: 30.49 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1126, allocations: 59.84 MB / 0.5146 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.0151/0.1277, allocations: 11.73 MB / 0.5261 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04219/0.1698, allocations: 33.91 MB / 0.5592 GB, free: 14.62 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002013/0.1719, allocations: 35.75 kB / 0.5593 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002358/0.1742, allocations: 0.7483 MB / 0.56 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00833/0.1825, allocations: 2.786 MB / 0.5627 GB, free: 11.02 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01246/0.195, allocations: 4.45 MB / 0.5671 GB, free: 6.547 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005618/0.2006, allocations: 3.418 MB / 0.5704 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002813/0.2034, allocations: 1.731 MB / 0.5721 GB, free: 1.332 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002759/0.2062, allocations: 1.687 MB / 0.5737 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003279/0.2095, allocations: 1.888 MB / 0.5756 GB, free: 13.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007283/0.2102, allocations: 324 kB / 0.5759 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01189/0.2221, allocations: 3.775 MB / 0.5796 GB, free: 9.648 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001245/0.2233, allocations: 0.7595 MB / 0.5803 GB, free: 8.887 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002398/0.2257, allocations: 1.583 MB / 0.5819 GB, free: 7.297 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2735/0.4993, allocations: 7.505 MB / 0.5892 GB, free: 26.23 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.4993, allocations: 0.5938 kB / 0.5892 GB, free: 26.23 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4993, allocations: 0.5625 kB / 0.5892 GB, free: 26.23 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000185/0.4995, allocations: 1.031 kB / 0.5892 GB, free: 26.23 MB / 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.009859/0.5093, allocations: 3.777 MB / 0.5929 GB, free: 24.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.5094, allocations: 14.31 kB / 0.5929 GB, free: 24.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003366/0.5127, allocations: 0.6315 MB / 0.5935 GB, free: 24.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00332/0.516, allocations: 1.515 MB / 0.595 GB, free: 23.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002854/0.5163, allocations: 258.4 kB / 0.5952 GB, free: 23.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007222/0.5171, allocations: 268 kB / 0.5955 GB, free: 23.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006484/0.5235, allocations: 3.132 MB / 0.5985 GB, free: 23.69 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.835e-05/0.5236, allocations: 2.859 kB / 0.5985 GB, free: 23.69 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002773/0.5239, allocations: 108.1 kB / 0.5987 GB, free: 23.69 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.279e-05/0.5239, allocations: 64.22 kB / 0.5987 GB, free: 23.69 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00721/0.5311, allocations: 3.859 MB / 0.6025 GB, free: 23.66 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.0174/0.5486, allocations: 9.966 MB / 0.6122 GB, free: 20.68 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004028/0.5526, allocations: 3.332 MB / 0.6155 GB, free: 19.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001684/0.5543, allocations: 1.228 MB / 0.6167 GB, free: 18.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01294/0.5672, allocations: 10.92 MB / 0.6273 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.5672, allocations: 56.59 kB / 0.6274 GB, free: 10.82 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001076/0.5683, allocations: 244.3 kB / 0.6276 GB, free: 10.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.42e-06/0.5683, allocations: 0 / 0.6276 GB, free: 10.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=251): time 0.04197/0.6103, allocations: 12.3 MB / 0.6396 GB, free: 3.062 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.6103, allocations: 77.41 kB / 0.6397 GB, free: 2.977 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.6117, allocations: 1.168 MB / 0.6408 GB, free: 1.797 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004061/0.6121, allocations: 68.98 kB / 0.6409 GB, free: 1.727 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004774/0.6125, allocations: 1.191 MB / 0.6421 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008637/0.6134, allocations: 0.9077 MB / 0.643 GB, free: 15.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009324/0.6143, allocations: 0.5613 MB / 0.6435 GB, free: 15.07 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.6145, allocations: 301.1 kB / 0.6438 GB, free: 14.77 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/0.6165, allocations: 1.009 MB / 0.6448 GB, free: 13.76 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002922/0.6194, allocations: 1.902 MB / 0.6466 GB, free: 11.48 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005579/0.625, allocations: 3.202 MB / 0.6498 GB, free: 7.969 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-05/0.625, allocations: 8 kB / 0.6498 GB, free: 7.961 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01134/0.6364, allocations: 4.119 MB / 0.6538 GB, free: 3.969 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.226e-05/0.6364, allocations: 16 kB / 0.6538 GB, free: 3.953 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.495e-05/0.6365, allocations: 28 kB / 0.6538 GB, free: 3.926 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006495/0.643, allocations: 1.36 MB / 0.6552 GB, free: 2.555 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002703/0.6457, allocations: 0.6547 MB / 0.6558 GB, free: 1.945 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01309/0.6587, allocations: 8.281 MB / 0.6639 GB, free: 9.266 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002605/0.6614, allocations: 95.98 kB / 0.664 GB, free: 9.172 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005236/0.6619, allocations: 175.4 kB / 0.6641 GB, free: 9.004 MB / 478.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.001329/0.6632, allocations: 0.5065 MB / 0.6646 GB, free: 8.527 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000612/0.6638, allocations: 206.6 kB / 0.6648 GB, free: 8.324 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01082/0.6746, allocations: 3.879 MB / 0.6686 GB, free: 4.391 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.368e-05/0.6747, allocations: 30.08 kB / 0.6687 GB, free: 4.363 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.6747, allocations: 0 / 0.6687 GB, free: 4.363 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.076e-05/0.6747, allocations: 15.95 kB / 0.6687 GB, free: 4.348 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/0.6902, allocations: 6.303 MB / 0.6748 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.809e-05/0.6903, allocations: 4 kB / 0.6748 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002067/0.6923, allocations: 434.7 kB / 0.6752 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00607/0.6984, allocations: 1.275 MB / 0.6765 GB, free: 12.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004696/0.6989, allocations: 95.94 kB / 0.6766 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.7102, allocations: 7.796 MB / 0.6842 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.7102, allocations: 3.562 kB / 0.6842 GB, free: 4.008 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01324/0.7234, allocations: 5.021 MB / 0.6891 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006367/0.724, allocations: 271.1 kB / 0.6894 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003582/0.7244, allocations: 52 kB / 0.6894 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001305/0.7257, allocations: 55.98 kB / 0.6895 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005208/0.7262, allocations: 229.7 kB / 0.6897 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002428/0.7265, allocations: 114.2 kB / 0.6898 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001064/0.7275, allocations: 0.7312 MB / 0.6905 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.7275, allocations: 3.75 kB / 0.6905 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004653/0.7322, allocations: 1.496 MB / 0.692 GB, free: 11.91 MB / 0.4981 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.00404/0.7362, allocations: 1.546 MB / 0.6935 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0083/0.7445, allocations: 3.331 MB / 0.6967 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.7445, allocations: 0 / 0.6967 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004143/0.7487, allocations: 1.913 MB / 0.6986 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.751, allocations: 394.7 kB / 0.699 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009847/0.7608, allocations: 4.895 MB / 0.7038 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001497/0.7623, allocations: 1.587 MB / 0.7053 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/0.7638, allocations: 452.6 kB / 0.7057 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of SimCode: time 1.172e-06/0.7638, allocations: 0 / 0.7057 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of Templates: time 0.1125/0.8762, allocations: 90.46 MB / 0.7941 GB, free: 3.625 MB / 0.5919 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 os._exit(0), Time elapsed: 12.80420464798226] Failed to read output from testmodel.py, exit status != 0: 0.8852897659817245 0.898335212 0.39587132399999997 Calling exit ...