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.001346/0.001346, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001478/0.001478, allocations: 214.1 kB / 22.99 MB, free: 4.941 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.446/1.446, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.142/0.142, allocations: 23.87 MB / 337.1 MB, free: 10.96 MB / 270.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.002122/0.002122, allocations: 67.91 kB / 472.4 MB, free: 6.996 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3097, allocations: 59.86 MB / 0.5198 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009737/0.3194, allocations: 10.24 MB / 0.5298 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04004/0.3595, allocations: 29.73 MB / 0.5588 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002436/0.3619, allocations: 38.72 kB / 0.5588 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.3641, allocations: 0.6842 MB / 0.5595 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009177/0.3733, allocations: 2.756 MB / 0.5622 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.014/0.3873, allocations: 4.502 MB / 0.5666 GB, free: 8.273 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005815/0.3931, allocations: 3.422 MB / 0.5699 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002706/0.3958, allocations: 1.669 MB / 0.5716 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.3989, allocations: 1.683 MB / 0.5732 GB, free: 2.816 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003572/0.4024, allocations: 1.685 MB / 0.5749 GB, free: 1.125 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009222/0.4034, allocations: 324 kB / 0.5752 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01144/0.4148, allocations: 3.545 MB / 0.5786 GB, free: 13.26 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.416, allocations: 0.7634 MB / 0.5794 GB, free: 12.49 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002455/0.4185, allocations: 1.331 MB / 0.5807 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01796/0.4365, allocations: 7.49 MB / 0.588 GB, free: 3.637 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.4365, allocations: 0 / 0.588 GB, free: 3.637 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4365, allocations: 0 / 0.588 GB, free: 3.637 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001119/0.4366, allocations: 0 / 0.588 GB, free: 3.637 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.008504/0.4451, allocations: 3.705 MB / 0.5916 GB, free: 15.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.4451, allocations: 12.03 kB / 0.5916 GB, free: 15.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002769/0.4479, allocations: 0.6309 MB / 0.5922 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/0.4513, allocations: 1.438 MB / 0.5936 GB, free: 13.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003073/0.4516, allocations: 320.3 kB / 0.5939 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006287/0.4522, allocations: 275.9 kB / 0.5942 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006008/0.4582, allocations: 3.153 MB / 0.5973 GB, free: 9.922 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.077e-05/0.4583, allocations: 4 kB / 0.5973 GB, free: 9.918 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002539/0.4585, allocations: 104 kB / 0.5974 GB, free: 9.816 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.594e-05/0.4586, allocations: 64 kB / 0.5974 GB, free: 9.754 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006713/0.4653, allocations: 3.815 MB / 0.6012 GB, free: 5.926 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.01775/0.483, allocations: 7.889 MB / 0.6089 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005034/0.4881, allocations: 2.774 MB / 0.6116 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002193/0.4903, allocations: 1.231 MB / 0.6128 GB, free: 9.887 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01516/0.5054, allocations: 6.017 MB / 0.6187 GB, free: 3.828 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.946e-05/0.5055, allocations: 48.56 kB / 0.6187 GB, free: 3.773 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009721/0.5065, allocations: 230.6 kB / 0.6189 GB, free: 3.547 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.16e-06/0.5065, allocations: 0 / 0.6189 GB, free: 3.547 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04826/0.5547, allocations: 11.84 MB / 0.6305 GB, free: 7.664 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.5548, allocations: 81.41 kB / 0.6306 GB, free: 7.574 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.5564, allocations: 1.114 MB / 0.6317 GB, free: 6.441 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000417/0.5569, allocations: 65.7 kB / 0.6317 GB, free: 6.371 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009692/0.5578, allocations: 1.188 MB / 0.6329 GB, free: 5.172 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00115/0.559, allocations: 0.9064 MB / 0.6338 GB, free: 4.258 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009395/0.5599, allocations: 0.5652 MB / 0.6343 GB, free: 3.684 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.5601, allocations: 305.1 kB / 0.6346 GB, free: 3.383 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002004/0.5621, allocations: 1.009 MB / 0.6356 GB, free: 2.371 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00284/0.5649, allocations: 1.905 MB / 0.6374 GB, free: 76 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005299/0.5702, allocations: 3.2 MB / 0.6406 GB, free: 12.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.431e-05/0.5702, allocations: 8 kB / 0.6406 GB, free: 12.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01079/0.581, allocations: 4.099 MB / 0.6446 GB, free: 8.281 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.274e-05/0.5811, allocations: 24.06 kB / 0.6446 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.592e-05/0.5811, allocations: 28 kB / 0.6446 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006151/0.5873, allocations: 1.36 MB / 0.646 GB, free: 6.855 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002627/0.5899, allocations: 0.6513 MB / 0.6466 GB, free: 6.203 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/0.6023, allocations: 7.847 MB / 0.6543 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/0.6045, allocations: 99.92 kB / 0.6544 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004144/0.6049, allocations: 171.9 kB / 0.6545 GB, free: 13.75 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.001092/0.606, allocations: 0.5164 MB / 0.655 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005358/0.6065, allocations: 198.7 kB / 0.6552 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01025/0.6168, allocations: 3.858 MB / 0.659 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/0.6168, allocations: 28 kB / 0.659 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.184e-05/0.6168, allocations: 7.938 kB / 0.659 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.034e-05/0.6169, allocations: 11.95 kB / 0.659 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01463/0.6315, allocations: 5.671 MB / 0.6646 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.11e-05/0.6315, allocations: 7.938 kB / 0.6646 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002078/0.6336, allocations: 439.8 kB / 0.665 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005869/0.6395, allocations: 1.268 MB / 0.6662 GB, free: 1.523 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004642/0.6399, allocations: 95.94 kB / 0.6663 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.6508, allocations: 7.335 MB / 0.6735 GB, free: 9.773 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.697e-05/0.6508, allocations: 11.88 kB / 0.6735 GB, free: 9.762 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01306/0.6639, allocations: 5.012 MB / 0.6784 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005617/0.6644, allocations: 170.7 kB / 0.6786 GB, free: 4.426 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005304/0.6649, allocations: 56 kB / 0.6786 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001536/0.6665, allocations: 68.14 kB / 0.6787 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00058/0.6671, allocations: 241.6 kB / 0.6789 GB, free: 4.066 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003105/0.6674, allocations: 111.9 kB / 0.679 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001122/0.6685, allocations: 0.6578 MB / 0.6797 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1e-07/0.6685, allocations: 0 / 0.6797 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004626/0.6731, allocations: 1.5 MB / 0.6811 GB, free: 1.793 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.003588/0.6767, allocations: 1.542 MB / 0.6826 GB, free: 240 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007732/0.6844, allocations: 3.259 MB / 0.6858 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.056e-06/0.6844, allocations: 0 / 0.6858 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004088/0.6885, allocations: 1.828 MB / 0.6876 GB, free: 11.03 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.6907, allocations: 394.8 kB / 0.688 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009868/0.7006, allocations: 4.878 MB / 0.6927 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/0.7021, allocations: 1.033 MB / 0.6937 GB, free: 4.609 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/0.7034, allocations: 442.8 kB / 0.6942 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of SimCode: time 7.61e-07/0.7034, allocations: 0 / 0.6942 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of Templates: time 0.334/1.037, allocations: 91.23 MB / 0.7833 GB, free: 147.2 MB / 0.5606 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.115850226022303] Failed to read output from testmodel.py, exit status != 0: 1.0470220488496125 1.055687236 0.6166826080000001 Calling exit ...