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.001059/0.001059, allocations: 77.97 kB / 20.66 MB, free: 3.844 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.001158/0.001158, 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 1.019/1.019, allocations: 177.1 MB / 204.5 MB, free: 5.477 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.08575/0.08575, allocations: 17.47 MB / 278.5 MB, free: 11.37 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.623e-06/1.623e-06, allocations: 0 / 354.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.333e-05, allocations: 2.312 kB / 354.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.LeadAcidBattery): time 0.01299/0.01301, allocations: 11.25 MB / 366.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02448/0.03749, allocations: 30.64 MB / 396.7 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001626/0.03912, allocations: 39.69 kB / 396.7 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.04037, allocations: 0.6587 MB / 397.4 MB, free: 15.83 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005381/0.04576, allocations: 2.812 MB / 400.2 MB, free: 13 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008623/0.05438, allocations: 4.232 MB / 404.4 MB, free: 8.742 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.003151/0.05753, allocations: 3.533 MB / 408 MB, free: 5.191 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001659/0.05919, allocations: 1.752 MB / 409.7 MB, free: 3.395 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00174/0.06093, allocations: 2.422 MB / 412.1 MB, free: 0.9688 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00146/0.06239, allocations: 1.59 MB / 413.7 MB, free: 15.38 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003058/0.06269, allocations: 320 kB / 414 MB, free: 15.06 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006027/0.06872, allocations: 3.326 MB / 417.4 MB, free: 11.73 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004466/0.06917, allocations: 0.7711 MB / 418.1 MB, free: 10.96 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000816/0.06998, allocations: 1.173 MB / 419.3 MB, free: 9.781 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007413/0.0774, allocations: 6.428 MB / 425.7 MB, free: 3.328 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.0774, allocations: 0 / 425.7 MB, free: 3.328 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.0774, allocations: 0 / 425.7 MB, free: 3.328 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.613e-05/0.07743, allocations: 0 / 425.7 MB, free: 3.328 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.005681/0.08311, allocations: 3.801 MB / 429.5 MB, free: 15.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.08315, allocations: 8.031 kB / 429.6 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002788/0.08594, allocations: 1.011 MB / 430.6 MB, free: 14.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002005/0.08794, allocations: 1.279 MB / 431.8 MB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.08811, allocations: 308.6 kB / 432.1 MB, free: 12.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003018/0.08841, allocations: 272.3 kB / 432.4 MB, free: 12.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002292/0.0907, allocations: 2.271 MB / 434.7 MB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.759e-05/0.09074, allocations: 4 kB / 434.7 MB, free: 10.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001874/0.09093, allocations: 104 kB / 434.8 MB, free: 10.08 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-05/0.09096, allocations: 64 kB / 434.8 MB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.0932, allocations: 2.159 MB / 437 MB, free: 7.824 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.008017/0.1012, allocations: 7.328 MB / 444.3 MB, free: 360 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1384/0.2396, allocations: 2.357 MB / 446.7 MB, free: 83.75 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009334/0.2405, allocations: 0.6767 MB / 447.4 MB, free: 83.72 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007081/0.2476, allocations: 5.635 MB / 453 MB, free: 83.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.2476, allocations: 57.14 kB / 453.1 MB, free: 83.14 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004638/0.2481, allocations: 215.9 kB / 453.3 MB, free: 83.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 4.188e-06/0.2481, allocations: 4.688 kB / 453.3 MB, free: 83.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.01774/0.2658, allocations: 8.489 MB / 461.8 MB, free: 82.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.2659, allocations: 83.98 kB / 461.8 MB, free: 82.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006332/0.2665, allocations: 1.126 MB / 463 MB, free: 82.13 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.2666, allocations: 64.3 kB / 463 MB, free: 82.1 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004049/0.267, allocations: 1.259 MB / 464.3 MB, free: 81.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003761/0.2674, allocations: 0.9074 MB / 465.2 MB, free: 81.05 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005297/0.2679, allocations: 0.5781 MB / 465.8 MB, free: 81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.393e-05/0.268, allocations: 479.8 kB / 466.2 MB, free: 80.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005633/0.2685, allocations: 467.2 kB / 466.7 MB, free: 80.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008874/0.2694, allocations: 1.723 MB / 468.4 MB, free: 79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001723/0.2711, allocations: 2.52 MB / 470.9 MB, free: 77.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.2711, allocations: 11.2 kB / 471 MB, free: 77.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.004885/0.276, allocations: 2.912 MB / 473.9 MB, free: 77.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.2761, allocations: 17.09 kB / 473.9 MB, free: 77.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.225e-05/0.2761, allocations: 32.44 kB / 473.9 MB, free: 77.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003658/0.2797, allocations: 1.185 MB / 475.1 MB, free: 76.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.281, allocations: 0.6479 MB / 475.8 MB, free: 76.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005002/0.286, allocations: 8.039 MB / 483.8 MB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.2871, allocations: 95.86 kB / 483.9 MB, free: 70.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002187/0.2873, allocations: 143.5 kB / 484 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.0006227/0.2879, allocations: 358 kB / 484.4 MB, free: 70.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003899/0.2883, allocations: 270.5 kB / 484.6 MB, free: 70.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004136/0.2925, allocations: 2.69 MB / 487.3 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.2925, allocations: 28.34 kB / 487.4 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2925, allocations: 5.391 kB / 487.4 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.528e-05/0.2925, allocations: 15.86 kB / 487.4 MB, free: 69.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005761/0.2983, allocations: 4.357 MB / 491.7 MB, free: 68.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.2983, allocations: 3.25 kB / 491.7 MB, free: 68.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008702/0.2991, allocations: 439.3 kB / 492.2 MB, free: 68.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002936/0.3021, allocations: 1.09 MB / 493.3 MB, free: 68.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.3022, allocations: 92.78 kB / 493.3 MB, free: 68.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004127/0.3063, allocations: 7.731 MB / 0.4893 GB, free: 61.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.3063, allocations: 4.5 kB / 0.4893 GB, free: 61.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00474/0.3111, allocations: 3.167 MB / 0.4924 GB, free: 60.32 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002429/0.3113, allocations: 185.2 kB / 0.4926 GB, free: 60.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.3115, allocations: 53.08 kB / 0.4927 GB, free: 60.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005864/0.3121, allocations: 56.77 kB / 0.4927 GB, free: 60.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003615/0.3125, allocations: 237 kB / 0.4929 GB, free: 60.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.3126, allocations: 96.48 kB / 0.493 GB, free: 60.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003816/0.313, allocations: 0.5691 MB / 0.4936 GB, free: 59.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.313, allocations: 0 / 0.4936 GB, free: 59.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002723/0.3157, allocations: 1.442 MB / 0.495 GB, free: 59.68 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.001479/0.3172, allocations: 1.588 MB / 0.4965 GB, free: 59.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.3197, allocations: 2.529 MB / 0.499 GB, free: 58.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3197, allocations: 7.906 kB / 0.499 GB, free: 58.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.321, allocations: 1.579 MB / 0.5006 GB, free: 57.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009355/0.3219, allocations: 451.3 kB / 0.501 GB, free: 57.32 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.004341/0.3262, allocations: 4.264 MB / 0.5052 GB, free: 53.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/0.3265, allocations: 437.4 kB / 0.5056 GB, free: 53.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001012/0.3275, allocations: 489.4 kB / 0.506 GB, free: 52.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001091/0.3286, allocations: 0.6913 MB / 0.5067 GB, free: 52.03 MB / 410.7 MB Notification: Performance of SimCode: time 6.92e-07/0.3286, allocations: 0 / 0.5067 GB, free: 52.03 MB / 410.7 MB Notification: Performance of Templates: time 0.04885/0.3775, allocations: 61.35 MB / 0.5666 GB, free: 9.859 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.748326634056866]