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.000745/0.000745, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007445/0.0007445, allocations: 177.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8225/0.8225, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.08108/0.08108, allocations: 17.45 MB / 277.4 MB, free: 11.74 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 412.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.679e-05/1.797e-05, allocations: 2.281 kB / 412.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.006813/0.006831, allocations: 10.2 MB / 423.1 MB, free: 5.484 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.1583/0.1651, allocations: 29.71 MB / 452.8 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00193/0.1671, allocations: 38.34 kB / 452.8 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.1687, allocations: 0.6918 MB / 453.5 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0069/0.1756, allocations: 2.856 MB / 456.4 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01132/0.187, allocations: 4.637 MB / 461 MB, free: 42.08 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003951/0.1909, allocations: 3.539 MB / 464.5 MB, free: 41.05 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002238/0.1931, allocations: 1.685 MB / 466.2 MB, free: 40.37 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002266/0.1954, allocations: 2.35 MB / 468.6 MB, free: 39.56 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001546/0.197, allocations: 1.504 MB / 470.1 MB, free: 39.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003331/0.1973, allocations: 323.6 kB / 470.4 MB, free: 39.25 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006347/0.2036, allocations: 3.574 MB / 474 MB, free: 38.51 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003238/0.204, allocations: 0.7669 MB / 474.7 MB, free: 38.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007007/0.2047, allocations: 1.166 MB / 475.9 MB, free: 37.65 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006992/0.2116, allocations: 7.924 MB / 483.8 MB, free: 34.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2117, allocations: 0 / 483.8 MB, free: 34.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2117, allocations: 0 / 483.8 MB, free: 34.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.871e-05/0.2117, allocations: 4.5 kB / 483.8 MB, free: 34.88 MB / 410.7 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.003771/0.2155, allocations: 3.672 MB / 487.5 MB, free: 32.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2155, allocations: 14.09 kB / 487.5 MB, free: 32.83 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/0.2169, allocations: 0.6254 MB / 488.1 MB, free: 32.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001673/0.2185, allocations: 1.435 MB / 489.6 MB, free: 31.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.2187, allocations: 307.9 kB / 489.9 MB, free: 31.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002982/0.219, allocations: 272.1 kB / 490.1 MB, free: 31.56 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003347/0.2223, allocations: 3.157 MB / 493.3 MB, free: 30.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.651e-05/0.2224, allocations: 0 / 493.3 MB, free: 30.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000182/0.2226, allocations: 111.1 kB / 493.4 MB, free: 30.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.926e-05/0.2226, allocations: 63.59 kB / 493.5 MB, free: 30.23 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004044/0.2266, allocations: 3.821 MB / 497.3 MB, free: 29.1 MB / 410.7 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.008771/0.2354, allocations: 7.89 MB / 0.4933 GB, free: 25.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002552/0.238, allocations: 2.784 MB / 0.4961 GB, free: 23.93 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001067/0.239, allocations: 1.226 MB / 0.4973 GB, free: 23.42 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006762/0.2458, allocations: 6.019 MB / 0.5031 GB, free: 21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.2458, allocations: 53.59 kB / 0.5032 GB, free: 20.94 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003915/0.2462, allocations: 223.2 kB / 0.5034 GB, free: 20.81 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 2.785e-06/0.2462, allocations: 4 kB / 0.5034 GB, free: 20.81 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.02042/0.2666, allocations: 11.84 MB / 0.515 GB, free: 9.586 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.2667, allocations: 77.41 kB / 0.515 GB, free: 9.496 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007289/0.2674, allocations: 1.114 MB / 0.5161 GB, free: 8.363 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.2675, allocations: 69.7 kB / 0.5162 GB, free: 8.289 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002894/0.2678, allocations: 1.183 MB / 0.5174 GB, free: 7.105 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003215/0.2681, allocations: 0.8884 MB / 0.5182 GB, free: 6.227 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004682/0.2686, allocations: 0.5574 MB / 0.5188 GB, free: 5.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.561e-05/0.2686, allocations: 309.1 kB / 0.5191 GB, free: 5.355 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/0.2696, allocations: 1.006 MB / 0.52 GB, free: 4.348 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.2708, allocations: 1.909 MB / 0.5219 GB, free: 2.047 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002826/0.2737, allocations: 3.196 MB / 0.525 GB, free: 14.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.005e-05/0.2737, allocations: 8 kB / 0.525 GB, free: 14.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005888/0.2796, allocations: 4.113 MB / 0.5291 GB, free: 10.25 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.2796, allocations: 19.94 kB / 0.5291 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.2796, allocations: 28 kB / 0.5291 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002974/0.2826, allocations: 1.36 MB / 0.5304 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.2838, allocations: 0.6514 MB / 0.5311 GB, free: 8.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00684/0.2906, allocations: 7.832 MB / 0.5387 GB, free: 28 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009321/0.2915, allocations: 104 kB / 0.5388 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/0.2917, allocations: 171.9 kB / 0.539 GB, free: 15.76 MB / 442.7 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.0008126/0.2925, allocations: 0.5141 MB / 0.5395 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.2928, allocations: 194.7 kB / 0.5397 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005648/0.2984, allocations: 3.861 MB / 0.5434 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.2984, allocations: 24 kB / 0.5435 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.2984, allocations: 4 kB / 0.5435 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.971e-05/0.2985, allocations: 15.94 kB / 0.5435 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007786/0.3062, allocations: 5.672 MB / 0.549 GB, free: 5.324 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.3063, allocations: 352 / 0.549 GB, free: 5.324 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008962/0.3071, allocations: 447.4 kB / 0.5494 GB, free: 4.887 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002685/0.3098, allocations: 1.26 MB / 0.5507 GB, free: 3.609 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001335/0.31, allocations: 99.88 kB / 0.5508 GB, free: 3.512 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005693/0.3157, allocations: 7.333 MB / 0.5579 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3157, allocations: 240 / 0.5579 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006476/0.3221, allocations: 5.018 MB / 0.5628 GB, free: 6.688 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.3223, allocations: 186.6 kB / 0.563 GB, free: 6.504 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.3225, allocations: 52 kB / 0.5631 GB, free: 6.453 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005911/0.3231, allocations: 55.98 kB / 0.5631 GB, free: 6.398 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.3233, allocations: 233.6 kB / 0.5633 GB, free: 6.168 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.3235, allocations: 115.9 kB / 0.5634 GB, free: 6.055 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005233/0.324, allocations: 0.6578 MB / 0.5641 GB, free: 5.395 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.324, allocations: 0 / 0.5641 GB, free: 5.395 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002621/0.3266, allocations: 1.492 MB / 0.5655 GB, free: 3.898 MB / 458.7 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.001747/0.3284, allocations: 1.605 MB / 0.5671 GB, free: 2.461 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003699/0.3321, allocations: 3.256 MB / 0.5703 GB, free: 15.14 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3321, allocations: 3.938 kB / 0.5703 GB, free: 15.13 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.3339, allocations: 1.826 MB / 0.5721 GB, free: 13.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.3349, allocations: 391.7 kB / 0.5724 GB, free: 12.89 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004791/0.3397, allocations: 4.731 MB / 0.5771 GB, free: 8.078 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006487/0.3404, allocations: 1.029 MB / 0.5781 GB, free: 7.012 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006575/0.341, allocations: 435.6 kB / 0.5785 GB, free: 6.598 MB / 474.7 MB Notification: Performance of SimCode: time 7.01e-07/0.341, allocations: 0 / 0.5785 GB, free: 6.598 MB / 474.7 MB Notification: Performance of Templates: time 0.1953/0.5363, allocations: 91.47 MB / 0.6678 GB, free: 155.7 MB / 0.5105 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 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.320579306222498] Failed to read output from testmodel.py, exit status != 0: 0.542118732817471 0.549332099 0.33620217999999996 Calling exit ...