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.0008112/0.0008112, allocations: 92.16 kB / 16.02 MB, free: 80 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.001124/0.001124, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.4/1.4, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1924/0.1924, allocations: 15.26 MB / 307.4 MB, free: 15.71 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003334/0.0003335, allocations: 8 kB / 372.8 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2711, allocations: 54.62 MB / 427.4 MB, free: 40.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.009105/0.2803, allocations: 12.78 MB / 440.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.027/0.3073, allocations: 33.33 MB / 473.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002165/0.3095, allocations: 50.84 kB / 473.5 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001843/0.3114, allocations: 0.6661 MB / 474.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007381/0.3188, allocations: 2.449 MB / 476.7 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01119/0.33, allocations: 3.87 MB / 480.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004859/0.3349, allocations: 3.299 MB / 483.8 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00241/0.3373, allocations: 1.676 MB / 485.5 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002748/0.3401, allocations: 1.529 MB / 487 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003036/0.3431, allocations: 1.709 MB / 488.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006339/0.3438, allocations: 170.8 kB / 488.9 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.012/0.3558, allocations: 3.604 MB / 492.5 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001263/0.3571, allocations: 0.5924 MB / 493.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002406/0.3595, allocations: 1.432 MB / 494.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009324/0.3688, allocations: 5.297 MB / 499.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3689, allocations: 3.938 kB / 499.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3689, allocations: 0 / 499.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.5e-05/0.369, allocations: 4 kB / 499.8 MB, free: 13.36 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.007735/0.3767, allocations: 3.067 MB / 0.4911 GB, free: 10.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.3768, allocations: 8.031 kB / 0.4911 GB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002878/0.3797, allocations: 0.6123 MB / 0.4917 GB, free: 9.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.3823, allocations: 1.416 MB / 0.4931 GB, free: 8.148 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002198/0.3825, allocations: 265 kB / 0.4934 GB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005343/0.3831, allocations: 271.8 kB / 0.4936 GB, free: 7.609 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005442/0.3885, allocations: 3.12 MB / 0.4967 GB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.574e-05/0.3886, allocations: 0 / 0.4967 GB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002695/0.3889, allocations: 108 kB / 0.4968 GB, free: 4.312 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.462e-05/0.3889, allocations: 67.94 kB / 0.4968 GB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006251/0.3952, allocations: 3.842 MB / 0.5006 GB, free: 400 kB / 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.01667/0.4119, allocations: 9.876 MB / 0.5102 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004791/0.4167, allocations: 3.464 MB / 0.5136 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002074/0.4188, allocations: 1.336 MB / 0.5149 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01531/0.4341, allocations: 10.66 MB / 0.5253 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.4342, allocations: 52.56 kB / 0.5254 GB, free: 5.32 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001013/0.4352, allocations: 205.9 kB / 0.5256 GB, free: 5.117 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.208e-06/0.4352, allocations: 0 / 0.5256 GB, free: 5.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=251): time 0.04839/0.4836, allocations: 12.41 MB / 0.5377 GB, free: 8.551 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.4837, allocations: 77.41 kB / 0.5378 GB, free: 8.461 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.4853, allocations: 1.168 MB / 0.5389 GB, free: 7.281 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003674/0.4857, allocations: 65.7 kB / 0.539 GB, free: 7.211 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007228/0.4864, allocations: 1.149 MB / 0.5401 GB, free: 6.047 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008731/0.4873, allocations: 0.8627 MB / 0.5409 GB, free: 5.172 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003376/0.4876, allocations: 236.1 kB / 0.5411 GB, free: 4.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.614e-05/0.4877, allocations: 301.1 kB / 0.5414 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001889/0.4896, allocations: 1.009 MB / 0.5424 GB, free: 3.625 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00241/0.492, allocations: 1.905 MB / 0.5443 GB, free: 1.328 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004795/0.4969, allocations: 3.204 MB / 0.5474 GB, free: 13.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.278e-05/0.4969, allocations: 8 kB / 0.5474 GB, free: 13.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.01082/0.5077, allocations: 4.148 MB / 0.5515 GB, free: 9.48 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.5078, allocations: 16 kB / 0.5515 GB, free: 9.465 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.365e-05/0.5079, allocations: 28 kB / 0.5515 GB, free: 9.438 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00672/0.5146, allocations: 1.37 MB / 0.5528 GB, free: 8.051 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002678/0.5173, allocations: 0.6553 MB / 0.5535 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/0.5288, allocations: 7.723 MB / 0.561 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002682/0.5315, allocations: 171.6 kB / 0.5612 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003703/0.5319, allocations: 167.9 kB / 0.5614 GB, free: 14.92 MB / 446.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.001185/0.5331, allocations: 0.5125 MB / 0.5619 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004018/0.5335, allocations: 197.6 kB / 0.562 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01071/0.5442, allocations: 3.902 MB / 0.5659 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.403e-05/0.5442, allocations: 24 kB / 0.5659 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.5443, allocations: 4 kB / 0.5659 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-05/0.5443, allocations: 11.95 kB / 0.5659 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01433/0.5586, allocations: 6.343 MB / 0.5721 GB, free: 3.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/0.5587, allocations: 4.344 kB / 0.5721 GB, free: 3.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/0.5608, allocations: 439.4 kB / 0.5725 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006423/0.5672, allocations: 1.291 MB / 0.5738 GB, free: 1.938 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004523/0.5677, allocations: 99.92 kB / 0.5739 GB, free: 1.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009823/0.5775, allocations: 7.235 MB / 0.5809 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.5776, allocations: 7.938 kB / 0.5809 GB, free: 10.17 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.59, allocations: 5.051 MB / 0.5859 GB, free: 4.965 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006841/0.5907, allocations: 254.5 kB / 0.5861 GB, free: 4.695 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000434/0.5911, allocations: 55.94 kB / 0.5862 GB, free: 4.641 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/0.5927, allocations: 99.8 kB / 0.5863 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005378/0.5933, allocations: 225.8 kB / 0.5865 GB, free: 4.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002443/0.5935, allocations: 111.9 kB / 0.5866 GB, free: 4.211 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001085/0.5946, allocations: 0.7272 MB / 0.5873 GB, free: 3.484 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5946, allocations: 0 / 0.5873 GB, free: 3.484 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004949/0.5996, allocations: 1.472 MB / 0.5887 GB, free: 2.012 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.003673/0.6033, allocations: 1.491 MB / 0.5902 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2001/0.8034, allocations: 3.499 MB / 0.5936 GB, free: 134.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.8034, allocations: 2.875 kB / 0.5936 GB, free: 134.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0035/0.8069, allocations: 2.02 MB / 0.5956 GB, free: 134.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.8096, allocations: 368 kB / 0.5959 GB, free: 134.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008245/0.8178, allocations: 6.115 MB / 0.6019 GB, free: 131.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.8189, allocations: 1.598 MB / 0.6035 GB, free: 130.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.8202, allocations: 441.8 kB / 0.6039 GB, free: 130.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/0.8202, allocations: 0 / 0.6039 GB, free: 130.8 MB / 462.1 MB Notification: Performance of Templates: time 0.09024/0.9104, allocations: 88.95 MB / 0.6907 GB, free: 66.93 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)