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.001066/0.001066, allocations: 76.55 kB / 19.93 MB, free: 4.621 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.001198/0.001198, allocations: 177.9 kB / 23.22 MB, free: 1.332 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.8184/0.8184, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.07796/0.07796, allocations: 17.37 MB / 277.3 MB, free: 11.84 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 412.7 MB, free: 15.92 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.437e-05/1.589e-05, allocations: 5.094 kB / 412.7 MB, free: 15.91 MB / 394.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.007139/0.007155, allocations: 10.19 MB / 422.9 MB, free: 5.68 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.1532/0.1603, allocations: 29.72 MB / 452.6 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001207/0.1615, allocations: 37.88 kB / 452.7 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.1627, allocations: 0.6925 MB / 453.4 MB, free: 43.71 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004307/0.167, allocations: 2.847 MB / 456.2 MB, free: 43.07 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006628/0.1736, allocations: 4.644 MB / 460.8 MB, free: 42.11 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002108/0.1757, allocations: 3.539 MB / 464.4 MB, free: 41.12 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001004/0.1767, allocations: 1.685 MB / 466.1 MB, free: 40.44 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001204/0.1779, allocations: 2.356 MB / 468.4 MB, free: 39.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.179, allocations: 1.5 MB / 469.9 MB, free: 39.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002321/0.1792, allocations: 326.3 kB / 470.2 MB, free: 39.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004894/0.1841, allocations: 3.574 MB / 473.8 MB, free: 38.59 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002954/0.1844, allocations: 0.7632 MB / 474.6 MB, free: 38.17 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005617/0.185, allocations: 1.16 MB / 475.7 MB, free: 37.73 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005344/0.1903, allocations: 7.931 MB / 483.7 MB, free: 34.96 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1903, allocations: 1.125 kB / 483.7 MB, free: 34.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1903, allocations: 0 / 483.7 MB, free: 34.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.916e-05/0.1903, allocations: 0 / 483.7 MB, free: 34.96 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.003488/0.1938, allocations: 3.68 MB / 487.4 MB, free: 32.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1939, allocations: 9.906 kB / 487.4 MB, free: 32.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001315/0.1952, allocations: 0.6252 MB / 488 MB, free: 32.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.1968, allocations: 1.443 MB / 489.4 MB, free: 31.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001496/0.1969, allocations: 304.9 kB / 489.7 MB, free: 31.73 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002823/0.1972, allocations: 279.5 kB / 490 MB, free: 31.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003236/0.2004, allocations: 3.152 MB / 493.2 MB, free: 30.39 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.216e-05/0.2005, allocations: 7.938 kB / 493.2 MB, free: 30.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001747/0.2006, allocations: 110.1 kB / 493.3 MB, free: 30.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-05/0.2007, allocations: 67.75 kB / 493.3 MB, free: 30.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004004/0.2047, allocations: 3.81 MB / 497.1 MB, free: 29.18 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.008558/0.2132, allocations: 7.894 MB / 0.4932 GB, free: 25.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002486/0.2157, allocations: 2.77 MB / 0.4959 GB, free: 24.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.2168, allocations: 1.225 MB / 0.4971 GB, free: 23.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006543/0.2233, allocations: 6.011 MB / 0.503 GB, free: 21.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.2233, allocations: 53.78 kB / 0.503 GB, free: 21.03 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004041/0.2237, allocations: 233.7 kB / 0.5032 GB, free: 20.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 3.768e-06/0.2237, allocations: 0 / 0.5032 GB, free: 20.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.01974/0.2435, allocations: 11.85 MB / 0.5148 GB, free: 9.742 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.239e-05/0.2435, allocations: 77.41 kB / 0.5149 GB, free: 9.652 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006514/0.2442, allocations: 1.114 MB / 0.516 GB, free: 8.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.945e-05/0.2443, allocations: 69.7 kB / 0.516 GB, free: 8.445 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000252/0.2445, allocations: 1.187 MB / 0.5172 GB, free: 7.258 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002812/0.2448, allocations: 0.8829 MB / 0.5181 GB, free: 6.387 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004148/0.2452, allocations: 0.5652 MB / 0.5186 GB, free: 5.812 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 1.951e-05/0.2452, allocations: 305.1 kB / 0.5189 GB, free: 5.512 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009571/0.2462, allocations: 1.015 MB / 0.5199 GB, free: 4.496 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.2473, allocations: 1.897 MB / 0.5218 GB, free: 2.207 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002591/0.2499, allocations: 3.202 MB / 0.5249 GB, free: 14.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.2499, allocations: 8 kB / 0.5249 GB, free: 14.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005755/0.2557, allocations: 4.105 MB / 0.5289 GB, free: 10.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/0.2557, allocations: 19.94 kB / 0.5289 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/0.2557, allocations: 31.2 kB / 0.5289 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002817/0.2585, allocations: 1.357 MB / 0.5303 GB, free: 8.996 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.2597, allocations: 0.6514 MB / 0.5309 GB, free: 8.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006537/0.2662, allocations: 7.837 MB / 0.5386 GB, free: 188 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008954/0.2671, allocations: 95.98 kB / 0.5387 GB, free: 92 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.2673, allocations: 172 kB / 0.5388 GB, free: 15.92 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.0007069/0.268, allocations: 0.5173 MB / 0.5393 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.2682, allocations: 196.1 kB / 0.5395 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005593/0.2738, allocations: 3.866 MB / 0.5433 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.2738, allocations: 28 kB / 0.5433 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2738, allocations: 0 / 0.5433 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.2738, allocations: 15.95 kB / 0.5433 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00723/0.2811, allocations: 5.67 MB / 0.5489 GB, free: 5.477 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.2811, allocations: 4 kB / 0.5489 GB, free: 5.473 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.2822, allocations: 431.4 kB / 0.5493 GB, free: 5.051 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002663/0.2849, allocations: 1.264 MB / 0.5505 GB, free: 3.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.285, allocations: 103.9 kB / 0.5506 GB, free: 3.668 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00558/0.2906, allocations: 7.332 MB / 0.5578 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2906, allocations: 4 kB / 0.5578 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006269/0.2968, allocations: 5.015 MB / 0.5627 GB, free: 6.844 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.297, allocations: 174.6 kB / 0.5628 GB, free: 6.672 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/0.2972, allocations: 56 kB / 0.5629 GB, free: 6.617 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005916/0.2978, allocations: 55.98 kB / 0.5629 GB, free: 6.562 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005067/0.2983, allocations: 245.6 kB / 0.5632 GB, free: 6.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.2984, allocations: 111.9 kB / 0.5633 GB, free: 6.211 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005373/0.299, allocations: 0.6578 MB / 0.5639 GB, free: 5.551 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.299, allocations: 0 / 0.5639 GB, free: 5.551 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002767/0.3017, allocations: 1.504 MB / 0.5654 GB, free: 4.043 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.001702/0.3034, allocations: 1.595 MB / 0.567 GB, free: 2.617 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003645/0.3071, allocations: 3.258 MB / 0.5701 GB, free: 15.29 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3071, allocations: 0 / 0.5701 GB, free: 15.29 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00207/0.3092, allocations: 1.826 MB / 0.5719 GB, free: 13.42 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.3102, allocations: 386.3 kB / 0.5723 GB, free: 13.05 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.315, allocations: 4.729 MB / 0.5769 GB, free: 8.238 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008473/0.3158, allocations: 1.033 MB / 0.5779 GB, free: 7.168 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006339/0.3165, allocations: 443.9 kB / 0.5783 GB, free: 6.746 MB / 474.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3165, allocations: 0 / 0.5783 GB, free: 6.746 MB / 474.7 MB Notification: Performance of Templates: time 0.18/0.4965, allocations: 91.47 MB / 0.6677 GB, free: 156 MB / 0.5105 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: 7.785812189802527] Failed to read output from testmodel.py, exit status != 0: 0.5017240447923541 0.508361686 0.31667030100000004 Calling exit ...