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.001417/0.001417, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001225/0.001225, allocations: 169 kB / 23.27 MB, free: 1.219 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.021/1.021, allocations: 177.1 MB / 203.7 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] 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.09108/0.09108, allocations: 17.47 MB / 277.7 MB, free: 11.4 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 354 MB, free: 10.61 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.248e-05, allocations: 6.25 kB / 354 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008898/0.008921, allocations: 11.26 MB / 365.3 MB, free: 15.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02289/0.03181, allocations: 30.64 MB / 395.9 MB, free: 0.543 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001658/0.03347, allocations: 35.75 kB / 396 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.03495, allocations: 0.6548 MB / 396.6 MB, free: 15.85 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006255/0.0412, allocations: 2.812 MB / 399.4 MB, free: 13.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008793/0.04999, allocations: 4.236 MB / 403.7 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004113/0.05411, allocations: 3.537 MB / 407.2 MB, free: 5.199 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002355/0.05646, allocations: 1.748 MB / 408.9 MB, free: 3.406 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003046/0.05951, allocations: 2.418 MB / 411.4 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001988/0.0615, allocations: 1.59 MB / 412.9 MB, free: 15.39 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006679/0.06217, allocations: 320 kB / 413.3 MB, free: 15.08 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007479/0.06964, allocations: 3.322 MB / 416.6 MB, free: 11.75 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009534/0.0706, allocations: 0.7789 MB / 417.4 MB, free: 10.97 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002334/0.07293, allocations: 1.166 MB / 418.5 MB, free: 9.801 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01421/0.08714, allocations: 6.44 MB / 425 MB, free: 3.336 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.08715, allocations: 4 kB / 425 MB, free: 3.332 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.08715, allocations: 0 / 425 MB, free: 3.332 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001028/0.08725, allocations: 0 / 425 MB, free: 3.332 MB / 394.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.004987/0.09224, allocations: 3.797 MB / 428.8 MB, free: 15.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.09228, allocations: 8.031 kB / 428.8 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001983/0.09427, allocations: 1.011 MB / 429.8 MB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.09583, allocations: 1.279 MB / 431.1 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001758/0.09601, allocations: 308.6 kB / 431.4 MB, free: 12.82 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002973/0.09631, allocations: 268.3 kB / 431.6 MB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.09876, allocations: 2.267 MB / 433.9 MB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.631e-05/0.09879, allocations: 4 kB / 433.9 MB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.09897, allocations: 104 kB / 434 MB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.099, allocations: 64 kB / 434.1 MB, free: 10.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00234/0.1013, allocations: 2.167 MB / 436.2 MB, free: 7.832 MB / 410.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.009308/0.1107, allocations: 7.313 MB / 443.5 MB, free: 384 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1739/0.2846, allocations: 2.364 MB / 445.9 MB, free: 83.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001008/0.2856, allocations: 0.6715 MB / 446.6 MB, free: 83.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007304/0.2929, allocations: 5.71 MB / 452.3 MB, free: 83.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.2929, allocations: 56.95 kB / 452.3 MB, free: 83.15 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005296/0.2935, allocations: 218.8 kB / 452.6 MB, free: 83.15 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 5.58e-06/0.2935, allocations: 0 / 452.6 MB, free: 83.15 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.01797/0.3114, allocations: 8.503 MB / 461.1 MB, free: 82.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.3115, allocations: 78.69 kB / 461.1 MB, free: 82.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008732/0.3124, allocations: 1.124 MB / 462.3 MB, free: 82.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/0.3125, allocations: 68.3 kB / 462.3 MB, free: 82.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004869/0.313, allocations: 1.25 MB / 463.6 MB, free: 81.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005382/0.3135, allocations: 0.9065 MB / 464.5 MB, free: 81.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000554/0.3141, allocations: 0.5788 MB / 465.1 MB, free: 81.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.819e-05/0.3141, allocations: 484.2 kB / 465.5 MB, free: 80.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006047/0.3147, allocations: 468.1 kB / 466 MB, free: 80.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009521/0.3157, allocations: 1.724 MB / 467.7 MB, free: 79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/0.3176, allocations: 2.517 MB / 470.2 MB, free: 77.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.747e-05/0.3176, allocations: 9.562 kB / 470.2 MB, free: 77.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.004669/0.3223, allocations: 2.925 MB / 473.2 MB, free: 77.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.3223, allocations: 17.91 kB / 473.2 MB, free: 77.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.429e-05/0.3223, allocations: 27.78 kB / 473.2 MB, free: 77.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003354/0.3257, allocations: 1.188 MB / 474.4 MB, free: 76.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.327, allocations: 0.6528 MB / 475.1 MB, free: 76.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005146/0.3321, allocations: 8.039 MB / 483.1 MB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001349/0.3335, allocations: 100.3 kB / 483.2 MB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002111/0.3337, allocations: 146.5 kB / 483.3 MB, free: 70.48 MB / 410.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.0006986/0.3344, allocations: 345 kB / 483.7 MB, free: 70.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004577/0.3348, allocations: 274.7 kB / 483.9 MB, free: 70.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004224/0.3391, allocations: 2.702 MB / 486.6 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.3391, allocations: 25.34 kB / 486.7 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.3391, allocations: 3.188 kB / 486.7 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.3391, allocations: 16 kB / 486.7 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005938/0.345, allocations: 4.37 MB / 491.1 MB, free: 68.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.3451, allocations: 0 / 491.1 MB, free: 68.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008951/0.3459, allocations: 444.9 kB / 491.5 MB, free: 68.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002974/0.3489, allocations: 1.095 MB / 492.6 MB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/0.3491, allocations: 96.47 kB / 492.7 MB, free: 68.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003987/0.3531, allocations: 7.714 MB / 0.4887 GB, free: 61.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3531, allocations: 6.906 kB / 0.4887 GB, free: 61.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004785/0.3579, allocations: 3.183 MB / 0.4918 GB, free: 60.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.3582, allocations: 176.5 kB / 0.4919 GB, free: 60.22 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.3583, allocations: 52.56 kB / 0.492 GB, free: 60.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006216/0.3589, allocations: 55.72 kB / 0.4921 GB, free: 60.15 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003538/0.3593, allocations: 247.6 kB / 0.4923 GB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.3595, allocations: 93.92 kB / 0.4924 GB, free: 60.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003859/0.3598, allocations: 0.5683 MB / 0.4929 GB, free: 59.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3598, allocations: 0 / 0.4929 GB, free: 59.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002733/0.3626, allocations: 1.441 MB / 0.4943 GB, free: 59.69 MB / 410.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.001856/0.3644, allocations: 1.583 MB / 0.4959 GB, free: 59.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003004/0.3674, allocations: 2.537 MB / 0.4984 GB, free: 58.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3674, allocations: 0 / 0.4984 GB, free: 58.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.3689, allocations: 1.584 MB / 0.4999 GB, free: 57.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.37, allocations: 451.6 kB / 0.5003 GB, free: 57.31 MB / 410.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004847/0.3749, allocations: 4.265 MB / 0.5045 GB, free: 53.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.3751, allocations: 444.9 kB / 0.5049 GB, free: 53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001142/0.3763, allocations: 486.1 kB / 0.5054 GB, free: 52.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.3774, allocations: 0.6947 MB / 0.5061 GB, free: 52.02 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.3774, allocations: 0 / 0.5061 GB, free: 52.02 MB / 410.7 MB Notification: Performance of Templates: time 0.0531/0.4305, allocations: 60.52 MB / 0.5652 GB, free: 10.65 MB / 426.7 MB " [Timeout remaining time 660] 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=240 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.749316583853215]