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.001399/0.001399, 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.001531/0.001531, allocations: 214.7 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.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 7.773 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.1405/0.1405, allocations: 23.89 MB / 337.1 MB, free: 10.94 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.002136/0.002136, allocations: 66.41 kB / 472.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3603, allocations: 59.87 MB / 0.5198 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01058/0.3709, allocations: 10.23 MB / 0.5298 GB, free: 3.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04259/0.4135, allocations: 29.74 MB / 0.5588 GB, free: 14.35 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002765/0.4163, allocations: 38.53 kB / 0.5588 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002854/0.4191, allocations: 0.6793 MB / 0.5595 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01122/0.4303, allocations: 2.756 MB / 0.5622 GB, free: 11.71 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01483/0.4452, allocations: 4.509 MB / 0.5666 GB, free: 8.266 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006751/0.4519, allocations: 3.417 MB / 0.5699 GB, free: 6.238 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002907/0.4548, allocations: 1.712 MB / 0.5716 GB, free: 4.484 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00328/0.4581, allocations: 1.683 MB / 0.5732 GB, free: 2.797 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003784/0.4619, allocations: 1.888 MB / 0.5751 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001041/0.4629, allocations: 327.9 kB / 0.5754 GB, free: 0.582 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01296/0.4759, allocations: 3.643 MB / 0.579 GB, free: 12.93 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001537/0.4774, allocations: 0.7478 MB / 0.5797 GB, free: 12.18 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002852/0.4803, allocations: 1.338 MB / 0.581 GB, free: 10.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02011/0.5004, allocations: 7.49 MB / 0.5883 GB, free: 3.32 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.5004, allocations: 0 / 0.5883 GB, free: 3.32 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5004, allocations: 0 / 0.5883 GB, free: 3.32 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001485/0.5006, allocations: 0 / 0.5883 GB, free: 3.32 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.009115/0.5097, allocations: 3.705 MB / 0.5919 GB, free: 15.56 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.5097, allocations: 8.031 kB / 0.5919 GB, free: 15.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002762/0.5125, allocations: 0.627 MB / 0.5925 GB, free: 14.92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003246/0.5157, allocations: 1.45 MB / 0.594 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003061/0.516, allocations: 308.4 kB / 0.5943 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006031/0.5166, allocations: 271.9 kB / 0.5945 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006048/0.5227, allocations: 3.157 MB / 0.5976 GB, free: 9.613 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.056e-05/0.5227, allocations: 0 / 0.5976 GB, free: 9.613 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.523, allocations: 108 kB / 0.5977 GB, free: 9.508 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.659e-05/0.523, allocations: 64 kB / 0.5978 GB, free: 9.445 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006757/0.5298, allocations: 3.815 MB / 0.6015 GB, free: 5.617 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.01824/0.548, allocations: 7.897 MB / 0.6092 GB, free: 13.57 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004956/0.553, allocations: 2.775 MB / 0.6119 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002083/0.5551, allocations: 1.235 MB / 0.6131 GB, free: 9.562 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0147/0.5698, allocations: 6.011 MB / 0.619 GB, free: 3.512 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/0.5698, allocations: 52.56 kB / 0.619 GB, free: 3.453 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009656/0.5708, allocations: 230.6 kB / 0.6193 GB, free: 3.227 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.999e-06/0.5708, allocations: 0 / 0.6193 GB, free: 3.227 MB / 462.1 MB Notification: Performance of matching and sorting (n=251): time 0.04514/0.6159, allocations: 11.84 MB / 0.6308 GB, free: 7.336 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.616, allocations: 77.41 kB / 0.6309 GB, free: 7.25 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/0.6176, allocations: 1.114 MB / 0.632 GB, free: 6.117 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003964/0.618, allocations: 69.7 kB / 0.6321 GB, free: 6.043 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008805/0.6189, allocations: 1.184 MB / 0.6332 GB, free: 4.848 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009839/0.6198, allocations: 0.9025 MB / 0.6341 GB, free: 3.938 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008584/0.6207, allocations: 0.5613 MB / 0.6346 GB, free: 3.367 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6208, allocations: 305.1 kB / 0.6349 GB, free: 3.066 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.6226, allocations: 1.006 MB / 0.6359 GB, free: 2.059 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002601/0.6252, allocations: 1.913 MB / 0.6378 GB, free: 15.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004925/0.6302, allocations: 3.2 MB / 0.6409 GB, free: 12.13 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.38e-05/0.6302, allocations: 8 kB / 0.6409 GB, free: 12.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01028/0.6405, allocations: 4.11 MB / 0.6449 GB, free: 7.949 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/0.6405, allocations: 16 kB / 0.6449 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-05/0.6406, allocations: 28 kB / 0.645 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005947/0.6465, allocations: 1.357 MB / 0.6463 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002632/0.6491, allocations: 0.6514 MB / 0.6469 GB, free: 5.883 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/0.6611, allocations: 7.842 MB / 0.6546 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/0.6633, allocations: 103.9 kB / 0.6547 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004088/0.6637, allocations: 171.9 kB / 0.6548 GB, free: 13.43 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.001194/0.6649, allocations: 0.5124 MB / 0.6553 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005506/0.6655, allocations: 198.7 kB / 0.6555 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/0.6755, allocations: 3.858 MB / 0.6593 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-05/0.6756, allocations: 24 kB / 0.6593 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.736e-05/0.6756, allocations: 4 kB / 0.6593 GB, free: 8.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.501e-05/0.6757, allocations: 19.88 kB / 0.6594 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/0.6904, allocations: 5.679 MB / 0.6649 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.6904, allocations: 0 / 0.6649 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001988/0.6924, allocations: 443.4 kB / 0.6653 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005554/0.698, allocations: 1.264 MB / 0.6666 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003687/0.6984, allocations: 95.94 kB / 0.6666 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.7085, allocations: 7.344 MB / 0.6738 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.7085, allocations: 7.938 kB / 0.6738 GB, free: 9.441 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01188/0.7204, allocations: 5.016 MB / 0.6787 GB, free: 4.27 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005519/0.7209, allocations: 178.7 kB / 0.6789 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003609/0.7213, allocations: 48 kB / 0.6789 GB, free: 4.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.7225, allocations: 59.98 kB / 0.679 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004971/0.723, allocations: 233.6 kB / 0.6792 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002492/0.7233, allocations: 115.9 kB / 0.6793 GB, free: 3.645 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00099/0.7243, allocations: 0.6578 MB / 0.68 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.7243, allocations: 0 / 0.68 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004465/0.7287, allocations: 1.5 MB / 0.6814 GB, free: 1.48 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.003305/0.732, allocations: 1.542 MB / 0.6829 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00741/0.7394, allocations: 3.254 MB / 0.6861 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/0.7394, allocations: 0 / 0.6861 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003802/0.7433, allocations: 1.832 MB / 0.6879 GB, free: 10.72 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/0.7453, allocations: 399.7 kB / 0.6883 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009208/0.7545, allocations: 4.878 MB / 0.6931 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001169/0.7557, allocations: 1.025 MB / 0.6941 GB, free: 4.297 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/0.757, allocations: 447.2 kB / 0.6945 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of SimCode: time 1.223e-06/0.757, allocations: 0 / 0.6945 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of Templates: time 0.3341/1.091, allocations: 91.22 MB / 0.7836 GB, free: 147.5 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.647930225997698] Failed to read output from testmodel.py, exit status != 0: 1.1009242620202713 1.116769349 0.612675122 Calling exit ...