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.1246/0.1246, allocations: 15.26 MB / 30.21 MB, free: 3.301 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.0009238/0.0009238, allocations: 173.3 kB / 35.29 MB, free: 2.379 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.372/1.372, allocations: 223.2 MB / 263.4 MB, free: 6.906 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.0008744/0.0008744, allocations: 85.83 kB / 318.8 MB, free: 3.867 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003211/0.0003211, allocations: 8.312 kB / 383.9 MB, free: 50.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0989/0.09923, allocations: 54.64 MB / 438.6 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3765/0.4758, allocations: 103.1 MB / 0.529 GB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/0.476, allocations: 70.16 kB / 0.529 GB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2105/0.6865, allocations: 93.39 MB / 0.6202 GB, free: 56 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6866, allocations: 3.938 kB / 0.6202 GB, free: 52 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001134/0.6867, allocations: 60.03 kB / 0.6203 GB, free: 15.99 MB / 426.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.006721/0.6934, allocations: 2.949 MB / 0.6232 GB, free: 12.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.6935, allocations: 8.031 kB / 0.6232 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002248/0.6957, allocations: 0.6868 MB / 0.6239 GB, free: 12.28 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002556/0.6983, allocations: 1.407 MB / 0.6252 GB, free: 10.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.6985, allocations: 256.7 kB / 0.6255 GB, free: 10.56 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003751/0.6989, allocations: 267.8 kB / 0.6257 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006001/0.7049, allocations: 4.472 MB / 0.6301 GB, free: 5.754 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.183e-05/0.7049, allocations: 0 / 0.6301 GB, free: 5.754 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002455/0.7052, allocations: 108 kB / 0.6302 GB, free: 5.648 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.899e-05/0.7053, allocations: 67.95 kB / 0.6303 GB, free: 5.582 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007597/0.7129, allocations: 6.236 MB / 0.6364 GB, free: 15.33 MB / 442.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.02147/0.7343, allocations: 12.93 MB / 0.649 GB, free: 2.004 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005497/0.7399, allocations: 4.608 MB / 0.6535 GB, free: 13.27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009805/0.7409, allocations: 0.6608 MB / 0.6541 GB, free: 12.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/0.7409, allocations: 61.08 kB / 0.6542 GB, free: 12.54 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001342/0.7423, allocations: 253.8 kB / 0.6544 GB, free: 12.29 MB / 458.7 MB Notification: Performance of pre-optimization done (n=272): time 5.861e-06/0.7423, allocations: 0 / 0.6544 GB, free: 12.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=405): time 0.3228/1.065, allocations: 34.21 MB / 0.6878 GB, free: 83.76 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/1.065, allocations: 96.61 kB / 0.6879 GB, free: 83.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/1.067, allocations: 1.021 MB / 0.6889 GB, free: 83.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004201/1.067, allocations: 89.67 kB / 0.689 GB, free: 83.53 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005157/1.068, allocations: 0.8887 MB / 0.6899 GB, free: 83.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009476/1.069, allocations: 1.351 MB / 0.6912 GB, free: 82.51 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/1.069, allocations: 71.06 kB / 0.6913 GB, free: 82.51 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/1.069, allocations: 443.7 kB / 0.6917 GB, free: 82.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003385/1.072, allocations: 2.424 MB / 0.6941 GB, free: 82.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003795/1.076, allocations: 2.912 MB / 0.6969 GB, free: 81.78 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003813/1.08, allocations: 2.668 MB / 0.6995 GB, free: 81.73 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.857e-05/1.08, allocations: 3.281 kB / 0.6995 GB, free: 81.73 MB / 474.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01638/1.096, allocations: 7.527 MB / 0.7069 GB, free: 81.42 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/1.097, allocations: 8.969 kB / 0.7069 GB, free: 81.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-05/1.097, allocations: 14.53 kB / 0.7069 GB, free: 81.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01072/1.107, allocations: 2.976 MB / 0.7098 GB, free: 81.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003381/1.111, allocations: 0.6672 MB / 0.7104 GB, free: 81.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01362/1.124, allocations: 11.07 MB / 0.7212 GB, free: 76.24 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003527/1.128, allocations: 157.8 kB / 0.7214 GB, free: 76.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003381/1.128, allocations: 156.8 kB / 0.7215 GB, free: 76.23 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (371): * Single equations (assignments): 365 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 3 {5 54,1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001295/1.13, allocations: 0.5309 MB / 0.7221 GB, free: 76.12 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/1.13, allocations: 226 kB / 0.7223 GB, free: 76 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.145, allocations: 7.885 MB / 0.73 GB, free: 74.89 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.397e-05/1.145, allocations: 42.5 kB / 0.73 GB, free: 74.89 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/1.145, allocations: 9.578 kB / 0.73 GB, free: 74.89 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.694e-05/1.145, allocations: 21.98 kB / 0.7301 GB, free: 74.89 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02354/1.169, allocations: 16.2 MB / 0.7459 GB, free: 68.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/1.169, allocations: 11.34 kB / 0.7459 GB, free: 68.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002548/1.171, allocations: 0.6133 MB / 0.7465 GB, free: 68.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01053/1.182, allocations: 2.894 MB / 0.7493 GB, free: 67.36 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006342/1.183, allocations: 138.9 kB / 0.7494 GB, free: 67.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/1.195, allocations: 10.47 MB / 0.7597 GB, free: 59.85 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/1.195, allocations: 22.83 kB / 0.7597 GB, free: 59.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01977/1.215, allocations: 11.79 MB / 0.7712 GB, free: 53.88 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008399/1.216, allocations: 304.6 kB / 0.7715 GB, free: 53.65 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007175/1.216, allocations: 101.7 kB / 0.7716 GB, free: 53.59 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002597/1.219, allocations: 149.9 kB / 0.7717 GB, free: 53.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006187/1.22, allocations: 335.6 kB / 0.7721 GB, free: 53.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003847/1.22, allocations: 153.3 kB / 0.7722 GB, free: 53.44 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000963/1.221, allocations: 0.7817 MB / 0.773 GB, free: 53.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 2e-07/1.221, allocations: 192 / 0.773 GB, free: 53.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004769/1.226, allocations: 1.691 MB / 0.7746 GB, free: 52.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (341): * Single equations (assignments): 335 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 3 {4 63,1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002517/1.228, allocations: 1.621 MB / 0.7762 GB, free: 52.63 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008185/1.237, allocations: 6.511 MB / 0.7826 GB, free: 49.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/1.237, allocations: 2.812 kB / 0.7826 GB, free: 49.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00439/1.241, allocations: 3.704 MB / 0.7862 GB, free: 47.12 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/1.243, allocations: 420 kB / 0.7866 GB, free: 46.81 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009385/1.252, allocations: 7.903 MB / 0.7943 GB, free: 39.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/1.253, allocations: 1.776 MB / 0.796 GB, free: 38.18 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001756/1.255, allocations: 415.3 kB / 0.7964 GB, free: 37.87 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007548/1.256, allocations: 243.8 kB / 0.7967 GB, free: 37.67 MB / 474.7 MB Notification: Performance of SimCode: time 9.12e-07/1.256, allocations: 0 / 0.7967 GB, free: 37.67 MB / 474.7 MB Notification: Performance of Templates: time 0.3055/1.561, allocations: 68.74 MB / 0.8638 GB, free: 97.19 MB / 490.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)