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.001432/0.001432, allocations: 104.3 kB / 19.7 MB, free: 2.008 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.001432/0.001432, allocations: 210.4 kB / 22.99 MB, free: 4.41 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.449/1.449, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.1408/0.1408, allocations: 23.93 MB / 337.1 MB, free: 10.9 MB / 270.1 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: 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.002115/0.002115, allocations: 67.89 kB / 472.4 MB, free: 6.934 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3448/0.347, allocations: 59.88 MB / 0.5198 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.009901/0.3569, allocations: 10.24 MB / 0.5298 GB, free: 2.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04082/0.3977, allocations: 29.73 MB / 0.5589 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002702/0.4004, allocations: 35.53 kB / 0.5589 GB, free: 14.32 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.4028, allocations: 0.6816 MB / 0.5596 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.413, allocations: 2.757 MB / 0.5623 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01448/0.4275, allocations: 4.505 MB / 0.5667 GB, free: 8.258 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005442/0.4329, allocations: 3.422 MB / 0.57 GB, free: 6.191 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002562/0.4355, allocations: 1.708 MB / 0.5717 GB, free: 4.434 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002623/0.4381, allocations: 1.683 MB / 0.5733 GB, free: 2.746 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003336/0.4414, allocations: 1.896 MB / 0.5752 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007871/0.4422, allocations: 324 kB / 0.5755 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01193/0.4542, allocations: 3.635 MB / 0.579 GB, free: 12.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001247/0.4554, allocations: 0.7556 MB / 0.5798 GB, free: 12.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.4576, allocations: 1.335 MB / 0.5811 GB, free: 10.79 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0177/0.4753, allocations: 7.486 MB / 0.5884 GB, free: 3.273 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4753, allocations: 0 / 0.5884 GB, free: 3.273 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4753, allocations: 4 kB / 0.5884 GB, free: 3.27 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.287e-05/0.4754, allocations: 0 / 0.5884 GB, free: 3.27 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.007783/0.4831, allocations: 3.709 MB / 0.592 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.4832, allocations: 8.031 kB / 0.592 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002575/0.4858, allocations: 0.6309 MB / 0.5926 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002904/0.4887, allocations: 1.446 MB / 0.594 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002768/0.4889, allocations: 312.4 kB / 0.5943 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004755/0.4894, allocations: 271.9 kB / 0.5946 GB, free: 12.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005404/0.4948, allocations: 3.157 MB / 0.5977 GB, free: 9.555 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5e-05/0.4949, allocations: 0 / 0.5977 GB, free: 9.555 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002608/0.4951, allocations: 107.9 kB / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.297e-05/0.4952, allocations: 64 kB / 0.5978 GB, free: 9.387 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006484/0.5017, allocations: 3.815 MB / 0.6016 GB, free: 5.559 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.01671/0.5184, allocations: 7.882 MB / 0.6093 GB, free: 13.53 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004928/0.5233, allocations: 2.775 MB / 0.612 GB, free: 10.76 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/0.5254, allocations: 1.242 MB / 0.6132 GB, free: 9.512 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01466/0.5401, allocations: 6.007 MB / 0.6191 GB, free: 3.465 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.162e-05/0.5401, allocations: 52.56 kB / 0.6191 GB, free: 3.406 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009775/0.5411, allocations: 226.6 kB / 0.6193 GB, free: 3.184 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 5.019e-06/0.5411, allocations: 0 / 0.6193 GB, free: 3.184 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.0451/0.5862, allocations: 11.84 MB / 0.6309 GB, free: 7.297 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.5863, allocations: 77.41 kB / 0.631 GB, free: 7.211 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/0.5879, allocations: 1.118 MB / 0.6321 GB, free: 6.074 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000314/0.5882, allocations: 69.7 kB / 0.6321 GB, free: 6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009173/0.5891, allocations: 1.188 MB / 0.6333 GB, free: 4.801 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009386/0.59, allocations: 0.9025 MB / 0.6342 GB, free: 3.891 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008787/0.5909, allocations: 0.5651 MB / 0.6347 GB, free: 3.316 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.5911, allocations: 301.1 kB / 0.635 GB, free: 3.02 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001916/0.593, allocations: 1.009 MB / 0.636 GB, free: 2.008 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002724/0.5957, allocations: 1.909 MB / 0.6378 GB, free: 15.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005285/0.601, allocations: 3.2 MB / 0.641 GB, free: 12.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-05/0.601, allocations: 8 kB / 0.641 GB, free: 12.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01037/0.6114, allocations: 4.118 MB / 0.645 GB, free: 7.895 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/0.6114, allocations: 16 kB / 0.645 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-05/0.6115, allocations: 28 kB / 0.645 GB, free: 7.852 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005916/0.6174, allocations: 1.352 MB / 0.6464 GB, free: 6.484 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.6199, allocations: 0.6474 MB / 0.647 GB, free: 5.836 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.6321, allocations: 7.843 MB / 0.6547 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002341/0.6345, allocations: 103.9 kB / 0.6548 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006277/0.6351, allocations: 175.9 kB / 0.6549 GB, free: 13.37 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.001975/0.6371, allocations: 0.5086 MB / 0.6554 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008682/0.6379, allocations: 194.7 kB / 0.6556 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01598/0.6539, allocations: 3.862 MB / 0.6594 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.86e-05/0.654, allocations: 28 kB / 0.6594 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/0.654, allocations: 4 kB / 0.6594 GB, free: 8.695 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.888e-05/0.6541, allocations: 11.95 kB / 0.6594 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02226/0.6763, allocations: 5.679 MB / 0.665 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.707e-05/0.6764, allocations: 0 / 0.665 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003059/0.6794, allocations: 443.7 kB / 0.6654 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008561/0.688, allocations: 1.259 MB / 0.6666 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006096/0.6886, allocations: 99.92 kB / 0.6667 GB, free: 1.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/0.7024, allocations: 7.35 MB / 0.6739 GB, free: 9.398 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.448e-06/0.7024, allocations: 11.88 kB / 0.6739 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0121/0.7145, allocations: 5.004 MB / 0.6788 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005318/0.7151, allocations: 170.7 kB / 0.679 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003516/0.7154, allocations: 59.98 kB / 0.679 GB, free: 4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.7167, allocations: 60.17 kB / 0.6791 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005118/0.7172, allocations: 241.6 kB / 0.6793 GB, free: 3.703 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000259/0.7174, allocations: 119.9 kB / 0.6794 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009728/0.7184, allocations: 0.6578 MB / 0.6801 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7184, allocations: 3.938 kB / 0.6801 GB, free: 2.922 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004686/0.7231, allocations: 1.496 MB / 0.6815 GB, free: 1.422 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.003582/0.7267, allocations: 1.538 MB / 0.683 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007818/0.7345, allocations: 3.254 MB / 0.6862 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.7345, allocations: 0 / 0.6862 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004005/0.7385, allocations: 1.833 MB / 0.688 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002026/0.7405, allocations: 391.3 kB / 0.6884 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00982/0.7504, allocations: 4.888 MB / 0.6931 GB, free: 5.312 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/0.7516, allocations: 1.029 MB / 0.6941 GB, free: 4.242 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/0.7529, allocations: 432.9 kB / 0.6946 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/0.7529, allocations: 4 kB / 0.6946 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of Templates: time 0.3304/1.083, allocations: 91.22 MB / 0.7836 GB, free: 147.4 MB / 0.5606 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: 12.560562526981812] Failed to read output from testmodel.py, exit status != 0: 1.0927923030103557 1.102114117 0.6242183090000001 Calling exit ...