Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.LeadAcidBattery.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") translateModel(Chemical.Examples.LeadAcidBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.LeadAcidBattery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 196.7 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.159/1.159, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1587/0.1587, allocations: 15.33 MB / 305.7 MB, free: 15.32 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 63.91 kB / 370.3 MB, free: 3.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08152/0.08267, allocations: 53.61 MB / 423.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01081/0.09351, allocations: 11.63 MB / 435.6 MB, free: 2.645 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1567/0.2502, allocations: 33.75 MB / 469.3 MB, free: 28.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001029/0.2513, allocations: 27.28 kB / 469.3 MB, free: 28.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.2526, allocations: 0.7481 MB / 470.1 MB, free: 28.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00437/0.257, allocations: 2.763 MB / 472.9 MB, free: 26.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00746/0.2644, allocations: 4.426 MB / 477.3 MB, free: 23.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002156/0.2666, allocations: 3.395 MB / 480.7 MB, free: 22.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001569/0.2682, allocations: 2.074 MB / 482.7 MB, free: 21.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001471/0.2697, allocations: 1.646 MB / 484.4 MB, free: 20.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001778/0.2714, allocations: 1.861 MB / 486.3 MB, free: 19.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004368/0.2719, allocations: 323.2 kB / 486.6 MB, free: 19.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009029/0.2809, allocations: 3.726 MB / 490.3 MB, free: 18.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005411/0.2815, allocations: 0.7497 MB / 491 MB, free: 18.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001981/0.2835, allocations: 1.577 MB / 492.6 MB, free: 17.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01039/0.2939, allocations: 7.206 MB / 499.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2939, allocations: 0 / 499.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2939, allocations: 0 / 499.8 MB, free: 14.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001272/0.294, allocations: 5.125 kB / 499.8 MB, free: 14.22 MB / 366.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.008794/0.3028, allocations: 3.694 MB / 0.4917 GB, free: 12.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.3029, allocations: 13.56 kB / 0.4917 GB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/0.3056, allocations: 0.6254 MB / 0.4923 GB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002063/0.3077, allocations: 1.455 MB / 0.4938 GB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.3078, allocations: 253.9 kB / 0.494 GB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003646/0.3082, allocations: 275 kB / 0.4943 GB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003845/0.312, allocations: 3.115 MB / 0.4973 GB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.063e-05/0.3121, allocations: 3.938 kB / 0.4973 GB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002349/0.3123, allocations: 110.5 kB / 0.4974 GB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.41e-05/0.3124, allocations: 63.78 kB / 0.4975 GB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00435/0.3167, allocations: 3.84 MB / 0.5012 GB, free: 6.207 MB / 366.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.01212/0.3289, allocations: 9.954 MB / 0.511 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004243/0.3331, allocations: 3.456 MB / 0.5143 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001683/0.3348, allocations: 1.336 MB / 0.5156 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01282/0.3476, allocations: 10.86 MB / 0.5262 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.3477, allocations: 48.56 kB / 0.5263 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007323/0.3484, allocations: 206 kB / 0.5265 GB, free: 10.67 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.419e-06/0.3484, allocations: 0 / 0.5265 GB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04183/0.3903, allocations: 12.28 MB / 0.5385 GB, free: 14.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.3904, allocations: 77.41 kB / 0.5386 GB, free: 14.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.3919, allocations: 1.168 MB / 0.5397 GB, free: 12.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002172/0.3921, allocations: 65.7 kB / 0.5398 GB, free: 12.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007175/0.3928, allocations: 1.149 MB / 0.5409 GB, free: 11.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007228/0.3936, allocations: 0.8626 MB / 0.5417 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008262/0.3944, allocations: 0.565 MB / 0.5423 GB, free: 10.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.737e-05/0.3945, allocations: 305.1 kB / 0.5426 GB, free: 9.977 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.3962, allocations: 1.009 MB / 0.5436 GB, free: 8.965 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/0.3984, allocations: 1.901 MB / 0.5454 GB, free: 6.672 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004199/0.4026, allocations: 3.204 MB / 0.5485 GB, free: 3.047 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.741e-05/0.4026, allocations: 8 kB / 0.5485 GB, free: 3.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.009563/0.4122, allocations: 4.129 MB / 0.5526 GB, free: 14.84 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.4123, allocations: 20 kB / 0.5526 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.874e-05/0.4123, allocations: 28 kB / 0.5526 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005646/0.418, allocations: 1.357 MB / 0.554 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002323/0.4203, allocations: 0.6514 MB / 0.5546 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01041/0.4307, allocations: 8.281 MB / 0.5627 GB, free: 4.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002268/0.433, allocations: 107.9 kB / 0.5628 GB, free: 3.957 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004787/0.4335, allocations: 168.6 kB / 0.5629 GB, free: 3.793 MB / 430.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.001216/0.4348, allocations: 0.5086 MB / 0.5634 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000568/0.4353, allocations: 201.5 kB / 0.5636 GB, free: 3.074 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009854/0.4452, allocations: 3.889 MB / 0.5674 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.4452, allocations: 27.98 kB / 0.5675 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/0.4453, allocations: 4 kB / 0.5675 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.538e-05/0.4453, allocations: 11.95 kB / 0.5675 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.4578, allocations: 6.332 MB / 0.5737 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.4579, allocations: 4 kB / 0.5737 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001791/0.4597, allocations: 443.8 kB / 0.5741 GB, free: 8.152 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005826/0.4655, allocations: 1.264 MB / 0.5753 GB, free: 6.871 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004398/0.466, allocations: 99.92 kB / 0.5754 GB, free: 6.773 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009201/0.4752, allocations: 7.798 MB / 0.583 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4752, allocations: 0 / 0.583 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01103/0.4863, allocations: 5.043 MB / 0.5879 GB, free: 9.336 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005397/0.4868, allocations: 250.5 kB / 0.5882 GB, free: 9.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004797/0.4873, allocations: 56 kB / 0.5882 GB, free: 9.016 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/0.4888, allocations: 63.97 kB / 0.5883 GB, free: 8.953 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004708/0.4893, allocations: 225.7 kB / 0.5885 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002234/0.4895, allocations: 115.9 kB / 0.5886 GB, free: 8.617 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009708/0.4905, allocations: 0.7272 MB / 0.5893 GB, free: 7.891 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4905, allocations: 0 / 0.5893 GB, free: 7.891 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004358/0.4949, allocations: 1.483 MB / 0.5908 GB, free: 6.406 MB / 462.1 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.003435/0.4983, allocations: 1.496 MB / 0.5922 GB, free: 4.902 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009708/0.5081, allocations: 3.951 MB / 0.5961 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5081, allocations: 0 / 0.5961 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1447/0.6528, allocations: 2.025 MB / 0.5981 GB, free: 134.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001901/0.6548, allocations: 401.7 kB / 0.5985 GB, free: 134.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006308/0.6611, allocations: 4.803 MB / 0.6032 GB, free: 133.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00075/0.6618, allocations: 1.595 MB / 0.6047 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001973/0.6638, allocations: 0.4992 MB / 0.6052 GB, free: 132.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006466/0.6645, allocations: 351.4 kB / 0.6055 GB, free: 132.5 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.6645, allocations: 1.969 kB / 0.6055 GB, free: 132.5 MB / 462.1 MB Notification: Performance of Templates: time 0.06266/0.7272, allocations: 54.37 MB / 0.6586 GB, free: 106.3 MB / 462.1 MB make -j1 -f Chemical_Chemical.Examples.LeadAcidBattery.makefile (rm -f Chemical_Chemical.Examples.LeadAcidBattery.pipe ; mkfifo Chemical_Chemical.Examples.LeadAcidBattery.pipe ; head -c 1048576 < Chemical_Chemical.Examples.LeadAcidBattery.pipe >> ../files/Chemical_Chemical.Examples.LeadAcidBattery.sim & ./Chemical_Chemical.Examples.LeadAcidBattery -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.LeadAcidBattery.pipe 2>&1)