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.08637/0.08637, allocations: 15.26 MB / 22.73 MB, free: 0.9727 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 185 kB / 27.52 MB, free: 6.117 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.51/1.51, allocations: 221.5 MB / 253.7 MB, free: 10.4 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.0009226/0.0009227, allocations: 102.2 kB / 308.8 MB, free: 10.46 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.625e-05/1.627e-05, allocations: 2.719 kB / 369.6 MB, free: 54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1449/0.1449, allocations: 54.64 MB / 424.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4209/0.5658, allocations: 102.4 MB / 0.5142 GB, free: 12.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.566, allocations: 71.95 kB / 0.5143 GB, free: 12.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2151/0.7811, allocations: 91.83 MB / 0.604 GB, free: 4.191 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.7812, allocations: 0 / 0.604 GB, free: 4.191 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.669e-05/0.7813, allocations: 56 kB / 0.604 GB, free: 4.137 MB / 410.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.006674/0.788, allocations: 2.786 MB / 0.6068 GB, free: 1.293 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.788, allocations: 16.02 kB / 0.6068 GB, free: 1.277 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00278/0.7908, allocations: 0.6985 MB / 0.6075 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002893/0.7937, allocations: 1.411 MB / 0.6088 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.7939, allocations: 164.7 kB / 0.609 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003328/0.7943, allocations: 155.9 kB / 0.6091 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008832/0.8031, allocations: 6.008 MB / 0.615 GB, free: 8.773 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005292/0.8084, allocations: 3.302 MB / 0.6182 GB, free: 5.406 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/0.8085, allocations: 0 / 0.6182 GB, free: 5.406 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000181/0.8087, allocations: 3.953 kB / 0.6182 GB, free: 5.402 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-05/0.8088, allocations: 64 kB / 0.6183 GB, free: 5.34 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.02196/0.8307, allocations: 12.51 MB / 0.6305 GB, free: 8.457 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005331/0.8361, allocations: 4.447 MB / 0.6348 GB, free: 3.891 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002538/0.8386, allocations: 2.092 MB / 0.6369 GB, free: 1.789 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001061/0.8397, allocations: 0.6723 MB / 0.6375 GB, free: 1.113 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.8398, allocations: 56.7 kB / 0.6376 GB, free: 1.047 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001348/0.8411, allocations: 194 kB / 0.6378 GB, free: 0.8555 MB / 442.7 MB Notification: Performance of pre-optimization done (n=272): time 5.34e-06/0.8412, allocations: 8 kB / 0.6378 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of matching and sorting (n=415): time 0.0832/0.9244, allocations: 28.26 MB / 0.6654 GB, free: 4.488 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.9245, allocations: 98.52 kB / 0.6655 GB, free: 4.379 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001276/0.9257, allocations: 0.8696 MB / 0.6663 GB, free: 3.492 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004831/0.9262, allocations: 25.7 kB / 0.6664 GB, free: 3.461 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006025/0.9268, allocations: 0.8962 MB / 0.6672 GB, free: 2.551 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001343/0.9282, allocations: 1.328 MB / 0.6685 GB, free: 1.203 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.9285, allocations: 0 / 0.6685 GB, free: 1.203 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002382/0.9287, allocations: 454.1 kB / 0.669 GB, free: 0.7539 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2941/1.223, allocations: 2.975 MB / 0.6719 GB, free: 97.01 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004838/1.228, allocations: 3.448 MB / 0.6752 GB, free: 96.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008579/1.236, allocations: 3.84 MB / 0.679 GB, free: 96.51 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-05/1.236, allocations: 3.781 kB / 0.679 GB, free: 96.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=488) (initialization): time 0.01889/1.255, allocations: 9.142 MB / 0.6879 GB, free: 96.27 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/1.255, allocations: 10.16 kB / 0.6879 GB, free: 96.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/1.255, allocations: 11.41 kB / 0.6879 GB, free: 96.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006836/1.262, allocations: 2.029 MB / 0.6899 GB, free: 96.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003217/1.265, allocations: 0.7114 MB / 0.6906 GB, free: 96.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01311/1.279, allocations: 11.03 MB / 0.7014 GB, free: 91.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006991/1.286, allocations: 0.5687 MB / 0.7019 GB, free: 91.37 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005113/1.286, allocations: 214 kB / 0.7021 GB, free: 91.37 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: H.solution.n:DUMMY_STATE(flow=false min = 0.0 max = 0.0 unit = "mol" ) "Amount of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pb.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: PbO2.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real voltage:DUMMY_STATE() type: Real H.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real H.solution.v:DUMMY_STATE(flow=false unit = "V" ) "Electric potential in the solution" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (373): * Single equations (assignments): 365 * Array equations: 2 * 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 55,1 4,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007652/1.287, allocations: 182.4 kB / 0.7023 GB, free: 91.26 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00044/1.287, allocations: 211 kB / 0.7025 GB, free: 91.15 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01651/1.304, allocations: 9.088 MB / 0.7114 GB, free: 90.85 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01636/1.32, allocations: 8.964 MB / 0.7201 GB, free: 90.62 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/1.32, allocations: 3.844 kB / 0.7202 GB, free: 90.62 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.624e-05/1.32, allocations: 21.19 kB / 0.7202 GB, free: 90.62 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03164/1.352, allocations: 21.55 MB / 0.7412 GB, free: 83.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-05/1.352, allocations: 17.28 kB / 0.7412 GB, free: 83.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002236/1.354, allocations: 0.5793 MB / 0.7418 GB, free: 83.04 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01524/1.37, allocations: 4.446 MB / 0.7461 GB, free: 82.34 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007747/1.37, allocations: 97.05 kB / 0.7462 GB, free: 82.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01542/1.386, allocations: 11.39 MB / 0.7574 GB, free: 74.72 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03574/1.422, allocations: 18.73 MB / 0.7757 GB, free: 58.54 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01988/1.442, allocations: 14.27 MB / 0.7896 GB, free: 45.44 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007984/1.442, allocations: 365.9 kB / 0.7899 GB, free: 45.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004201/1.443, allocations: 27.7 kB / 0.79 GB, free: 45.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003763/1.447, allocations: 313.7 kB / 0.7903 GB, free: 44.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005218/1.447, allocations: 360 kB / 0.7906 GB, free: 44.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000295/1.447, allocations: 180.1 kB / 0.7908 GB, free: 44.58 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007549/1.448, allocations: 0.6583 MB / 0.7914 GB, free: 43.97 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.448, allocations: 0 / 0.7914 GB, free: 43.97 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007803/1.456, allocations: 2.517 MB / 0.7939 GB, free: 41.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 10 ($STATESET1.x[10],$STATESET1.x[9],$STATESET1.x[8],$STATESET1.x[7],$STATESET1.x[6],$STATESET1.x[5],$STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (308): * Single equations (assignments): 304 * 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: 3 * 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: 1 {16 101} Notification: Performance of Backend phase and start with SimCode phase: time 0.003029/1.459, allocations: 1.561 MB / 0.7954 GB, free: 40.62 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009609/1.469, allocations: 7.502 MB / 0.8027 GB, free: 33.75 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.686e-05/1.469, allocations: 4.188 kB / 0.8027 GB, free: 33.75 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007733/1.476, allocations: 4.866 MB / 0.8075 GB, free: 29.54 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002605/1.479, allocations: 354.2 kB / 0.8078 GB, free: 29.27 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.49, allocations: 7.024 MB / 0.8147 GB, free: 22.72 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/1.491, allocations: 1.948 MB / 0.8166 GB, free: 21.16 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002406/1.493, allocations: 487.7 kB / 0.8171 GB, free: 20.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/1.495, allocations: 298 kB / 0.8173 GB, free: 20.59 MB / 474.7 MB Notification: Performance of SimCode: time 7.02e-07/1.495, allocations: 0 / 0.8173 GB, free: 20.59 MB / 474.7 MB Notification: Performance of Templates: time 0.3608/1.856, allocations: 76.08 MB / 0.8916 GB, free: 101.1 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)