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.001633/0.001633, allocations: 114.1 kB / 17.13 MB, free: 5.926 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.001417/0.001417, allocations: 205.5 kB / 20.09 MB, free: 2.977 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.479/1.479, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1349/0.1349, allocations: 23.89 MB / 333.4 MB, free: 1.176 MB / 254.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.002046/0.002046, allocations: 64.52 kB / 467.2 MB, free: 30.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0886/0.09064, allocations: 59.85 MB / 0.5147 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.0143/0.1049, allocations: 11.74 MB / 0.5262 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04299/0.1479, allocations: 33.9 MB / 0.5593 GB, free: 14.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001566/0.1495, allocations: 35.75 kB / 0.5593 GB, free: 14.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001963/0.1515, allocations: 0.7561 MB / 0.5601 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007435/0.1589, allocations: 2.782 MB / 0.5628 GB, free: 10.95 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01146/0.1704, allocations: 4.458 MB / 0.5671 GB, free: 6.469 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004977/0.1753, allocations: 3.41 MB / 0.5705 GB, free: 3.043 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002366/0.1777, allocations: 1.731 MB / 0.5722 GB, free: 1.262 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002305/0.18, allocations: 1.683 MB / 0.5738 GB, free: 15.57 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002741/0.1827, allocations: 1.888 MB / 0.5756 GB, free: 13.68 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005784/0.1833, allocations: 324 kB / 0.576 GB, free: 13.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01054/0.1939, allocations: 3.779 MB / 0.5796 GB, free: 9.578 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009224/0.1948, allocations: 0.7517 MB / 0.5804 GB, free: 8.824 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001863/0.1966, allocations: 1.583 MB / 0.5819 GB, free: 7.234 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.223/0.4197, allocations: 7.502 MB / 0.5893 GB, free: 26.11 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4197, allocations: 0 / 0.5893 GB, free: 26.11 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4197, allocations: 0.7812 kB / 0.5893 GB, free: 26.11 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001352/0.4198, allocations: 0 / 0.5893 GB, free: 26.11 MB / 446.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.007885/0.4277, allocations: 3.78 MB / 0.5929 GB, free: 24.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.4277, allocations: 12.33 kB / 0.593 GB, free: 24.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002997/0.4307, allocations: 0.6328 MB / 0.5936 GB, free: 24.28 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002784/0.4335, allocations: 1.514 MB / 0.5951 GB, free: 23.85 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002817/0.4338, allocations: 258 kB / 0.5953 GB, free: 23.78 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000524/0.4343, allocations: 268.8 kB / 0.5956 GB, free: 23.78 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005689/0.44, allocations: 3.133 MB / 0.5986 GB, free: 23.56 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.645e-05/0.4401, allocations: 3.344 kB / 0.5986 GB, free: 23.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002654/0.4403, allocations: 108.7 kB / 0.5987 GB, free: 23.56 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.657e-05/0.4404, allocations: 63.94 kB / 0.5988 GB, free: 23.56 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006533/0.4469, allocations: 3.855 MB / 0.6025 GB, free: 23.53 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.01533/0.4622, allocations: 9.974 MB / 0.6123 GB, free: 20.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004091/0.4663, allocations: 3.33 MB / 0.6155 GB, free: 19.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/0.4681, allocations: 1.233 MB / 0.6167 GB, free: 18.83 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01253/0.4806, allocations: 10.92 MB / 0.6274 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.4806, allocations: 53.72 kB / 0.6275 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009777/0.4816, allocations: 232.8 kB / 0.6277 GB, free: 10.54 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.007e-06/0.4816, allocations: 0 / 0.6277 GB, free: 10.54 MB / 446.1 MB Notification: Performance of matching and sorting (n=251): time 0.0424/0.524, allocations: 12.31 MB / 0.6397 GB, free: 2.859 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.5241, allocations: 77.41 kB / 0.6398 GB, free: 2.773 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001179/0.5252, allocations: 1.168 MB / 0.6409 GB, free: 1.594 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001738/0.5254, allocations: 69.7 kB / 0.641 GB, free: 1.52 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/0.5258, allocations: 1.188 MB / 0.6421 GB, free: 340 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007107/0.5265, allocations: 0.8988 MB / 0.643 GB, free: 15.45 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009933/0.5275, allocations: 0.5652 MB / 0.6436 GB, free: 14.87 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.5277, allocations: 301.1 kB / 0.6439 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.5296, allocations: 1.017 MB / 0.6449 GB, free: 13.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002803/0.5324, allocations: 1.904 MB / 0.6467 GB, free: 11.28 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005169/0.5376, allocations: 3.199 MB / 0.6498 GB, free: 7.773 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.669e-05/0.5376, allocations: 8 kB / 0.6498 GB, free: 7.766 MB / 462.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01117/0.5488, allocations: 4.125 MB / 0.6539 GB, free: 3.762 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.5488, allocations: 16 kB / 0.6539 GB, free: 3.746 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-05/0.5489, allocations: 28 kB / 0.6539 GB, free: 3.719 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006597/0.5555, allocations: 1.345 MB / 0.6552 GB, free: 2.359 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002484/0.5579, allocations: 0.6592 MB / 0.6559 GB, free: 1.742 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01292/0.5709, allocations: 8.279 MB / 0.664 GB, free: 9.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002288/0.5731, allocations: 104 kB / 0.6641 GB, free: 8.969 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003579/0.5735, allocations: 169.1 kB / 0.6642 GB, free: 8.805 MB / 478.1 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.001153/0.5747, allocations: 0.5105 MB / 0.6647 GB, free: 8.328 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004956/0.5752, allocations: 210.6 kB / 0.6649 GB, free: 8.121 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01109/0.5862, allocations: 3.87 MB / 0.6687 GB, free: 4.199 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.453e-05/0.5863, allocations: 28 kB / 0.6687 GB, free: 4.172 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.5863, allocations: 4 kB / 0.6687 GB, free: 4.168 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.911e-05/0.5863, allocations: 12.09 kB / 0.6687 GB, free: 4.156 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/0.601, allocations: 6.316 MB / 0.6749 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.601, allocations: 4 kB / 0.6749 GB, free: 13.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00197/0.6029, allocations: 436.3 kB / 0.6753 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006084/0.609, allocations: 1.271 MB / 0.6766 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002772/0.6093, allocations: 102.1 kB / 0.6767 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.6205, allocations: 7.783 MB / 0.6843 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.6205, allocations: 4 kB / 0.6843 GB, free: 3.812 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/0.633, allocations: 5.024 MB / 0.6892 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006156/0.6336, allocations: 259.7 kB / 0.6894 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003242/0.634, allocations: 55.98 kB / 0.6895 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.6353, allocations: 59.98 kB / 0.6895 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005374/0.6359, allocations: 229.5 kB / 0.6898 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002359/0.6361, allocations: 111.9 kB / 0.6899 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001116/0.6372, allocations: 0.7331 MB / 0.6906 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.6372, allocations: 0 / 0.6906 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004284/0.6415, allocations: 1.5 MB / 0.692 GB, free: 11.71 MB / 0.4981 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.003021/0.6445, allocations: 1.548 MB / 0.6936 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007297/0.6518, allocations: 3.334 MB / 0.6968 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6518, allocations: 0 / 0.6968 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003929/0.6557, allocations: 1.904 MB / 0.6987 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.6577, allocations: 408.1 kB / 0.6991 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009104/0.6668, allocations: 4.889 MB / 0.7038 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001421/0.6683, allocations: 1.591 MB / 0.7054 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/0.6695, allocations: 443.8 kB / 0.7058 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of SimCode: time 7.51e-07/0.6695, allocations: 4 kB / 0.7058 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of Templates: time 0.1176/0.787, allocations: 90.47 MB / 0.7942 GB, free: 3.422 MB / 0.5919 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: 11.855106152012013] Failed to read output from testmodel.py, exit status != 0: 0.7959221099736169 0.809904474 0.38711914999999997 Calling exit ...