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.001461/0.001461, allocations: 88.72 kB / 19.44 MB, free: 352 kB / 13.93 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.001651/0.001651, allocations: 157.7 kB / 22.75 MB, free: 1.68 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 1.504/1.504, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 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.1398/0.1398, allocations: 17.36 MB / 276.9 MB, free: 11.68 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.663e-06/1.663e-06, allocations: 0 / 352.7 MB, free: 10.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.798e-05/2.965e-05, allocations: 4.844 kB / 352.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01433/0.01435, allocations: 10.2 MB / 362.9 MB, free: 76 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0593/0.07365, allocations: 29.73 MB / 392.6 MB, free: 2.23 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.07581, allocations: 35.75 kB / 392.7 MB, free: 2.195 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003259/0.07907, allocations: 0.6936 MB / 393.4 MB, free: 1.496 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01035/0.08942, allocations: 2.854 MB / 396.2 MB, free: 14.62 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01368/0.1031, allocations: 4.635 MB / 400.8 MB, free: 9.957 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005779/0.1089, allocations: 3.533 MB / 404.4 MB, free: 6.406 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002981/0.1119, allocations: 1.752 MB / 406.1 MB, free: 4.613 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004108/0.116, allocations: 2.359 MB / 408.5 MB, free: 2.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003095/0.1191, allocations: 1.497 MB / 410 MB, free: 0.75 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009257/0.12, allocations: 324 kB / 410.3 MB, free: 444 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.143/0.263, allocations: 3.571 MB / 413.9 MB, free: 24.63 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00133/0.2643, allocations: 0.7651 MB / 414.6 MB, free: 24.63 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002304/0.2666, allocations: 1.156 MB / 415.8 MB, free: 24.63 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01817/0.2848, allocations: 7.943 MB / 423.7 MB, free: 24.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.2848, allocations: 0 / 423.7 MB, free: 24.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2848, allocations: 3.156 kB / 423.7 MB, free: 24.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001839/0.285, allocations: 0 / 423.7 MB, free: 24.23 MB / 330.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.008333/0.2933, allocations: 3.677 MB / 427.4 MB, free: 22.64 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2933, allocations: 7.938 kB / 427.4 MB, free: 22.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003085/0.2964, allocations: 1.064 MB / 428.5 MB, free: 22.3 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002404/0.2988, allocations: 1.476 MB / 430 MB, free: 21.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.299, allocations: 305.7 kB / 430.3 MB, free: 21.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003976/0.2994, allocations: 273 kB / 430.5 MB, free: 21.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004587/0.304, allocations: 3.156 MB / 433.7 MB, free: 21.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.206e-05/0.304, allocations: 7.531 kB / 433.7 MB, free: 21.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/0.3043, allocations: 113.7 kB / 433.8 MB, free: 21.49 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.585e-05/0.3044, allocations: 64.25 kB / 433.9 MB, free: 21.49 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004965/0.3093, allocations: 3.809 MB / 437.7 MB, free: 20.38 MB / 330.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.0129/0.3222, allocations: 7.967 MB / 445.6 MB, free: 15.04 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003794/0.326, allocations: 2.782 MB / 448.4 MB, free: 12.28 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.3276, allocations: 1.227 MB / 449.7 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01207/0.3397, allocations: 6.207 MB / 455.9 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.3397, allocations: 51.41 kB / 455.9 MB, free: 4.867 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009877/0.3407, allocations: 230.6 kB / 456.1 MB, free: 4.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 4.268e-06/0.3407, allocations: 0 / 456.1 MB, free: 4.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.04823/0.3889, allocations: 11.91 MB / 468 MB, free: 8.773 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/0.389, allocations: 77.41 kB / 468.1 MB, free: 8.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/0.3912, allocations: 1.114 MB / 469.2 MB, free: 7.555 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003573/0.3915, allocations: 65.7 kB / 469.3 MB, free: 7.484 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.3927, allocations: 1.181 MB / 470.5 MB, free: 6.301 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.3939, allocations: 0.8955 MB / 471.4 MB, free: 5.418 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.395, allocations: 0.5582 MB / 471.9 MB, free: 4.852 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.3952, allocations: 309.1 kB / 472.2 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002171/0.3974, allocations: 1.013 MB / 473.2 MB, free: 3.531 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003384/0.4008, allocations: 1.905 MB / 475.2 MB, free: 1.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006482/0.4072, allocations: 3.197 MB / 478.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.028e-05/0.4073, allocations: 8 kB / 478.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01268/0.4199, allocations: 4.24 MB / 482.6 MB, free: 9.629 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.488e-05/0.42, allocations: 19.94 kB / 482.6 MB, free: 9.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.01e-05/0.4201, allocations: 28.55 kB / 482.6 MB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008721/0.4288, allocations: 1.508 MB / 484.2 MB, free: 8.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/0.4317, allocations: 0.6536 MB / 484.8 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01471/0.4464, allocations: 7.877 MB / 492.7 MB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002525/0.4489, allocations: 100.9 kB / 492.8 MB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006477/0.4496, allocations: 171.9 kB / 493 MB, free: 15.03 MB / 378.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.001583/0.4512, allocations: 0.5114 MB / 493.5 MB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009204/0.4521, allocations: 274.7 kB / 493.7 MB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01246/0.4645, allocations: 3.859 MB / 497.6 MB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.365e-05/0.4646, allocations: 24 kB / 497.6 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.4646, allocations: 4 kB / 497.6 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.332e-05/0.4646, allocations: 11.95 kB / 497.6 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01589/0.4805, allocations: 5.667 MB / 0.4915 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.517e-05/0.4805, allocations: 4 kB / 0.4915 GB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002054/0.4826, allocations: 437.3 kB / 0.4919 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008243/0.4908, allocations: 1.411 MB / 0.4933 GB, free: 2.793 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004775/0.4913, allocations: 103.9 kB / 0.4934 GB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.5036, allocations: 7.367 MB / 0.5006 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.5036, allocations: 7.562 kB / 0.5006 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01454/0.5182, allocations: 5.085 MB / 0.5056 GB, free: 5.824 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006578/0.5188, allocations: 174.9 kB / 0.5057 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000595/0.5194, allocations: 59.98 kB / 0.5058 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.5211, allocations: 51.98 kB / 0.5058 GB, free: 5.543 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007316/0.5218, allocations: 245.8 kB / 0.5061 GB, free: 5.305 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003753/0.5222, allocations: 115.9 kB / 0.5062 GB, free: 5.191 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001506/0.5237, allocations: 0.6617 MB / 0.5068 GB, free: 4.527 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.5237, allocations: 0 / 0.5068 GB, free: 4.527 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006393/0.5301, allocations: 1.496 MB / 0.5083 GB, free: 3.027 MB / 394.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.005341/0.5354, allocations: 1.599 MB / 0.5099 GB, free: 1.633 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008551/0.544, allocations: 3.263 MB / 0.513 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.544, allocations: 0.5 kB / 0.513 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004754/0.5488, allocations: 1.838 MB / 0.5148 GB, free: 12.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00273/0.5515, allocations: 436.2 kB / 0.5152 GB, free: 12.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.5623, allocations: 4.745 MB / 0.5199 GB, free: 7.312 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/0.5638, allocations: 1.03 MB / 0.5209 GB, free: 6.242 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002408/0.5662, allocations: 0.4983 MB / 0.5214 GB, free: 5.746 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009944/0.5672, allocations: 349.6 kB / 0.5217 GB, free: 5.414 MB / 410.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5672, allocations: 4 kB / 0.5217 GB, free: 5.41 MB / 410.7 MB Notification: Performance of Templates: time 0.2298/0.797, allocations: 54.38 MB / 0.5748 GB, free: 149.9 MB / 442.7 MB " [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 sys.exit(0), Time elapsed: 7.439994864049368]