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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.08032/0.08032, allocations: 15.29 MB / 31.09 MB, free: 3.105 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 194.1 kB / 36.14 MB, free: 2.137 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 222.9 MB / 264 MB, free: 4.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009509/0.0009509, allocations: 107.1 kB / 318.4 MB, free: 3.438 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 59.03 kB / 382.7 MB, free: 48.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08554/0.08662, allocations: 53.62 MB / 436.3 MB, free: 1.027 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.LeadAcidBattery): time 0.01212/0.09879, allocations: 13.3 MB / 449.6 MB, free: 3.668 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03345/0.1323, allocations: 33.45 MB / 483.1 MB, free: 2.102 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002566/0.1349, allocations: 59.56 kB / 483.1 MB, free: 2.043 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002407/0.1373, allocations: 0.6715 MB / 483.8 MB, free: 1.367 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008451/0.1458, allocations: 2.368 MB / 486.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01131/0.1572, allocations: 3.886 MB / 490.1 MB, free: 11.07 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004441/0.1616, allocations: 3.313 MB / 493.4 MB, free: 7.75 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002369/0.164, allocations: 1.794 MB / 495.2 MB, free: 5.91 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002269/0.1663, allocations: 1.609 MB / 496.8 MB, free: 4.297 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002569/0.1689, allocations: 1.822 MB / 498.6 MB, free: 2.469 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006351/0.1695, allocations: 216 kB / 498.8 MB, free: 2.258 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009754/0.1793, allocations: 3.556 MB / 0.4906 GB, free: 14.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008007/0.1801, allocations: 0.658 MB / 0.4912 GB, free: 14.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.1819, allocations: 1.489 MB / 0.4927 GB, free: 12.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.1948, allocations: 6.726 MB / 0.4993 GB, free: 5.789 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1949, allocations: 0 / 0.4993 GB, free: 5.789 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1949, allocations: 0 / 0.4993 GB, free: 5.789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.552e-05/0.1949, allocations: 0 / 0.4993 GB, free: 5.789 MB / 378.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.006213/0.2012, allocations: 3.681 MB / 0.5029 GB, free: 2.047 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2012, allocations: 12.88 kB / 0.5029 GB, free: 2.035 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002187/0.2034, allocations: 0.6098 MB / 0.5035 GB, free: 1.422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1771/0.3805, allocations: 1.458 MB / 0.5049 GB, free: 69.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003405/0.3809, allocations: 259.4 kB / 0.5051 GB, free: 69.07 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008878/0.3818, allocations: 271.6 kB / 0.5054 GB, free: 69.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004655/0.3865, allocations: 3.114 MB / 0.5084 GB, free: 68.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.3865, allocations: 2.156 kB / 0.5084 GB, free: 68.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002119/0.3867, allocations: 107.5 kB / 0.5085 GB, free: 68.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.506e-05/0.3868, allocations: 62.66 kB / 0.5086 GB, free: 68.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005865/0.3927, allocations: 3.842 MB / 0.5124 GB, free: 68.83 MB / 378.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.01558/0.4083, allocations: 9.896 MB / 0.522 GB, free: 64.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004256/0.4125, allocations: 3.47 MB / 0.5254 GB, free: 62.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.4144, allocations: 1.343 MB / 0.5267 GB, free: 62.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01291/0.4273, allocations: 10.88 MB / 0.5373 GB, free: 52.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.4274, allocations: 52.47 kB / 0.5374 GB, free: 52.7 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009591/0.4284, allocations: 201.1 kB / 0.5376 GB, free: 52.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=177): time 4.288e-06/0.4284, allocations: 0 / 0.5376 GB, free: 52.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=251): time 0.04016/0.4686, allocations: 12.28 MB / 0.5496 GB, free: 43.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.4686, allocations: 77.41 kB / 0.5496 GB, free: 43.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.4699, allocations: 1.168 MB / 0.5508 GB, free: 42.63 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00024/0.4702, allocations: 69.7 kB / 0.5509 GB, free: 42.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004276/0.4706, allocations: 1.144 MB / 0.552 GB, free: 41.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005897/0.4712, allocations: 0.8716 MB / 0.5528 GB, free: 40.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000827/0.4721, allocations: 0.5572 MB / 0.5534 GB, free: 39.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.323e-05/0.4721, allocations: 309.1 kB / 0.5537 GB, free: 39.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001614/0.4737, allocations: 1.013 MB / 0.5546 GB, free: 38.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.4756, allocations: 1.905 MB / 0.5565 GB, free: 36.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003736/0.4794, allocations: 3.196 MB / 0.5596 GB, free: 32.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.028e-05/0.4794, allocations: 8 kB / 0.5596 GB, free: 32.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=391) (initialization): time 0.008988/0.4884, allocations: 4.121 MB / 0.5637 GB, free: 28.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.077e-05/0.4885, allocations: 19.98 kB / 0.5637 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.292e-05/0.4885, allocations: 29.25 kB / 0.5637 GB, free: 28.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005646/0.4942, allocations: 1.364 MB / 0.565 GB, free: 27.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/0.4965, allocations: 0.655 MB / 0.5657 GB, free: 26.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009065/0.5056, allocations: 7.691 MB / 0.5732 GB, free: 18.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002416/0.508, allocations: 167.7 kB / 0.5734 GB, free: 18.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000475/0.5085, allocations: 171.9 kB / 0.5735 GB, free: 18.04 MB / 378.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.001147/0.5097, allocations: 0.5112 MB / 0.574 GB, free: 17.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005063/0.5102, allocations: 193.6 kB / 0.5742 GB, free: 17.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009088/0.5193, allocations: 3.897 MB / 0.578 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.5193, allocations: 28 kB / 0.578 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/0.5194, allocations: 4 kB / 0.578 GB, free: 13.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.5194, allocations: 12.83 kB / 0.578 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/0.5311, allocations: 6.336 MB / 0.5842 GB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.5311, allocations: 0 / 0.5842 GB, free: 6.891 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/0.5327, allocations: 439.8 kB / 0.5847 GB, free: 6.461 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005115/0.5379, allocations: 1.273 MB / 0.5859 GB, free: 5.176 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003/0.5382, allocations: 99.92 kB / 0.586 GB, free: 5.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007807/0.546, allocations: 7.203 MB / 0.593 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.546, allocations: 11.94 kB / 0.593 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04206/0.5881, allocations: 19.69 MB / 0.6123 GB, free: 9.188 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003882/0.5885, allocations: 254.5 kB / 0.6125 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004286/0.5889, allocations: 63.94 kB / 0.6126 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/0.5905, allocations: 87.95 kB / 0.6127 GB, free: 8.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007429/0.5913, allocations: 225.7 kB / 0.6129 GB, free: 8.547 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003939/0.5917, allocations: 111.9 kB / 0.613 GB, free: 8.438 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001374/0.593, allocations: 0.7311 MB / 0.6137 GB, free: 7.707 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5931, allocations: 0 / 0.6137 GB, free: 7.707 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005182/0.5982, allocations: 1.718 MB / 0.6154 GB, free: 6.137 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.002954/0.6012, allocations: 1.483 MB / 0.6168 GB, free: 4.945 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006938/0.6082, allocations: 3.486 MB / 0.6202 GB, free: 1.371 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.812e-06/0.6082, allocations: 4.438 kB / 0.6202 GB, free: 1.367 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003902/0.6121, allocations: 2.028 MB / 0.6222 GB, free: 15.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002484/0.6146, allocations: 364.5 kB / 0.6226 GB, free: 14.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.6262, allocations: 7.668 MB / 0.63 GB, free: 7.137 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001623/0.6278, allocations: 1.675 MB / 0.6317 GB, free: 5.426 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002784/0.6306, allocations: 0.5323 MB / 0.6322 GB, free: 4.891 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/0.6316, allocations: 359.2 kB / 0.6325 GB, free: 4.551 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/0.6316, allocations: 0 / 0.6325 GB, free: 4.551 MB / 426.7 MB Notification: Performance of Templates: time 0.2452/0.8769, allocations: 58.55 MB / 0.6897 GB, free: 148.4 MB / 474.7 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)