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.1097/0.1097, allocations: 15.26 MB / 31.2 MB, free: 3.23 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.0009207/0.0009207, allocations: 172.4 kB / 36.29 MB, free: 2.266 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.488/1.488, allocations: 223.3 MB / 264.5 MB, free: 5.695 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.0009834/0.0009833, allocations: 99.75 kB / 319.9 MB, free: 2.777 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003465, allocations: 15.5 kB / 385.2 MB, free: 50.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1183, allocations: 54.63 MB / 439.8 MB, free: 16 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5004/0.6188, allocations: 103.1 MB / 0.5302 GB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.6191, allocations: 74.36 kB / 0.5303 GB, free: 15.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3441/0.9632, allocations: 92.95 MB / 0.6211 GB, free: 32 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.9632, allocations: 4 kB / 0.6211 GB, free: 28 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001819/0.9634, allocations: 52.05 kB / 0.6211 GB, free: 15.97 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.0112/0.9746, allocations: 2.928 MB / 0.624 GB, free: 12.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.9747, allocations: 8.875 kB / 0.624 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00358/0.9783, allocations: 0.6916 MB / 0.6247 GB, free: 12.29 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004213/0.9825, allocations: 1.443 MB / 0.6261 GB, free: 10.8 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003409/0.9829, allocations: 261.8 kB / 0.6263 GB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001174/0.9841, allocations: 271.8 kB / 0.6266 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008675/0.9928, allocations: 4.487 MB / 0.631 GB, free: 5.703 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-05/0.9929, allocations: 0 / 0.631 GB, free: 5.703 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004739/0.9933, allocations: 112 kB / 0.6311 GB, free: 5.594 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-05/0.9934, allocations: 67.94 kB / 0.6311 GB, free: 5.527 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009188/1.003, allocations: 6.232 MB / 0.6372 GB, free: 15.28 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.02347/1.026, allocations: 12.95 MB / 0.6499 GB, free: 1.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006294/1.032, allocations: 4.589 MB / 0.6544 GB, free: 13.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003146/1.036, allocations: 2.2 MB / 0.6565 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001273/1.037, allocations: 0.6723 MB / 0.6572 GB, free: 10.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.344e-05/1.037, allocations: 64.69 kB / 0.6572 GB, free: 10.25 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001633/1.039, allocations: 241.9 kB / 0.6575 GB, free: 10.01 MB / 458.7 MB Notification: Performance of pre-optimization done (n=272): time 1.097e-05/1.039, allocations: 0 / 0.6575 GB, free: 10.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=405): time 0.3428/1.381, allocations: 34.21 MB / 0.6909 GB, free: 84.79 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/1.382, allocations: 96.25 kB / 0.691 GB, free: 84.72 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/1.384, allocations: 1.144 MB / 0.6921 GB, free: 84.56 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008937/1.385, allocations: 90.11 kB / 0.6922 GB, free: 84.53 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006722/1.385, allocations: 0.893 MB / 0.693 GB, free: 84.21 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001523/1.387, allocations: 1.349 MB / 0.6944 GB, free: 83.51 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002235/1.387, allocations: 69.94 kB / 0.6944 GB, free: 83.51 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001934/1.387, allocations: 441.3 kB / 0.6948 GB, free: 83.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003886/1.391, allocations: 2.428 MB / 0.6972 GB, free: 83.19 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004309/1.396, allocations: 2.92 MB / 0.7001 GB, free: 82.77 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008795/1.404, allocations: 5.624 MB / 0.7056 GB, free: 82.31 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.949e-05/1.404, allocations: 3.938 kB / 0.7056 GB, free: 82.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.01484/1.419, allocations: 7.528 MB / 0.7129 GB, free: 82 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/1.419, allocations: 10.91 kB / 0.7129 GB, free: 82 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.376e-05/1.419, allocations: 10.88 kB / 0.7129 GB, free: 82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01063/1.43, allocations: 2.97 MB / 0.7158 GB, free: 81.91 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003264/1.433, allocations: 0.6675 MB / 0.7165 GB, free: 81.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01351/1.447, allocations: 10.93 MB / 0.7272 GB, free: 76.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/1.45, allocations: 162.1 kB / 0.7273 GB, free: 76.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004414/1.451, allocations: 160 kB / 0.7275 GB, free: 76.8 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.001432/1.452, allocations: 0.5266 MB / 0.728 GB, free: 76.69 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004785/1.453, allocations: 224.3 kB / 0.7282 GB, free: 76.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01613/1.469, allocations: 7.869 MB / 0.7359 GB, free: 73.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-05/1.469, allocations: 48.62 kB / 0.7359 GB, free: 73.39 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/1.469, allocations: 3.938 kB / 0.7359 GB, free: 73.39 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-05/1.469, allocations: 22.64 kB / 0.736 GB, free: 73.39 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04225/1.511, allocations: 16.21 MB / 0.7518 GB, free: 66.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.169e-05/1.511, allocations: 12.28 kB / 0.7518 GB, free: 66.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005067/1.517, allocations: 0.6103 MB / 0.7524 GB, free: 66.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01752/1.534, allocations: 2.899 MB / 0.7552 GB, free: 65.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009119/1.535, allocations: 133.7 kB / 0.7553 GB, free: 65.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/1.55, allocations: 10.33 MB / 0.7654 GB, free: 58.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/1.55, allocations: 20.94 kB / 0.7655 GB, free: 58.38 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01824/1.568, allocations: 11.16 MB / 0.7763 GB, free: 53.24 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009859/1.569, allocations: 309.3 kB / 0.7766 GB, free: 53.01 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001192/1.57, allocations: 93.19 kB / 0.7767 GB, free: 52.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002863/1.573, allocations: 152.9 kB / 0.7769 GB, free: 52.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008672/1.574, allocations: 331.6 kB / 0.7772 GB, free: 52.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004928/1.575, allocations: 150.4 kB / 0.7773 GB, free: 52.81 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001094/1.576, allocations: 0.7839 MB / 0.7781 GB, free: 52.47 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.576, allocations: 3.625 kB / 0.7781 GB, free: 52.47 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005361/1.581, allocations: 1.7 MB / 0.7798 GB, free: 52.28 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.003309/1.585, allocations: 1.614 MB / 0.7813 GB, free: 51.94 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009185/1.594, allocations: 6.499 MB / 0.7877 GB, free: 47.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/1.594, allocations: 0 / 0.7877 GB, free: 47.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004739/1.598, allocations: 3.717 MB / 0.7913 GB, free: 43.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004411/1.603, allocations: 479.5 kB / 0.7918 GB, free: 43.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009966/1.613, allocations: 7.908 MB / 0.7995 GB, free: 36.36 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/1.614, allocations: 1.728 MB / 0.8012 GB, free: 34.93 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002095/1.616, allocations: 415.4 kB / 0.8016 GB, free: 34.62 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00082/1.617, allocations: 243.6 kB / 0.8018 GB, free: 34.43 MB / 474.7 MB Notification: Performance of SimCode: time 5.51e-07/1.617, allocations: 0 / 0.8018 GB, free: 34.43 MB / 474.7 MB Notification: Performance of Templates: time 0.3109/1.928, allocations: 69.88 MB / 0.8701 GB, free: 96.79 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)