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.001166/0.001166, allocations: 73.09 kB / 20.65 MB, free: 3.848 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.001199/0.001199, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 0.9617/0.9617, allocations: 177.1 MB / 204.5 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] 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.08412/0.08412, allocations: 17.38 MB / 278.4 MB, free: 11.5 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 354.7 MB, free: 9.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.5e-05/1.63e-05, allocations: 6.312 kB / 354.7 MB, free: 9.699 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.008236/0.008253, allocations: 11.26 MB / 365.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.03146, allocations: 30.64 MB / 396.6 MB, free: 15.63 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001449/0.03291, allocations: 35.75 kB / 396.6 MB, free: 15.59 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.03417, allocations: 0.6586 MB / 397.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005623/0.03979, allocations: 2.812 MB / 400.1 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007745/0.04753, allocations: 4.236 MB / 404.3 MB, free: 7.836 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003357/0.05089, allocations: 3.533 MB / 407.9 MB, free: 4.289 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001501/0.05239, allocations: 1.752 MB / 409.6 MB, free: 2.496 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001843/0.05423, allocations: 2.426 MB / 412 MB, free: 68 kB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.144/0.1982, allocations: 1.576 MB / 413.6 MB, free: 23.82 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001251/0.1995, allocations: 321.9 kB / 413.9 MB, free: 23.82 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009684/0.2091, allocations: 3.318 MB / 417.2 MB, free: 23.82 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007782/0.2099, allocations: 0.7795 MB / 418 MB, free: 23.82 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002111/0.212, allocations: 1.17 MB / 419.2 MB, free: 23.82 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.2262, allocations: 6.438 MB / 425.6 MB, free: 23.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2263, allocations: 3.281 kB / 425.6 MB, free: 23.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2263, allocations: 3.156 kB / 425.6 MB, free: 23.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.67e-05/0.2263, allocations: 0.5469 kB / 425.6 MB, free: 23.42 MB / 330.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.007272/0.2336, allocations: 3.784 MB / 429.4 MB, free: 21.76 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2336, allocations: 10.09 kB / 429.4 MB, free: 21.76 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001734/0.2354, allocations: 1.01 MB / 430.4 MB, free: 21.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.2367, allocations: 1.288 MB / 431.7 MB, free: 21.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.2369, allocations: 304.8 kB / 432 MB, free: 20.92 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002762/0.2371, allocations: 273.3 kB / 432.3 MB, free: 20.92 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.2392, allocations: 2.265 MB / 434.6 MB, free: 20.63 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.218e-05/0.2393, allocations: 4.25 kB / 434.6 MB, free: 20.63 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000176/0.2395, allocations: 115 kB / 434.7 MB, free: 20.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.213e-05/0.2395, allocations: 64.48 kB / 434.7 MB, free: 20.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002126/0.2416, allocations: 2.161 MB / 436.9 MB, free: 20.54 MB / 330.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.007849/0.2495, allocations: 7.324 MB / 444.2 MB, free: 17.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/0.2516, allocations: 2.372 MB / 446.6 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005976/0.2522, allocations: 0.6681 MB / 447.3 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0114/0.2636, allocations: 5.641 MB / 452.9 MB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.538e-05/0.2636, allocations: 59.39 kB / 453 MB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008786/0.2645, allocations: 218.1 kB / 453.2 MB, free: 8.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=177): time 7.163e-06/0.2645, allocations: 0 / 453.2 MB, free: 8.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=251): time 0.02442/0.2889, allocations: 8.491 MB / 461.7 MB, free: 448 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.289, allocations: 80.78 kB / 461.7 MB, free: 360 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009727/0.2899, allocations: 1.132 MB / 462.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001743/0.2901, allocations: 65.7 kB / 462.9 MB, free: 15.31 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006625/0.2908, allocations: 1.25 MB / 464.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006863/0.2915, allocations: 0.9058 MB / 465.1 MB, free: 13.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006009/0.2921, allocations: 0.575 MB / 465.7 MB, free: 12.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2922, allocations: 485.3 kB / 466.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006705/0.2928, allocations: 473.7 kB / 466.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.2943, allocations: 1.719 MB / 468.3 MB, free: 9.621 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.2968, allocations: 2.51 MB / 470.8 MB, free: 6.73 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.449e-05/0.2968, allocations: 15.31 kB / 470.8 MB, free: 6.719 MB / 346.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.005042/0.3018, allocations: 2.915 MB / 473.8 MB, free: 3.938 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/0.3019, allocations: 19.73 kB / 473.8 MB, free: 3.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-05/0.3019, allocations: 28 kB / 473.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003687/0.3056, allocations: 1.187 MB / 475 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/0.3074, allocations: 0.6469 MB / 475.6 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006589/0.314, allocations: 8.039 MB / 483.7 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/0.3156, allocations: 91.98 kB / 483.8 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002788/0.3159, allocations: 148.6 kB / 483.9 MB, free: 9.551 MB / 362.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.0008512/0.3168, allocations: 358.4 kB / 484.3 MB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004941/0.3173, allocations: 274.7 kB / 484.5 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004722/0.322, allocations: 2.695 MB / 487.2 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.54e-05/0.322, allocations: 24 kB / 487.3 MB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.322, allocations: 4 kB / 487.3 MB, free: 6.195 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.77e-05/0.322, allocations: 12.61 kB / 487.3 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007654/0.3297, allocations: 4.353 MB / 491.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.3297, allocations: 0 / 491.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.3307, allocations: 441.3 kB / 492.1 MB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003333/0.334, allocations: 1.087 MB / 493.1 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002618/0.3343, allocations: 99.92 kB / 493.2 MB, free: 448 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00544/0.3397, allocations: 7.718 MB / 0.4892 GB, free: 8.453 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.3397, allocations: 11.56 kB / 0.4892 GB, free: 8.445 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005575/0.3453, allocations: 3.171 MB / 0.4923 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004663/0.3458, allocations: 178.7 kB / 0.4925 GB, free: 5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002539/0.346, allocations: 48 kB / 0.4925 GB, free: 4.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006884/0.3467, allocations: 59.98 kB / 0.4926 GB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003392/0.3471, allocations: 241 kB / 0.4928 GB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001561/0.3472, allocations: 95.92 kB / 0.4929 GB, free: 4.566 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004624/0.3477, allocations: 0.5694 MB / 0.4935 GB, free: 4.051 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3477, allocations: 4 kB / 0.4935 GB, free: 4.047 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003406/0.3511, allocations: 1.438 MB / 0.4949 GB, free: 2.605 MB / 378.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.002662/0.3538, allocations: 1.585 MB / 0.4964 GB, free: 1.203 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003654/0.3574, allocations: 2.525 MB / 0.4989 GB, free: 14.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.3574, allocations: 0 / 0.4989 GB, free: 14.72 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00184/0.3593, allocations: 1.588 MB / 0.5004 GB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001589/0.3608, allocations: 452.6 kB / 0.5009 GB, free: 12.7 MB / 394.7 MB Error: Error parsing unit kDa: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006617/0.3675, allocations: 4.26 MB / 0.505 GB, free: 8.395 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.3679, allocations: 444.2 kB / 0.5055 GB, free: 7.934 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001362/0.3692, allocations: 0.4885 MB / 0.5059 GB, free: 7.441 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.3704, allocations: 0.6888 MB / 0.5066 GB, free: 6.758 MB / 394.7 MB Notification: Performance of SimCode: time 2.023e-06/0.3704, allocations: 0 / 0.5066 GB, free: 6.758 MB / 394.7 MB Notification: Performance of Templates: time 0.199/0.5693, allocations: 61.34 MB / 0.5665 GB, free: 154.2 MB / 442.7 MB " [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=240 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.LeadAcidBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.792001738678664]